diff --git a/distribute/next.config.mjs b/distribute/next.config.mjs index 2008b72..1876528 100644 --- a/distribute/next.config.mjs +++ b/distribute/next.config.mjs @@ -20,8 +20,13 @@ const bundleAnalyzer = withBundleAnalyzer({ }) export default bundleAnalyzer(withNextra({ - output: 'standalone', + output: 'export', + trailingSlash: true, + images: { + unoptimized: true, + }, + // eslint: { // ignoreDuringBuilds: true, // }, diff --git a/package.json b/package.json index 78969b6..36532a6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "scripts": { "dev": "next --turbopack", "build": "cross-env NODE_OPTIONS='--max-old-space-size=16384' next build", - "build:distribute": "sh ./distribute/prebuild.sh && cross-env NODE_OPTIONS='--max-old-space-size=16384' next build", + "build:distribute": "sh ./distribute/prebuild.sh && cross-env NODE_OPTIONS='--max-old-space-size=8192' next build && next export", "build:vercel": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build", "build:test": "cross-env ANALYZE=true NODE_OPTIONS='--inspect --max-old-space-size=4096' next build", "build:analyze": "cross-env ANALYZE=true NODE_OPTIONS='--max-old-space-size=16384' next build", diff --git a/wrangler.toml b/wrangler.toml index ad1baaf..6494353 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,4 +1,4 @@ -pages_build_output_dir= ".next/" +pages_build_output_dir= "out" name = "notenextra" compatibility_date = "2025-02-13"