Add assetPrefix

This commit is contained in:
Lachlan Campbell 2020-04-23 01:20:41 -04:00
parent e6a492d5f7
commit a2b1c57a7a

View file

@ -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' : ''
})