feat: prevent running without a domain

This commit is contained in:
Pitu 2021-06-18 01:45:19 +09:00
parent f42c75c7f4
commit 940ab07d35
1 changed files with 5 additions and 0 deletions

View File

@ -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');