diff options
| author | Pitu <[email protected]> | 2021-06-18 01:45:19 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-18 01:45:19 +0900 |
| commit | 940ab07d35e739c6479da9f312c6ee760e107309 (patch) | |
| tree | 2465dadcbddcd67d5d4dd876e52cc039d5d11baa | |
| parent | feat: add domain to setup process (diff) | |
| download | host.fuwn.me-940ab07d35e739c6479da9f312c6ee760e107309.tar.xz host.fuwn.me-940ab07d35e739c6479da9f312c6ee760e107309.zip | |
feat: prevent running without a domain
| -rw-r--r-- | src/api/structures/Server.js | 5 |
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'); |