From a2b1c57a7ae337ea0f8f4245de67d2fee8e7225d Mon Sep 17 00:00:00 2001 From: Lachlan Campbell Date: Thu, 23 Apr 2020 01:20:41 -0400 Subject: [PATCH] Add assetPrefix --- next.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' : '' +})