mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
Add assetPrefix
This commit is contained in:
parent
e6a492d5f7
commit
a2b1c57a7a
1 changed files with 5 additions and 1 deletions
|
|
@ -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' : ''
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue