Skip to content

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

Speed up Studio development via SWC and keeping built pages in memory for longer (#19192)

Beng Eu744c61c1d706
diff --git a/apps/studio/.babelrc b/apps/studio/.babelrc
deleted file mode 100644
index 9fcef0394fd..00000000000
--- a/apps/studio/.babelrc
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "presets": ["next/babel"],
- "plugins": []
-}
diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js
index 77725786adf..8ef9a9f34da 100644
--- a/apps/studio/next.config.js
+++ b/apps/studio/next.config.js
@@ -356,6 +356,10 @@ const nextConfig = {
return config
},
+ onDemandEntries: {
+ maxInactiveAge: 24 * 60 * 60 * 1000,
+ pagesBufferLength: 100,
+ },
}
// module.exports = withBundleAnalyzer(nextConfig)
diff --git a/apps/studio/tsconfig.json b/apps/studio/tsconfig.json
index bd0443b63b4..b03dcb6e92a 100644
--- a/apps/studio/tsconfig.json
+++ b/apps/studio/tsconfig.json
@@ -18,7 +18,8 @@
"incremental": true,
"paths": {
"@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths
- }
+ },
+ "useDefineForClassFields": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
"exclude": ["node_modules"]