* refactor: create, update user inputs use types instead of custom validators * fix: save weekStart, timeFormat, timeZone when creating user * fix: save weekStart, timeFormat, timeZone when creating user * e2e: fix env variables and test weekStart, timeZone and timeFormat during user create
20 lines
649 B
TypeScript
20 lines
649 B
TypeScript
import type { Environment } from "@/env";
|
|
|
|
const env: Partial<Omit<Environment, "NODE_ENV">> = {
|
|
API_PORT: "5555",
|
|
DATABASE_READ_URL: "postgresql://postgres:@localhost:5450/calendso",
|
|
DATABASE_WRITE_URL: "postgresql://postgres:@localhost:5450/calendso",
|
|
NEXTAUTH_SECRET: "XF+Hws3A5g2eyWA5uGYYVJ74X+wrCWJ8oWo6kAfU6O8=",
|
|
JWT_SECRET: "XF+Hws3A5g2eyWA5uGYYVJ74X+wrCWJ8oWo6kAfU6O8=",
|
|
LOG_LEVEL: "trace",
|
|
REDIS_URL: "redis://localhost:9199",
|
|
STRIPE_API_KEY: "sk_test_51J4",
|
|
STRIPE_WEBHOOK_SECRET: "whsec_51J4",
|
|
};
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
process.env = {
|
|
...env,
|
|
...process.env,
|
|
};
|