aboutsummaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/next.config.js b/next.config.js
index 2fa75e0..0d49eb4 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,7 +1,11 @@
const path = require('path');
const { withMarkdownLoader } = require('./plugins');
+const DISPLAY_DOMAIN = process.env.DISPLAY_DOMAIN;
+if(!DISPLAY_DOMAIN) throw Error("Please define a display domain");
+
+const exportDir = `export/${DISPLAY_DOMAIN}`;
module.exports = () => {
const plugins = [
@@ -16,7 +20,9 @@ module.exports = () => {
includePaths: [path.join(__dirname, 'styles')]
},
env: {
- DISPLAY_DOMAIN: process.env.DISPLAY_DOMAIN || 'flu0r1ne.net',
- }
+ DISPLAY_DOMAIN: DISPLAY_DOMAIN,
+ },
+ output: 'export',
+ distDir: exportDir,
};
}