Commit Graph
19 Commits
Author SHA1 Message Date
Alaister YoungandAlaister Young 0c97b9789b [FE-3107] chore(studio): remove remaining Next.js references (#54426)
Removes the remaining Next.js dependencies, compatibility shims, test
mocks, ESLint/TypeScript presets, and webpack/Next workarounds from
Studio following the TanStack Start migration.

Addresses FE-3107.

**Removed:**

- `next` and `next-router-mock` from `apps/studio/package.json` (and
updated `pnpm-lock.yaml`)
- Orphaned `apps/studio/compat/next/script.tsx` shim, `script.test.tsx`,
`compat/**` knip entry, and `nextCompat()` / `ssr.noExternal` `/^next/`
plumbing from `apps/studio/vite.config.ts`
- `apps/studio/tests/lib/route-mock.ts` and all `next-router-mock`
setup/imports across `tests/vitestSetup.ts`,
`tests/lib/custom-render.tsx`, and 12 test files
- `apps/studio/tests/pages/` directory (moved the 3 remaining tests to
`components/interfaces/Organization/Organization.utils.test.ts` and
`apps/studio/tests/routes/`)
- Unused `'use client'` directives across 23 Studio files
- Next.js/webpack workarounds: `graphiqlViteWorkers()` in
`vite.config.ts`, webpack `import.meta.glob` `try/catch` fallback in
`ConnectStepsSection.tsx`, shell `NODE_ENV=test` override in
`vite.config.ts` / root `package.json` / `studio-e2e-test.yml`, Next
`getPathMatch` and `_next` passthrough in `redirects.shared.*`,
`window.next?.router` check in `monaco-graphiql-coexistence.spec.ts`,
and unused `ANALYZE` env var in `apps/studio/turbo.jsonc`
- Next-only Sentry/chunk-load filters (`NEXT_NOT_FOUND`,
`NEXT_REDIRECT`, Next `/org/[slug]/` regex, `/app:\/\//`, dead
`includeThirdPartyErrorFilter` plumbing, webpack chunk error regex) and
stale Next/Pages Router comments, docs, and `#__next` CSS selector

**Changed:**

- `apps/studio/eslint.config.cjs`: switched from
`eslint-config-supabase/next` to the new `eslint-config-supabase/react`
preset (dropping `@next/next/no-img-element: off`, keeping `.next` /
`next-env.d.ts` ignored for local checkouts with stale pre-migration
build artifacts)
- `apps/studio/tsconfig.json`: extends `tsconfig/base.json` directly
instead of `tsconfig/nextjs.json` (identical resolved compiler options)
- `apps/studio/.github/eslint-rule-baselines.json`: pruned 33 stale
`pages/...` and `types/next.ts` entries without changing any rule
thresholds
- `apps/studio/tests/lib/custom-render.tsx`: backed
`TestFrameworkProvider` with TanStack Router instead of
`next-router-mock`
-
`apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx`:
imports `graphiql/setup-workers/vite` directly
- `apps/studio/styles/globals.css`: replaced `@source
'../pages/**/*.{js,ts,jsx,tsx}'` with `@source
'../routes/**/*.{js,ts,jsx,tsx}'`
- `apps/studio/turbo.jsonc`: declared `"NEXT_PUBLIC_*"` in
`tasks.build.env` now that Turborepo infers `nitro` instead of `nextjs`
-
`apps/studio/components/interfaces/Organization/Organization.utils.ts`:
narrowed `buildOrgUrl`'s `slug` parameter to `string[] | undefined`

**Added:**

- `packages/eslint-config-supabase/shared.js` and
`packages/eslint-config-supabase/react.js` (plus `presets.test.ts`),
decoupling non-Next React apps from `eslint-config-next` with verified
zero non-`@next/*` rule drift while keeping
`eslint-config-supabase/next` unchanged for the Next.js apps

## To test

- Run `pnpm --filter eslint-config-supabase run test` and confirm preset
parity tests pass
- Run `pnpm --filter studio run lint`, `pnpm --filter studio run
lint:ratchet`, `pnpm --filter studio run typecheck`, `pnpm knip
--workspace apps/studio`, and `pnpm --filter studio run test`
- Run `pnpm --filter studio run build` and verify the production build,
prerendered routes, chunk-cycle check, and GraphiQL web workers succeed
- Smoke-test Studio locally (`pnpm dev:studio`): verify GraphiQL loads
cleanly, ConnectSheet framework steps render, and Tailwind styles on
route pages are intact

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-12-02 17:01:50 +08:00
Andrey A. d65dacdb74 chore(self-hosted): update 2026-11-30 - 0.8.6 (#54296) 2026-11-30 16:47:56 +01:00
Andrey A. f9ab8ace15 fix(self-hosted): adjust Storage and imgproxy settings (#54142) 2026-11-26 17:25:47 +01:00
Andrey A. 8cb6a86933 fix(self-hosted): keep idle Auth database connections (#54134) 2026-11-26 14:13:11 +00:00
Andrey A. fd79b11994 chore(self-hosted): remove PGRST_DB_USE_LEGACY_GUCS (#54133) 2026-11-26 13:59:02 +00:00
Andrey A. 14c26d8f44 docs(self-hosted): document Auth DB encryption key requirements in CONFIG.md (#54129) 2026-11-26 13:58:51 +00:00
Andrey A. fd75f79d4b docs(self-hosted): catch up CONFIG.md with the current self-hosted image versions (#54126) 2026-11-26 13:37:01 +01:00
cd22e67ac2 docs(self-hosting): fix Logflare repository link (#53872)
## Problem
The Logflare repository link has no URL scheme, so GitHub treats it as a
path inside this repository.

## Solution
Add `https://` to the existing repository URL.

## Review instructions
1. Open the link in the changed page and confirm it reaches the intended
destination.

The corrected repository URL returns 200 and `git diff --check` passes.
Prettier reports existing formatting issues in `docker/CONFIG.md`; the
same result occurs on the base version.

## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Co-authored-by: linzch3 <20380442+linzch3@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-24 00:37:17 +01:00
Andrey A. 76883d4943 fix(self-hosted): generate Realtime cookie at runtime, limit gen_rpc and cluster discovery (#53175) 2026-11-18 14:30:32 +01:00
Andrey A. f80095cd92 docs(self-hosted): add a guide for configuring the OAuth 2.1 server (#53544) 2026-11-18 10:51:22 +01:00
Luiz Felipe Machado b6f68a8459 feat(self-hosted): reclaim idle function workers under memory pressure (#51957) 2026-11-03 15:47:08 +01:00
Manuel Rubio e693f206f5 fix(self-hosted): remove expose of app.settings.jwt_secret (#45003) 2026-09-15 19:38:21 +02:00
Andrey A. 244301c09d chore(self-hosted): update 2026-07-07 (#47696) 2026-07-07 17:29:49 +02:00
Mandar Joshi 02ada3efe3 fix(docker): move hardcoded Realtime DB_ENC_KEY to .env variable (#46021) 2026-07-01 14:51:02 +02:00
Andrey A. d002ebe7e5 fix(self-hosted): use postgres user instead of supabase_admin for studio (#47022) 2026-06-17 14:43:24 +02:00
Andrey A. f5c49e89c5 chore(self-hosted): expand smoke tests (#46722) 2026-06-08 12:23:36 +02:00
Andrey A. 9a78130e42 chore(self-hosted): update 2026-06-03 (#46610) 2026-06-03 13:25:48 +02:00
Andrey A. 84d7da45e7 chore(self-hosted): add STORAGE_S3_UPLOAD_PART_SIZE to env vars list (#46297) 2026-05-25 17:07:14 +02:00
Andrey A. 82a3f2cb24 chore(self-hosted): add a reference docs for configurable env vars (#46124) 2026-05-20 11:48:11 +02:00