fix: cli usage

This commit is contained in:
Nicolas Meienberger 2026-02-11 17:47:34 +01:00
parent b5c8f71d88
commit 3bdab09c75
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ const envSchema = type({
appVersion: s.APP_VERSION,
trustedOrigins: s.TRUSTED_ORIGINS?.split(",")
.map((origin) => origin.trim())
.push(s.BASE_URL) ?? [s.BASE_URL],
.concat(s.BASE_URL) ?? [s.BASE_URL],
disableRateLimiting: s.DISABLE_RATE_LIMITING === "true",
appSecret: s.APP_SECRET,
baseUrl: s.BASE_URL,

View file

@ -23,7 +23,7 @@ export type AuthMiddlewareContext = MiddlewareContext<MiddlewareOptions, AuthCon
const createBetterAuth = (secret: string) => {
return betterAuth({
secret,
baseURL: "http://localhost:3000",
baseURL: config.baseUrl,
trustedOrigins: config.trustedOrigins,
advanced: {
cookiePrefix: "zerobyte",

View file

@ -9,7 +9,7 @@
"start": "bun run .output/server/index.mjs",
"preview": "bunx --bun vite preview",
"cli:dev": "bun run app/server/cli/main.ts",
"cli": "ZEROBYTE_CLI=1 bun ./dist/server/index.js",
"cli": "ZEROBYTE_CLI=1 bun .output/server/_ssr/index.mjs",
"tsc": "tsc --noEmit",
"start:dev": "docker compose down && docker compose up --build zerobyte-dev",
"start:prod": "docker compose down && docker compose up --build zerobyte-prod",