feat: modernize with Next.js 16 standalone output, remove redundant babel compiler, update postcss
- 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:
1 parent
58fae1f90f
commit
583d05eee9
3 files changed
+27
-26
No files matched your search
@@ -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",
|
||||||
|
|||||||
+5
-3
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+21
-21
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user