diff --git a/next.config.js b/next.config.js index 6ffcc1ff..264e5442 100755 --- a/next.config.js +++ b/next.config.js @@ -1,2 +1,6 @@ +const isProd = process.env.NODE_ENV === 'production' const withMDX = require('@next/mdx')({ extension: /\.mdx?$/ }) -module.exports = withMDX({ pageExtensions: ['js', 'jsx', 'mdx'] }) +module.exports = withMDX({ + pageExtensions: ['js', 'jsx', 'mdx'], + assetPrefix: isProd ? 'https://v3.hackclub.com' : '' +})