Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym authored Jun 16, 2024
1 parent 57a5a1a commit eb7ef03
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions documentation/occupi-docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx'
})
})

module.exports = withNextra({});
const isProd = process.env.NODE_ENV === 'production';

const prodConfig = {
basePath: '/docs',
assetPrefix: '/docs/',
};

module.exports = withNextra(isProd ? prodConfig : {});

// If you have other Next.js configurations, you can pass them as the parameter:
// module.exports = withNextra({ /* other next.js config */ })

0 comments on commit eb7ef03

Please sign in to comment.