Commit Graph
28 Commits
Author SHA1 Message Date
Ivan VasilovandClaude Sonnet 5.5 50bab5657f chore: bump pnpm to 12.21.0 (#53676)
Splits the pnpm bump out of #53589 so the Node 26 bump can land on its
own.

Updates `packageManager`, `engines.pnpm`, the studio Dockerfile, the www
turbo-build fixture, and the lockfile header.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 14:33:40 +01:00
fc228529bc chore: bump to Node 26 (#53589)
Aligns with our backend and updates to the latest LTS version of Node.

Vercel already supports Node 26, so we can switch the Vercel
configuration as well, but that shouldn't need immediate coordination as
part of the deployment. To prevent errors on Vercel builds, we are using
`>=24` in the `package.json`, so this can be deployed on 24.x and 26.x.
Once all Vercel deployments are switched to 26.x, we can pin this to 26.

The pnpm bump lives in a separate PR.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 10:43:35 +00:00
supabase-vercel-tedd[bot]andIvan Vasilov c8748c7c26 chore: pin Node.js to v24 across the repository (#53287)
## Problem

`engines.node` used open-ended ranges (`>=22.23.4` at the root,
`>=22.12.0` in `apps/kb`). Vercel resolves an open-ended range to the
newest Node.js major, so it overrides the project's configured version
and warns that future majors will be picked automatically. The other
apps declared no engine at all, and `.nvmrc` (used by local dev and CI)
still pointed at Node 22.

## Solution

Pin Node.js 24 everywhere the repo declares a Node version:

- `.nvmrc`: `22.23.4` -> `24.22.3` (latest v24 LTS). CI workflows read
`node-version-file: .nvmrc`, so they follow.
- Root `package.json` and `apps/kb/package.json`: `engines.node` ->
`24.x`.
- Every other app (`design-system`, `docs`, `learn`, `lite-studio`,
`studio`, `ui-library`, `www`): add `engines.node: "24.x"`. Vercel reads
the Node.js version from `engines.node` in the project's `package.json`;
`vercel.json` has no setting for it, so this is how each Vercel project
gets an explicit version.
- `.agents/skills/test-the-docs/sandbox/Dockerfile`:
`node:22-bookworm-slim` -> `node:24-bookworm-slim`.
- `AGENTS.md`: update the stated Node requirement.

Notes:

- `engineStrict: true` is set in `pnpm-workspace.yaml`, so `pnpm
install` now requires Node 24 locally.
- `.github/workflows/self-host-tests-smoke.yml` hardcodes `node-version:
'22'` and is not changed here.
- No builds or tests were run for this change. Checked that all changed
`package.json` files parse and that Prettier passes on the changed
files.

## Review instructions

1. Open the Vercel build logs for this PR's deployments (studio, docs,
www, kb, and so on).
2. Confirm each build uses Node.js 24.x.
3. Confirm the logs no longer show the warning that the `engines` field
overrides the project's Node.js version, or the warning about automatic
upgrades to new major versions.
4. Confirm CI jobs that use `.nvmrc` set up Node 24.22.3.

## 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)


[FE-5004](https://linear.app/supabase/issue/FE-5004/bump-the-nodejs-version-across-the-repository)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-11-13 15:30:34 +01:00
Alaister YoungandAlaister Young 200cc3f65d [FE-3106] (part 1) – ci(studio): build and test tanstack start only (#53199)
First part of the FE-3106 cleanup (final pass of the TanStack Start
migration): Studio now builds, runs and tests TanStack Start only.
Retiring the Next build first is what lets the follow-up PRs in this
stack delete `pages/**` files without breaking a still-built Next
runtime, the Next E2E shard or Next previews. Part 1 of the stack, based
on `master`.

**Changed:**
- `apps/studio/package.json` – `dev`/`build`/`start` run the Vite/Nitro
build directly (the former `*:tanstack` scripts)
- `apps/studio/vercel.ts` – always emits the TanStack Start config
(`framework: null`, redirects, headers); no `STUDIO_FRAMEWORK` gate, so
every Vercel project building Studio deploys the Nitro output
- `apps/studio/Dockerfile` – single TanStack `build` stage; the image no
longer defaults to Next
- `.github/workflows/studio-e2e-test.yml` – one E2E run (2 shards)
instead of a `next`/`tanstack` matrix; drops the `.next` cache step
- `.github/workflows/studio-docker-build.yml` – one image build
- `apps/studio/turbo.jsonc` – drops `STUDIO_FRAMEWORK` and the `.next`
outputs
- `apps/studio/AGENTS.md`, `apps/studio/TANSTACK_MIGRATION.md` –
describe the TanStack-only runtime

**Removed:**
- `dev:next`/`build:next`/`start:next` scripts, `scripts/dispatch.js`,
`scripts/lib/env.js`, the Turbopack cache `predev` script, and the root
`build:studio:docker:tanstack` script

Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).

Before merging: branch protection lists `E2E tests (next, 1, 2)`/`(next,
2, 2)` and `E2E tests (tanstack, 1, 2)`/`(tanstack, 2, 2)` as required
checks. The jobs are now `E2E tests (1, 2)`/`(2, 2)`, so the required
checks need updating. Any Vercel project or self-hosted image still on
Next switches to TanStack Start with this PR.

## To test

- `pnpm dev:studio` without `STUDIO_FRAMEWORK` set – Vite dev server
starts on :8082
- `pnpm build --filter=studio` – Vite/Nitro build succeeds, no `.next`
output
- Vercel previews (`studio`, `studio-self-hosted`, `studio-staging`) –
build and serve the TanStack app
- `Studio Docker Build` and E2E checks – pass with the single TanStack
run

Ran `vercel.test.ts`, studio typecheck, knip, ESLint on changed files,
Prettier and the TanStack build locally. Docker and E2E are verified by
CI only.

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-11 06:04:46 +00:00
Alaister YoungandAlaister Young 6236fa4ec5 chore: remove the Cloudflare R2 asset upload and asset CDN (#53148)
Removes the dead Cloudflare R2 asset upload and asset CDN code from
Studio, docs and www. Every app now behaves as it did with
`FORCE_ASSET_CDN=-1`: Vercel serves assets from the default path.

Also fixes `.github/workflows/zizmor.yml` to download zizmor with `gh
release download`: `curl -sSLO` saved GitHub error pages as the archive,
which broke the attestation check.

> [!WARNING]
> Remove `FORCE_ASSET_CDN` from Vercel only after this deploys.

**Worth a close look**
- `apps/studio/vite.config.ts`: `SKIP_ASSET_UPLOAD` is kept because it
still gates Sentry source map upload.
- `apps/studio/turbo.jsonc`: `AWS_ACCESS_KEY_ID` /
`AWS_SECRET_ACCESS_KEY` are kept because the Bedrock credential chain
(`lib/ai/bedrock.ts`) can fall back to them.

## To test
- [ ] On the Vercel previews for studio, docs and www, open a page with
DevTools: JS, CSS and fonts load from the app's own origin
(`/dashboard/assets/…` or `/dashboard/_vercel/immutable/…` for Studio,
`/docs/_next/static/…` for docs, `/_next/static/…` for www), with no
404s or CSP errors in the console.

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-10 18:21:33 +09:00
Alaister YoungandAlaister Young 3f59d25833 feat(studio): serve TanStack client assets from the asset CDN (#52397)
Studio's TanStack build serves every client JS/CSS chunk from Vercel at
`/dashboard/_vercel/immutable/...`, and each of those requests also goes
through the www zone's routing (supabase.com/dashboard is proxied by
www). The Next build served the same files from the R2 asset CDN. This
moves the TanStack build's client assets back to the asset CDN on
production builds, using native Vite / TanStack Start hooks rather than
an `assetPrefix`-style rewrite.

**Added:**
- `apps/studio/asset-cdn.ts`: one gate shared with `next.config.ts`
(production or `FORCE_ASSET_CDN=1`, `FORCE_ASSET_CDN=-1` disables,
staging CDN when `NEXT_PUBLIC_ENVIRONMENT=staging`) plus URL helpers.
Only files under `_vercel/immutable/` are rewritten, and web workers
never are
- `upload-static-assets.sh tanstack`: syncs
`.vercel/output/static/_vercel/immutable` to
`<SITE_NAME>/tanstack/_vercel/immutable` on R2 with `max-age=31536000,
immutable`. Uses `--size-only` (names are content hashes, so only new
files upload) and excludes source maps. Local files are kept
- The upload script now fails with a clear message when the asset CDN is
enabled but `ASSET_CDN_S3_ENDPOINT` or the AWS keys are missing, instead
of the AWS CLI failing on an empty `--endpoint-url`
- Unit tests for the gate and URL helpers

**Changed:**
- `server.ts` uses `createStartHandler({ transformAssets })` so the
shell's scripts, modulepreloads and stylesheets point at the CDN with
`crossorigin="anonymous"` (module scripts need CORS; it also keeps full
error details in Sentry)
- `vite.config.ts` sets `experimental.renderBuiltUrl` (client only) so
URLs inside the bundle follow: the preload helper's dependency map, and
fonts/images referenced from CSS. The CDN base is computed once from the
process env (the same env the upload script sees) and inlined into both
server and client so they can't disagree
- `build:tanstack` runs the upload after `vite build` unless
`SKIP_ASSET_UPLOAD=1`, the same as `build:next`. The Docker image's
TanStack build sets `SKIP_ASSET_UPLOAD=1` (images serve their own
assets, and the pruned context has no upload script)

**Unchanged on purpose:**
- Vite `base` and the router basepath stay `/dashboard`; documents,
`/_serverFn` and `/api` stay on Vercel
- Web workers stay same-origin (`worker-src 'self' blob: data:`, and
workers must be same-origin anyway), so `immutableStaticFiles` stays on
- With the CDN off (previews, self-hosted), the build output is
identical to master apart from release hashes

The CDN folder is shared and content-addressed rather than per-commit,
so unchanged chunks dedupe across deploys and older tabs keep finding
their lazy chunks whichever deployment serves the next document.

**Rollout:** production has `FORCE_ASSET_CDN=-1` for now, so merging
this doesn't change prod. Staging picks it up on merge and gets tested
first.

## To test

### On the preview (tests the upload, not the page)

The staging preview for this branch builds with `FORCE_ASSET_CDN=1`, so
it exercises the real build-and-upload path. **The preview page itself
is expected not to load in a browser:** the asset CDN only allows the
staging and production origins in its CORS rules, so module scripts are
blocked on a `*.vercel.app` URL.

- In the build log, check `Uploading immutable static files to R2...` is
followed by `Upload completed successfully!`
- View the preview's page source: the `<script>`, `modulepreload` and
stylesheet tags point at the staging asset CDN
(`.../<SITE_NAME>/tanstack/_vercel/immutable/...`) with
`crossorigin="anonymous"`
- Open a few of those asset URLs directly in a new tab (a JS chunk, a
CSS file, and a `.woff2` font from the CSS): each returns 200 with the
right content type
- Worker URLs inside the chunks still point at
`/dashboard/_vercel/immutable/.../*.worker-*.js` on the page's own
origin

### After merge, on the full staging environment

- Load the staging dashboard with DevTools open: every script,
modulepreload and stylesheet comes from the staging asset CDN with a
200, and there are no CORS or CSP errors in the console
- Fonts render (Inter, and the code fonts in the SQL editor)
- Sign in and click around: Table Editor, SQL Editor, GraphiQL, Logs.
Lazy routes load, and nothing comes from `/dashboard/_vercel/immutable`
except Monaco's workers
- SQL Editor and GraphiQL: Monaco works (syntax highlighting,
autocomplete), and its workers load same-origin
- Trigger an error and check the Sentry event has a readable stack trace
- After the next staging deploy, check the build log's upload only added
new files

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-10-28 16:13:17 +08:00
Alaister YoungandAlaister Young 3bac7165bd chore(studio): move the TanStack Start deploy onto Nitro (#50030)
Moves the Studio TanStack Start build off the hand-rolled Vercel setup
(an `api/server.js` function shim, rewrites in `vercel.ts`, a custom
`?dpl=` skew-protection Vite plugin, and `scripts/serve.js` for
self-hosted) and onto Nitro, which TanStack Start documents as its
deployment path. Documents are served from the static SPA shell on the
CDN; only `/api/*` and `/_serverFn/*` invoke the function.

**Removed:**
- `api/server.js`, `scripts/serve.js`, `scripts/smoke-server.mjs`
- The `skewProtectionDpl` Vite plugin, `renderBuiltUrl`, and the
`vite:preloadError` reload backstop in `router.tsx` (TanStack Router
already reloads once on a failed lazy import)
- Rewrites, `functions`, `outputDirectory`, and `cleanUrls` from
`vercel.ts` (redirects and headers stay)
- `magic-string` and `@jridgewell/remapping` devDependencies, the
`preview` script

**Added:**
- `nitro` plugin in `vite.config.ts`. Preset is auto-detected:
`.vercel/output` on Vercel, a self-contained node server in `.output`
everywhere else. `vercel.immutableStaticFiles` puts hashed chunks under
`/_vercel/immutable/` so tabs opened before a redeploy keep loading
their chunks; `functions.maxDuration: 300` carries over the old function
timeout
- `scripts/vercel-spa-routes.ts`: Nitro module that rewrites the
generated Build Output routes (documents -> `_shell.html`, allow-list ->
`__server`, missing chunk -> 404, base-path prefixes), with a unit test
- `server.ts`: TanStack Start server entry that initializes Sentry
before the route tree loads and wraps the handler with
`wrapFetchWithSentry`

**Changed:**
- `start:tanstack` runs `.output/server/index.mjs` directly with Node's
`--env-file-if-exists` for the `.env` cascade. Node doesn't expand
`$VAR` references, so `scripts/generateLocalEnv.js` now writes literal
values into `.env.test`
- Dockerfile's TanStack stage copies `.output` instead of running `pnpm
deploy`; the `server.js` shim loads `.env` and imports the Nitro server
- `NEXT_PUBLIC_BASE_PATH` (the platform's `/dashboard`) only sets the
router basepath; Vite's `base` stays at the root so chunks can use the
immutable store. The routes module emits prefixed rules for
`/dashboard/api/*` and `/dashboard/_serverFn/*` and rewrites `public/`
files requested under the prefix back to the root
- Self-hosted security headers come from a Nitro `routeRules` entry; on
Vercel they stay in `vercel.ts`
- `tslib` is inlined for the build only: Nitro's dev runner has no
interop for its CJS wrapper
- Monaco's worker chunks follow the client assets dir so they land in
the immutable store too

Verified on the `studio-staging` preview (`STUDIO_FRAMEWORK=tanstack` is
scoped to this branch there): documents come back as the static shell,
`/dashboard/api/*` hits the function, `public/` files resolve under the
prefix, a missing immutable chunk 404s. Across two deployments of this
branch, the older deployment's chunks still load from the immutable
store and requests carrying its `__vdpl` cookie are answered by that
deployment. Self-hosted path covered by the TanStack E2E job and the
Docker build job.

## To test

- On the `studio-staging` preview: `/dashboard/project/<ref>` should
show `content-disposition: inline; filename="_shell.html"` and a
single-region `x-vercel-id`; `/dashboard/api/get-utc-time` a two-region
id
- Sign in and click through a few pages, including one that opens Monaco
(SQL editor) so the worker chunks load
- After the next deploy, a tab left open on the previous one should
still navigate (lazy chunks) and call the API without errors
- Self-hosted: `STUDIO_FRAMEWORK=tanstack pnpm --filter studio build &&
pnpm --filter studio start`, then check `/api/platform/profile` and that
responses carry the security headers


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Production TanStack deployments now run on Nitro’s self-contained
server output.
* Vercel routing serves static pages first while directing API and
server-function requests appropriately.
* Server-function requests can include deployment identification for
consistent handling.
* Local environment generation now writes resolved configuration values.

* **Bug Fixes**
  * Improved handling of missing static assets and SPA fallback routing.
* Server-side error monitoring now captures request errors in the new
runtime.

* **Refactor**
* Replaced the legacy production server and smoke-test workflow with
Nitro-based startup.
  * Removed automatic reload handling for stale client assets.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-09-15 21:46:45 +10:00
Alaister YoungandAlaister Young 8d4d3b57e0 feat(studio): add tanstack variant to the studio docker image (#48091)
Makes the self-hosted Docker image buildable with the TanStack/Vite
build alongside the existing Next one. The Dockerfile's new
`STUDIO_FRAMEWORK` build arg (default: `next`) selects which framework
lands in the image — the same variable `scripts/dispatch.js` keys on
everywhere else, so `--build-arg STUDIO_FRAMEWORK=tanstack` is the
docker spelling of the existing switch. Both flavors assemble a
normalized `/srv` tree, so a single production stage serves either with
the same CMD (`node apps/studio/server.js`), port 3000, and healthcheck.

Unlike Next's self-contained standalone output, the Vite SSR bundle
externalizes studio's dependencies and resolves them from `node_modules`
at request time, so the tanstack runtime tree is a prod-only `pnpm
deploy` plus the built `dist/`. The boot smoke test runs a second time
against that pruned tree, so a runtime import that's missing from
`dependencies` fails the image build instead of 500ing the deployed
container — which is exactly how this PR caught four packages
misclassified as devDependencies (`braintrust` +
`@smithy/property-provider` via the AI routes, `libpg-query` via the
parse-query API route, `@radix-ui/react-use-escape-keydown` via the
Queues panel; split into its own commit).

**Changed:**
- `apps/studio/Dockerfile`: `ARG STUDIO_FRAMEWORK` selects `build-next`
/ `build-tanstack` stages via `FROM build-${STUDIO_FRAMEWORK}`; both
normalize into one production layout
- `apps/studio/package.json`: moved the four runtime-imported packages
from devDependencies to dependencies (versions unchanged)
- `apps/studio/vite.config.ts`: pinned `preview.host` to `127.0.0.1` —
the prerender step boots `vite preview` and crawls its resolved URL, and
the default `localhost` host lets the server bind the IPv6 loopback
while the crawler fetches `127.0.0.1`, which ECONNREFUSEDs the whole
build inside BuildKit containers
- `.github/workflows/studio-docker-build.yml`: builds the tanstack image
as a second step (reuses the first build's layer cache; job name
unchanged)

**Added:**
- `build:studio:docker:tanstack` root script

Note: the tanstack image is ~2.0GB vs ~1.2GB for Next (externalized
`node_modules`); shrinking it via file tracing is a follow-up. Nothing
self-hosters pull changes until a tanstack-built image is published —
this makes it buildable and CI-checked.

## To test

- `pnpm build:studio:docker` then run the image against a stack —
behavior unchanged (healthcheck `/api/platform/profile` 200, `/` 307s to
`/project/default`)
- `pnpm build:studio:docker:tanstack` then run that image with the same
env — same healthcheck, redirect, and data endpoints (projects, pg-meta)
respond 200; browser loads Project Overview / Table Editor with no
requests leaving the container
- Both verified locally against the CLI stack (`host.docker.internal`
env, container reports `healthy`)
- Vercel + e2e checks on this PR exercise the `preview.host` change on
their runners

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added TanStack-based Studio build support with a framework-selectable
Docker image.
  - Added a local build command for the TanStack Studio Docker image.
- **Build & Deployment**
- Updated the Studio Docker build workflow to also publish a
TanStack-tagged Studio image when relevant.
- **Bug Fixes**
- Improved `vite preview` behavior in containers by binding to IPv4
loopback.
  - Standardized the Studio container runtime port to `3000`.
- **Chores**
  - Updated Studio runtime packages to support the TanStack build.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-07-24 15:32:05 +00:00
Ivan Vasilov 24ce0ba5f8 chore: migrate repo to pnpm v11 (#48033)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Chore / dependency tooling update.

## What is the current behavior?

The repo is pinned to pnpm 10.24.0. Closes
https://linear.app/supabase/issue/FE-3673/migrate-the-repo-to-use-pnpm-v11.

## What is the new behavior?

The repo is pinned to pnpm 11.13.1, pnpm v11 workspace settings are
migrated to `allowBuilds`, and the Studio Dockerfile installs pnpm
11.13.1.

## Additional context

Validated with `CI=true mise exec node@22 -- pnpm install
--frozen-lockfile`, `mise exec node@22 -- pnpm run typecheck`, and `mise
exec node@22 -- pnpm run lint`; full Prettier check still fails on
existing generated docs/router files outside this migration.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Updated tooling requirements (pnpm **11.13.1**, Node **>=22.13**) and
aligned container build tooling accordingly.
* Adjusted package manager behavior (scoped registry override, update
notifications disabled) and workspace build/engine validation settings.

* **Maintenance**
* Updated `clean` scripts across apps/packages to remove only
build/cache artifacts (no longer delete installed dependencies).
* Reduced Turbo `clean` task output to **errors-only** for cleaner logs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-20 12:57:42 +02:00
Ivan Vasilov 1673012bc7 chore: Bump vulnerable dependencies (#46624)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Updated build tools and development dependencies across the project
  * Upgraded Vue framework and related tooling to latest versions
  * Updated TanStack React Start dependency
* Refined dependency resolution settings to improve build stability and
performance

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-06-04 12:07:23 +02:00
Ivan Vasilov 30c16da0e1 chore: Split turbo configs for apps into their own files (#44085)
This pull request refactors the Turbo build configuration by moving each
app's build settings from the root `turbo.json` file into their own
dedicated `turbo.jsonc` files within each app's directory. The root
configuration is simplified to only include generic tasks, improving
maintainability and clarity.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
  * Updated Turbo to v2.9.3 to improve build performance and stability.
* Reorganized and added per-app build pipeline configurations to
streamline builds and caching across the workspace.
* Removed a Tailwind container-queries plugin from one app's styling
setup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-02 15:51:16 +02:00
Gildas Garcia 2773179a5b fix: studio docker build fails because of package patches (#43713)
## Problem

The docker build for studio fails because pnpm patches are not included

## Solution

- bump pnpm version in Dockefile to match the one used by the repo
- bump turbo version in Dockerfile to use one that handles pnpm patches
- add a script to test the build locally
- add a github action to validate the build on each PR
2026-03-12 16:24:07 +01:00
Charis a46c31f551 chore: set min release age for pnpm (#38787)
* chore: bump pnpm version to 10.16.1

* chore: set min release age for pnpm

* chore: bump pnpm to 10.16.1 in dockerfile
2025-09-17 10:34:33 -04:00
James ParrottandKevin Grüneberg 77db22e7c0 Bump node:20-slim to :22-slim in Supabase Studio Dockerfile (#36482)
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2025-06-18 11:28:46 +08:00
Beng Eu 710131456f fix: run next build directly instead of build task to avoid uploading static assets when building image (#33693)
Was broken by #33344, which changed `build` task from `next build` to
`next build && ./../../scripts/upload-static-assets.sh`.
2025-02-19 03:30:45 +00:00
Beng Eu c2547eec4f fix: hide pnpm update message, it's confusing since the pnpm version is locked; update to pnpm 9.15.4 (#33232) 2025-02-06 14:57:01 +08:00
Ivan Vasilov 6f3c46f5da fix: Change the healthcheck route for docker Studio (#33180)
* Fix the healthcheck for the docker image for studio.

* Various fixes related to the self-hosted environment.
2025-01-30 00:31:52 +01:00
Kevin Grüneberg 71fc66981c chore: bump turbo (#32548) 2025-01-03 21:34:23 +08:00
Ivan Vasilov dd572efb0d chore: Switch repo to use pnpm (#29928)
* Fix some missing and duplicate dependencies.

* Fix the types for jest in ai-commands package.

* Replace all npm commands with pnpm. Add pnpm files and workspace links.

* Fix rimraf to work with pnpm.

* Refactor the github actions to work with pnpm.

* Delete package-lock.json.

* Fix the tailwind configs to not include node_modules.

* Fix random files.

* Add preinstall scripts to all packages.

* Fix the Dockerfile to work with pnpm.

* Update the DEVELOPERS documentation.
2024-12-20 13:07:20 +01:00
Ivan Vasilov 57197f5c05 fix: Minor fixes for turborepo in Vercel and Docker (#27376)
* Passthrough the sentry env vars to studio so that the sourcemaps are uploaded correctly.

* Fix the Turbo command in the Dockerfile.

* More fixes to the Dockerfile.
2024-06-19 10:31:13 +00:00
Ivan Vasilov a63731bbf8 chore: Bump turbo to v2 (#27182)
* Bump the version of turbo to 2.0.3.

* Fix the breaking changes in turbo config.

* Make the npm version more loose.

* Fix the build command for the database-design app.

* Try adding some env vars to the turbo for www.

* Add more missing env vars.

* Bump the turbo version to 2.0.4.

* Remove SUPABASE_SERVICE_ROLE_KEY from docs#build since it's used by other scripts, not by build.
2024-06-18 12:32:36 +02:00
Ivan Vasilov 6bf3b8106c chore: Bump turbo (#22563)
* Bump turbo to the latest version.

* Make the turbo version in the dockerfile the same as the repo one.
2024-04-08 10:02:48 +02:00
Kevin Grüneberg 27f9f96ff7 chore: upgrade to node 20 (#22240) 2024-03-26 18:54:22 +07:00
Ivan Vasilov 5b4f27b611 fix: Install python and git when building the Docker image (#21606)
Install python, git and build essentials for both architectures.
2024-02-27 11:32:42 +01:00
Ivan Vasilov 2d8a342922 fix: Another try at fixing the docker build (#21565)
Move the git dependency for both arm and x86 builds. Bump the turbo version to match the repo one.
2024-02-26 13:17:50 -03:30
Ivan Vasilov 49b945e7e5 fix: Various fixes and improvements for the local build (#21560)
* Add git to enable libpg build.

* Fix a copy-paste issue.

* Enable the realtime inspector in local and selfhosted environments.
2024-02-26 15:43:09 +01:00
Ivan Vasilov 64a766a5fb fix: Update the studio dockerfile with the new folder structure (#19179)
* Fix issues caused by moving the studio app.

* Add *.env.* to the dockerignore.
2023-11-23 18:45:22 +01:00
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00