add esm only

This commit is contained in:
DefectingCat
2022-09-30 09:44:12 +08:00
parent 5f104f011d
commit f1eca69d16
5 changed files with 71 additions and 10 deletions

View File

@ -22,11 +22,13 @@ const isExport = process.env.NEXT_BUILD === 'export';
const nextConfig = {
/* config options here */
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
images: isExport ? { unoptimized: true } : {},
experimental: {
// runtime: 'nodejs',
// outputStandalone: true,
esmExternals: true,
},
// assetPrefix: isExport ? './' : undefined,
// images: