aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--next.config.js10
-rw-r--r--package.json3
-rw-r--r--pages/index.tsx4
3 files changed, 12 insertions, 5 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,
};
}
diff --git a/package.json b/package.json
index f292e37..2d33ad1 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
- "start": "next start"
+ "start": "next start",
+ "export": "next export"
},
"dependencies": {
"@fontsource/inconsolata": "^5.0.8",
diff --git a/pages/index.tsx b/pages/index.tsx
index 9390157..72e22b8 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -14,7 +14,7 @@ import { DISPLAY_DOMAIN } from '../utils/env';
export default function Home() {
- const gitLink = 'https://git.' + DISPLAY_DOMAIN;
+ const gitLink = 'https://git.al.' + DISPLAY_DOMAIN;
let email : string;
@@ -22,7 +22,7 @@ export default function Home() {
case "flu0r1ne.net":
email = "flu0r1ne [at] flu0r1ne.net";
break;
- case "al.exander.io":
+ case "exander.io":
email = "alex [at] al.exander.io";
break;
default: