aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-06-18 01:45:19 +0900
committerPitu <[email protected]>2021-06-18 01:45:19 +0900
commit940ab07d35e739c6479da9f312c6ee760e107309 (patch)
tree2465dadcbddcd67d5d4dd876e52cc039d5d11baa
parentfeat: add domain to setup process (diff)
downloadhost.fuwn.me-940ab07d35e739c6479da9f312c6ee760e107309.tar.xz
host.fuwn.me-940ab07d35e739c6479da9f312c6ee760e107309.zip
feat: prevent running without a domain
-rw-r--r--src/api/structures/Server.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js
index 0ee3ea3..f584fe8 100644
--- a/src/api/structures/Server.js
+++ b/src/api/structures/Server.js
@@ -5,6 +5,11 @@ if (!process.env.SERVER_PORT) {
process.exit(0);
}
+if (!process.env.DOMAIN) {
+ console.log('You failed to provide a domain for your instance. Edit the .env file manually and fix it.');
+ process.exit(0);
+}
+
const { loadNuxt, build } = require('nuxt');
const express = require('express');
const helmet = require('helmet');