Add instructions for how to start react in prod and force react to prod mode (#24590)

This commit is contained in:
Jacob Richman
2026-04-02 21:42:32 -07:00
committed by GitHub
parent 8c215c7a88
commit 7de3e4dcf9
5 changed files with 22 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ await esbuild.build({
target: 'es2020',
jsx: 'automatic',
outfile: 'dist/client/main.js',
define: {
'process.env.NODE_ENV': '"production"',
},
});
// Embed client assets as string constants so the devtools server can be