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

+1 -2
View File
@@ -2,8 +2,7 @@ module.exports = {
apps: [ apps: [
{ {
name: "next", name: "next",
script: "pnpm", script: ".next/standalone/server.js",
args: "start",
exec_mode: "cluster", exec_mode: "cluster",
instances: 0, instances: 0,
max_memory_restart: "512M", max_memory_restart: "512M",
+6 -4
View File
@@ -34,13 +34,15 @@ const nextConfig: NextConfig = {
// Enable React Compiler for automatic memoization // Enable React Compiler for automatic memoization
reactCompiler: true, reactCompiler: true,
// Compress responses with gzip // Compress responses with gzip/brotli
compress: true, compress: true,
// Disable Next.js telemetry // Disable Next.js telemetry and browser sourcemaps in production
productionBrowserSourceMaps: false, productionBrowserSourceMaps: false,
// Enable TypeScript CLI integration for TypeScript 7 compatibility // Standalone output for smaller, faster Docker deployments and cold starts
output: "standalone",
experimental: { experimental: {
useTypeScriptCli: true, useTypeScriptCli: true,
}, },
@@ -99,4 +101,4 @@ export default withBA(
}, },
telemetry: false, telemetry: false,
}), }),
); );
+21 -21
View File
File diff suppressed because it is too large. Load diff