Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): don't watch Next's .next build output in TanStack dev (#51308)

Beng Eu53a637a359ec
diff --git a/apps/studio/vite.config.ts b/apps/studio/vite.config.ts
index 9ac9552668a..3e6c2f3de48 100644
--- a/apps/studio/vite.config.ts
+++ b/apps/studio/vite.config.ts
@@ -535,6 +535,12 @@ export default defineConfig(({ command, mode }) => {
return {
server: {
port: 3000,
+ watch: {
+ // Next's build output, left behind when switching from
+ // STUDIO_FRAMEWORK=next, includes a full node_modules copy under
+ // `.next/standalone`.
+ ignored: ['**/.next/**'],
+ },
},
preview: {
// The prerender step (@tanstack/start-plugin-core) boots `vite preview`