aboutsummaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-09-08 00:17:30 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-09-08 00:17:30 -0500
commit9f53c175d634edcbe20b930c98b826dd04174af8 (patch)
tree43ef67b9eda7ae1dfc0af9769f3acd5ccee1b361 /next.config.js
parentd67f3514eff4f45ad1ca84cde6465e622acd4dcc (diff)
downloadhomepage-9f53c175d634edcbe20b930c98b826dd04174af8.tar.xz
homepage-9f53c175d634edcbe20b930c98b826dd04174af8.zip
Add new export config, nextjs CLI/API change
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,
};
}