Template
Initial react editor Next.js template
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
export default {
|
||||
reactStrictMode: true,
|
||||
outputFileTracingRoot: dirname(fileURLToPath(import.meta.url)),
|
||||
webpack: (config, { isServer }) => {
|
||||
config.cache = { type: 'memory' };
|
||||
if (isServer) {
|
||||
config.optimization = config.optimization || {};
|
||||
config.optimization.splitChunks = false;
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user