Files
classroomio/apps/docs/next.config.js
T

15 lines
306 B
JavaScript
Raw Normal View History

2023-12-13 10:16:21 +03:00
const env = process.env.NODE_ENV;
2023-11-25 21:56:02 +00:00
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
2023-12-11 00:43:42 +03:00
themeConfig: './theme.config.tsx'
});
2023-11-25 21:56:02 +00:00
2023-12-11 02:01:49 +03:00
module.exports = {
2023-12-13 10:16:21 +03:00
basePath: env === 'production' ? '/docs' : undefined,
env: {
imagePath: env === 'production' ? '/docs' : ''
},
2023-12-11 02:23:05 +03:00
...withNextra()
2023-12-11 02:01:49 +03:00
};