Skip to content

Commit

Permalink
Update next.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Akatsuki1910 committed Jun 27, 2024
1 parent 8ff08d6 commit d7e4c02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const isProd = process.env.NODE_ENV === 'production';
const prefixPath = isProd ? '/next-template' : '';

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
assetPrefix: prefixPath,
basePath: prefixPath,
distDir: 'dist',
};

Expand Down

0 comments on commit d7e4c02

Please sign in to comment.