fix: throw on missing OIDC_COOKIE_SECRET in production
This commit is contained in:
parent
3b7b75ab70
commit
255518a6a8
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ import { MongoAdapter } from "./oidc-mongodb-adapter.js";
|
|||
import Member from "../models/member.js";
|
||||
import { connectDB } from "./mongoose.js";
|
||||
|
||||
if (process.env.NODE_ENV === 'production' && !process.env.OIDC_COOKIE_SECRET) {
|
||||
throw new Error('OIDC_COOKIE_SECRET must be set in production')
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a standalone HTML page in the guild dark style.
|
||||
* Used for OIDC logout/error screens that are served outside Nuxt.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue