mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
update nextjs config for three fiber
This commit is contained in:
@ -1,24 +0,0 @@
|
||||
/**
|
||||
* @type {import('next').NextConfig}
|
||||
*/
|
||||
const isExport = process.env.NEXT_BUILD === 'export';
|
||||
|
||||
const nextConfig = {
|
||||
/* config options here */
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
output: 'standalone',
|
||||
images: isExport ? { unoptimized: true } : {},
|
||||
experimental: {
|
||||
// runtime: 'experimental-edge',
|
||||
// largePageDataBytes: 512 * 1000,
|
||||
appDir: true,
|
||||
},
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === 'production',
|
||||
},
|
||||
// assetPrefix: isExport ? './' : undefined,
|
||||
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
Reference in New Issue
Block a user