1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 14:28:04 +00:00
_/frourio/server/service/envValues.ts

12 lines
352 B
TypeScript
Raw Normal View History

2020-10-12 13:35:33 +09:00
import dotenv from 'dotenv'
dotenv.config()
const USER_ID = process.env.USER_ID ?? ''
const USER_PASS = process.env.USER_PASS ?? ''
const SERVER_PORT = +(process.env.SERVER_PORT ?? '8080')
const BASE_PATH = process.env.BASE_PATH ?? ''
const API_ORIGIN = process.env.API_ORIGIN ?? ''
export { USER_ID, USER_PASS, SERVER_PORT, BASE_PATH, API_ORIGIN }