Commit Graph
80 Commits
Author SHA1 Message Date
Beng Eu 53a637a359 fix(studio): don't watch Next's .next build output in TanStack dev (#51308)
## Problem

Switching a local checkout from `STUDIO_FRAMEWORK=next` to `tanstack`
leaves `apps/studio/.next` behind, including a full `node_modules` copy
under `.next/standalone`. Vite's dev server watches all of it, logging
hundreds of `page reload .next/server/pages/...` lines and wasting file
handles.

## Change

Add `**/.next/**` to `server.watch.ignored` in
`apps/studio/vite.config.ts`. Vite's default ignores (`.git`,
`node_modules`) still apply.

## Verification

With a stale `.next` present, ran `STUDIO_FRAMEWORK=tanstack pnpm run
dev`, touched `.next/server/pages/account/me.html`: no reload logged
(previously ~220 `.next` reloads on startup).
2026-10-06 14:38:04 +08:00
Beng EuandIvan Vasilov b3dc867f90 chore(studio): clear .next/dev/cache in predev, to mitigate high memory usage from cache buildup (#45199)
Proposed mitigation, the obvious tradeoff is that clearing the cache
will make compilation slower on subsequent dev server starts, but more
consistent.

Various people have been observing `next-server` use up to ~34 GB
memory. I've observed 12.59 GB memory, with ~1.5k `postcss` processes:
```
ps aux | grep postcss | grep -v grep | wc -l
1526
```
Going down to 3 `postcss` process and 4.71 GB memory after clearing
cache:
```
ps aux | grep postcss | grep -v grep | wc -l
3
```


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

* **Chores**
* Development infrastructure: adds an automated pre-development step
that clears the local dev cache before starting the development server
by introducing a new lifecycle hook and supporting cleanup script;
purely maintenance-oriented with no user-facing changes or functional
impact.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-04-24 10:11:57 +02:00
Beng Eu b3377ed4b1 fix: re-add platform-specific entries to pnpm-lock.yaml (#44835)
#44798 removed these entries. An explicit `pnpm add turbo
--workspace-root` re-added these entries. Otherwise, for a clean build,
I'm seeing this:

```
Turborepo did not find the correct binary for your platform.
We will attempt to install it now.
Installation has failed.
***
Turborepo failed to start.
Turborepo detected that you are running:
darwin arm64
***
We were not able to find the binary at:
@turbo/darwin-arm64/bin/turbo
or: turbo-darwin-arm64/bin/turbo
```
2026-04-14 03:17:09 +00:00
Beng Eu 281a29e904 fix: switch to SSO-based supa-dev AWS profile instead of IAM-based supabase-dev AWS profile (#38179) 2025-08-25 10:37:50 +00:00
Beng Eu 6504a8460f chore: enable prettier cache, speeds up subsequent runs ~6.5x (#37005) 2025-07-10 20:32:12 +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
Beng Eu 57d8f92176 fix: update api-types codegen URL to match internal changes, /api.json no longer exists (#29722) 2024-10-08 20:16:50 +08:00
Beng Eu e11d2d96bc chore: update URL for codegen (#27985) 2024-07-15 05:52:03 +00:00
Beng Eu ca26771e23 docs: document Nano size (#22311) 2024-04-01 12:41:12 -04:00
Beng EuandAlaister Young eeabbca813 fix: tweak pooling optimization defaults to match backend (#22278)
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-03-28 09:36:04 +00:00
Beng Eu ac45e6d129 docs: update size-related info (#21699) 2024-03-20 10:55:18 +08:00
Beng Eu a847ceb80e docs: remove outdated info on limited hardware (#21729) 2024-03-06 09:06:52 +08:00
Beng Eu 64bbbab499 fix: invalidate project details after connected successfully (#21778) 2024-03-05 23:29:57 +08:00
Beng EuandJonathan Summers-Muir 26a10bee92 feat: add alert for restart of projects scheduled for migration, showing planned maintenance window (#21701)
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-03-05 21:12:54 +08:00
Beng Eu c390068102 fix: handle new size for connection pooling settings (#21700) 2024-03-05 13:14:43 +08:00
Beng Eu 89fb7142c5 Remove maximum version constraint for npm and node engines (#19251)
No need to get in the way of people using newer versions unless there really proves to be some incompatibility.
2023-11-27 11:42:15 +01:00
Beng EuandAlaister Young 744c61c1d7 Speed up Studio development via SWC and keeping built pages in memory for longer (#19192)
* fix: enable `useDefineForClassFields` in Studio `tsconfig.json`

Per https://mobx.js.org/installation.html#use-spec-compliant-transpilation-for-class-properties. Needed to switch to SWC.

* fix: remove Studio `.babelrc` to enable SWC

This was tried previously and reverted. I believe that it should work now with `useDefineForClassField` enabled in the previous commit, support for which was added to Next.js in https://github.com/vercel/next.js/pull/36335.

* fix: set Studio `onDemandEntries` options `maxInactiveAge` to 1 day, `pagesBufferLength` to 100

This will keep up to 100 built pages in memory for 1 day, speeding up development. You'd expect that this speed up would come at the cost of memory usage, but in my unscientific testing involving clicking around every page I could get to, with SWC compilation, memory usage maxed out at ~3.3 GB with these options enabled, and no compilation was needed for any revisited pages, whereas without these options, memory usage maxed out at ~4 GB(?!), and revisited pages were compiled once they were out of the buffer. Perhaps the recompilation actually worsens memory usage.

* fix prettier

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-11-24 11:34:44 +01:00
Beng Eu f380a9461a fix: match full string instead of substring for checkPermissions() 2022-08-29 18:14:34 +08:00
Beng Eu fed9a7d377 Merge pull request #7754 from supabase/master 2022-07-18 17:01:22 +08:00
Beng Eu c5be38e52a Revert "chore: remove global loading spinner" 2022-07-18 16:57:38 +08:00
Beng Eu 44593d88b0 chore: remove storageSettings flag 2022-06-24 17:21:28 +08:00
Beng Eu beb70fa920 chore: remove jwtSecretUpdate flag 2022-06-24 17:21:28 +08:00
Beng Eu 564bfb8371 chore: remove AWS marketplace integration
AWS Marketplace integration has to be rethought now that we support self service addons, remove for now.
2022-06-16 15:06:14 +08:00
Beng Eu 2e4cc9c2e9 feat: add permissions to routes and support adding and removing roles 2022-05-27 18:39:41 +08:00
Beng Eu b811e69158 feat: apply permissions to menus 2022-05-27 18:26:57 +08:00
Beng Eu dad4d3d93d feat: add usePermissions hook 2022-05-27 18:21:33 +08:00
Beng Eu ec76f4791b chore: switch to Node.js 16 2022-05-26 14:17:33 +08:00
Beng Eu 2b4ac5b2ec chore: remove commented out line 2022-04-22 13:47:26 +08:00
Beng Eu 47b491ea31 chore: define Node.js version 14 in studio/.nvmrc
It's possible to set up most Node.js version managers to automatically switch versions based on `.nvmrc` when changing directory. There's `.node-version` too but `.nvmrc` seems to be supported by every Node.js version manager that supports `.node-version`, and NVM too.
2022-04-11 09:31:26 +02:00
Beng Eu 73f827d4a1 chore: define Node.js version 14 in studio/.nvmrc
It's possible to set up most Node.js version managers to automatically switch versions based on `.nvmrc` when changing directory. There's `.node-version` too but `.nvmrc` seems to be supported by every Node.js version manager that supports `.node-version`, and NVM too.
2022-04-07 23:26:51 +08:00
Beng Eu 1645f71ec1 Revert "Midway implementing proper infinite scrolling for storage"
This reverts commit b0d26d0fb7.
2022-04-05 23:41:13 +08:00
Beng Eu 9b1e84c065 Revert "Implement infinite scrolling for storage dashboard and fetch 200 items per request"
This reverts commit 1b8e9bd42c.
2022-04-05 23:41:13 +08:00
Beng Eu a34c8fd3c3 Revert "Prepend new folders to the top of the column"
This reverts commit cd4c8d68c3.
2022-04-05 23:41:13 +08:00
Beng Eu 239b7aaebe Revert "Add comment"
This reverts commit 8d439ba67d.
2022-04-05 23:41:13 +08:00
Beng Eu 0f1a1c5840 Revert "implement infinite scrolling for search functionality"
This reverts commit e3ee1f65c8.
2022-04-05 23:41:13 +08:00
Beng Eu afcdcfe6a2 Revert "chore: remove commented out line"
This reverts commit 9ab644df64.
2022-04-05 23:41:13 +08:00
Beng Eu 9ab644df64 chore: remove commented out line 2022-04-05 23:21:59 +08:00
Beng Eu 64e4965ff3 refactor: shift warnings to under the "Generate a new JWT secret" panel 2022-03-23 12:53:00 +08:00
Beng Eu 6c1ba3f9c7 fix: allow and suggest trying again on JWT secret update failure
Manually triggering a JWT secret update job seemed to work for previous failures, so we should allow users to do that themselves.
2022-03-23 12:53:00 +08:00
Beng Eu 5515b2f348 fix: note maximum size of a file that can be uploaded 2022-03-16 16:45:13 +01:00
Beng Eu 1f5b3edc9f fix: update @supabase/ui to 0.37.0-alpha.43
To include https://github.com/supabase/ui/commit/e62d7e92c191ef06d2e1077e3e165660e78128f7.
2022-03-02 14:58:37 +08:00
Beng Eu ea9dde1c66 fix: guard storage menu items with storageSettings flag 2022-03-02 14:27:14 +08:00
Beng Eu ca71b7cbb3 fix: tweak storage settings upgrade to pro text 2022-03-02 14:27:14 +08:00
Beng Eu 0b39e50668 refactor: s/STORAGE_FILE_SIZE_LIMIT_MAX/STORAGE_FILE_SIZE_LIMIT_MAX_BYTES/ 2022-03-02 14:27:14 +08:00
Beng Eu a4bd946cb1 Small style updates 2022-03-02 14:27:14 +08:00
Beng Eu c468f1e621 feat: display upload file size limit messaging for free tier 2022-03-02 14:27:14 +08:00
Beng Eu 063fbda2cc feat: disable updating file size limit if free tier 2022-03-02 14:27:14 +08:00
Beng Eu bd56d496f7 refactor: extract UpgradeToPro component 2022-03-02 14:27:14 +08:00
Beng Eu 4ccd10e7b3 feat: add minimum and maximum for file size limit 2022-03-02 14:27:14 +08:00
Beng Eu 0fba3f2320 feat: add storage settings with upload file size limit 2022-03-02 14:27:14 +08:00
Beng Eu c478d80704 chore: add getSignedUrls to STORAGE_CLIENT_LIBRARY_MAPPINGS 2022-02-26 21:44:42 +08:00
Beng Eu 58ab285494 docs: document storage.from.copy() 2022-02-23 15:30:08 +08:00
Beng Eu b0b630a475 fix: set button to loading when generating new JWT secret
To avoid submitting more JWT secret update requests while ongoing. Also do some refactoring.
2022-02-22 16:48:13 +08:00
Beng Eu dcb028071b fix: url type 2022-02-18 15:41:17 +08:00
Beng Eu 274d6b34f6 chore: update @supabase/ui to v0.36.4 2022-02-18 11:34:57 +08:00
Beng Eu 0d81a1b38a fix: switch from KeyLoader to SWRInfiniteKeyLoader type 2022-02-18 11:34:57 +08:00
Beng Eu 8d5adc4759 chore: add JWT secret update feature flag 2022-02-18 11:34:57 +08:00
Beng Eu 77f890d309 chore: update @supabase/shared-types to v0.1.15 2022-02-18 11:34:57 +08:00
Beng Eu a99a83c00a refactor: use JWT secret update error, progress and status enums 2022-02-18 11:34:57 +08:00
Beng Eu 65f9048775 feat: handle JWT secret update failure, progress and success 2022-02-18 11:34:57 +08:00
Beng Eu ee2ea1762a chore: add @supabase/shared_types and update swr to be able to pass a function as refreshInterval 2022-02-18 11:34:57 +08:00
Beng Eu b033962a14 docs: document storage.from.createSignedUrls() 2022-02-17 14:25:11 +08:00
Beng Eu ca35cbcb3e fix: clarify that the bucket needs to be set to public for getPublicUrl() (#3821) (#3848) 2021-11-10 13:10:00 +08:00
Beng Eu 84cd097c62 Clarify as "id in the auth.users table" 2021-09-10 13:10:57 +08:00
Beng Eu 1a694bd41d Add delimiters option for replace plugin
Due to this breaking change in the replace plugin: https://github.com/rollup/plugins/pull/903.
2021-09-03 14:12:54 +08:00
Beng Eu 4843d53c6f fix: capitalize Supabase 2021-08-11 10:47:13 +08:00
Beng Eu d7224538cd fix: hackathon winners spelling and grammar 2021-08-11 10:47:13 +08:00
Beng Eu 0477a0e1e7 fix: s/Alpha/Beta 2021-08-10 11:38:31 +08:00
Beng Eu 5ca5cd23c2 fix: grammar and spelling, capitalize "twitter" 2021-07-31 14:43:53 +08:00
Beng Eu e931b6911f Remove "like" 2021-07-31 14:36:46 +08:00
Beng Eu 9a3f4b7177 fix: Storage beta grammar 2021-07-31 14:28:56 +08:00
Beng Eu 40ed592468 fix: Supabase Auth v2 grammar 2021-07-31 14:20:33 +08:00
Beng Eu 85594562ae fix: Updates for Supabase Functions grammar 2021-07-31 14:11:46 +08:00
Beng Eu 57d8d5d861 Capitalise "twitter" 2021-07-31 14:04:37 +08:00
Beng Eu dca22bf3ae fix: Supabase Reports and Metrics grammar 2021-07-31 13:52:15 +08:00
Beng Eu 404a45cf45 Capitalise "infrastructure", s/anomolies/anomalies 2021-07-31 12:37:25 +08:00
Beng Eu ffdde846aa Document from.upload() and from.update() workaround for React Native 2021-07-21 12:12:55 +08:00
Beng Eu e17550f2ee docs: update specs 2021-07-20 10:39:50 +08:00
Beng Eu 7171295b94 chore: add Beng Eu to humans.txt 2021-07-12 12:29:14 +08:00