mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
25 lines
597 B
JavaScript
25 lines
597 B
JavaScript
/**
|
|
* @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;
|