mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Update dotenv syntax
This commit is contained in:
parent
4e323246eb
commit
11f9cd940f
4 changed files with 8 additions and 4 deletions
|
@ -31,7 +31,8 @@ import express from 'express'
|
||||||
import { check, validationResult } from 'express-validator'
|
import { check, validationResult } from 'express-validator'
|
||||||
import Ajv from 'ajv'
|
import Ajv from 'ajv'
|
||||||
import { generateWKDProfile, generateHKPProfile } from '../../server/index.js'
|
import { generateWKDProfile, generateHKPProfile } from '../../server/index.js'
|
||||||
import 'dotenv/config.js'
|
import * as dotenv from 'dotenv'
|
||||||
|
dotenv.config()
|
||||||
|
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
const ajv = new Ajv({ coerceTypes: true })
|
const ajv = new Ajv({ coerceTypes: true })
|
||||||
|
|
|
@ -31,7 +31,8 @@ import express from 'express'
|
||||||
import { check, validationResult } from 'express-validator'
|
import { check, validationResult } from 'express-validator'
|
||||||
import Ajv from 'ajv'
|
import Ajv from 'ajv'
|
||||||
import { generateWKDProfile, generateHKPProfile } from '../../server/index.js'
|
import { generateWKDProfile, generateHKPProfile } from '../../server/index.js'
|
||||||
import 'dotenv/config.js'
|
import * as dotenv from 'dotenv'
|
||||||
|
dotenv.config()
|
||||||
|
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
const ajv = new Ajv({ coerceTypes: true })
|
const ajv = new Ajv({ coerceTypes: true })
|
||||||
|
|
|
@ -30,7 +30,8 @@ more information on this, and how to apply and follow the GNU AGPL, see <https:/
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
import { query, validationResult } from 'express-validator'
|
import { query, validationResult } from 'express-validator'
|
||||||
import { fetcher, enums as E } from 'doipjs'
|
import { fetcher, enums as E } from 'doipjs'
|
||||||
import 'dotenv/config.js'
|
import * as dotenv from 'dotenv'
|
||||||
|
dotenv.config()
|
||||||
|
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,8 @@ import express from 'express'
|
||||||
import { readFileSync } from 'fs'
|
import { readFileSync } from 'fs'
|
||||||
import { stringReplace } from 'string-replace-middleware'
|
import { stringReplace } from 'string-replace-middleware'
|
||||||
import * as pug from 'pug'
|
import * as pug from 'pug'
|
||||||
import 'dotenv/config.js'
|
import * as dotenv from 'dotenv'
|
||||||
|
dotenv.config()
|
||||||
|
|
||||||
import apiRoute from './routes/api.js'
|
import apiRoute from './routes/api.js'
|
||||||
import mainRoute from './routes/main.js'
|
import mainRoute from './routes/main.js'
|
||||||
|
|
Loading…
Reference in a new issue