mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 01:24:58 +02:00
remove environment from config.yml
This commit is contained in:
parent
d54cf34377
commit
1c4608fbf4
4 changed files with 2 additions and 4 deletions
|
@ -9,7 +9,6 @@ export const APP_PATH = path.join("config");
|
|||
const environmentSchema = z.object({
|
||||
app: z.object({
|
||||
name: z.string(),
|
||||
environment: z.enum(["dev", "prod"]),
|
||||
base_url: z.string().url(),
|
||||
base_domain: z.string(),
|
||||
log_level: z.enum(["debug", "info", "warn", "error"]),
|
||||
|
|
|
@ -16,7 +16,7 @@ import cookieParser from "cookie-parser";
|
|||
import { User } from "@server/db/schema";
|
||||
import { ensureActions } from "./db/ensureActions";
|
||||
|
||||
const dev = config.app.environment !== "prod";
|
||||
const dev = process.env.ENVIRONMENT !== "prod";
|
||||
|
||||
const app = next({ dev });
|
||||
const handle = app.getRequestHandler();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue