Skip to content

Commit

Permalink
fix: assetPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kiomarzsss committed Mar 2, 2024
1 parent 7ab29eb commit b530ecc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/** @type {import("next").NextConfig} */
const isProd = process.env.NODE_ENV === 'production';

const config = {
output: 'export',
images: {
unoptimized: true,
},
reactStrictMode: true,
basePath: "/cloudflare-scanner",
assetPrefix: isProd ? '/cloudflare-scanner' : undefined,
};
export default config;

0 comments on commit b530ecc

Please sign in to comment.