Skip to content

Commit

Permalink
Added basePath and assetPrefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
prjctimg committed Oct 15, 2023
1 parent 75f2715 commit c955bfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ const securityHeaders = [
**/
module.exports = () => {
const plugins = [withContentlayer, withBundleAnalyzer]
const basePath = process.env.NODE_ENV === 'production' ? '/huetiful' : ''

return plugins.reduce((acc, next) => next(acc), {
basePath,
assetPrefix: `${basePath}/`,
reactStrictMode: true,
output: 'export',
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
Expand Down

0 comments on commit c955bfb

Please sign in to comment.