aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/structures/Server.js')
-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');