update nextjs config for three fiber

This commit is contained in:
DefectingCat
2023-08-17 16:10:42 +08:00
parent d4da01515b
commit 7d082f8129
5 changed files with 570 additions and 52 deletions

View File

@ -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;