removed auth dependency at build time #5
@@ -1,7 +1,5 @@
|
|||||||
FROM oven/bun AS builder
|
FROM oven/bun AS builder
|
||||||
|
|
||||||
RUN bun
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import * as schema from '$lib/server/db/schema';
|
|||||||
import type { RequestEvent } from '@sveltejs/kit';
|
import type { RequestEvent } from '@sveltejs/kit';
|
||||||
|
|
||||||
export const auth = betterAuth({
|
export const auth = betterAuth({
|
||||||
baseURL: env.ORIGIN,
|
baseURL: env.ORIGIN ?? 'http://localhost:3000',
|
||||||
secret: env.BETTER_AUTH_SECRET,
|
secret: env.BETTER_AUTH_SECRET ?? 'build-time-placeholder',
|
||||||
database: drizzleAdapter(db, { provider: 'pg', schema }),
|
database: drizzleAdapter(db, { provider: 'pg', schema }),
|
||||||
emailAndPassword: { enabled: true },
|
emailAndPassword: { enabled: true },
|
||||||
socialProviders: {
|
socialProviders: {
|
||||||
|
|||||||
Reference in New Issue
Block a user