mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import { paths } from './utils/files'
|
|
import utils from './utils/utils'
|
|
|
|
const domain = process.env.DOMAIN || utils.ReadFile(paths.domainFile).trim()
|
|
|
|
if (!domain) {
|
|
throw new Error(
|
|
`Domain is undefined! Should be set with 'DOMAIN' environment variable, or written to '${paths.domainFile}'`
|
|
)
|
|
}
|
|
|
|
export default {
|
|
savedQuestionsFileName: 'savedQuestions.json',
|
|
domain: domain,
|
|
}
|