feat: modernize with Next.js 16 standalone output, remove redundant babel compiler, update postcss
CI / check (push) Failing after 6s
Deploy / release (push) Skipped
CI / deploy (push) Skipped
Deploy / deploy (push) Failing after 5s

- Remove babel-plugin-react-compiler (Next.js 16 has built-in reactCompiler)
- Update postcss to 8.5.25
- Add output: 'standalone' to next.config.ts for smaller/faster deployments
- Update ecosystem.config.cjs to use standalone server.js
This commit is contained in:
openhands committed 2026-07-30 20:00:31 +02:00
1 parent 58fae1f90f
commit 583d05eee9
3 files changed
+28 -27

No files matched your search

+6 -4
View File
@@ -34,13 +34,15 @@ const nextConfig: NextConfig = {
// Enable React Compiler for automatic memoization
reactCompiler: true,
// Compress responses with gzip
// Compress responses with gzip/brotli
compress: true,
// Disable Next.js telemetry
// Disable Next.js telemetry and browser sourcemaps in production
productionBrowserSourceMaps: false,
// Enable TypeScript CLI integration for TypeScript 7 compatibility
// Standalone output for smaller, faster Docker deployments and cold starts
output: "standalone",
experimental: {
useTypeScriptCli: true,
},
@@ -99,4 +101,4 @@ export default withBA(
},
telemetry: false,
}),
);
);