Skip to content

Commit

Permalink
update next config for github page static paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-chu committed Apr 18, 2024
1 parent af2e1e6 commit b804fa5
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,6 +1,9 @@
/** @type {import('next').NextConfig} */
const isProd = process.env.NODE_ENV === 'production'

const nextConfig = {
output: 'export',
assetPrefix: isProd ? 'https://ct-chu.github.io/planisphere/' : undefined,
};

export default nextConfig;

0 comments on commit b804fa5

Please sign in to comment.