fix: pass DATABASE_URL to prisma
This commit is contained in:
parent
860a3d210d
commit
0ecb4190ee
1 changed files with 3 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
import type { Handle } from '@sveltejs/kit';
|
||||
|
||||
import { env } from '$env/dynamic/private';
|
||||
|
||||
import { auth } from '$lib/server/lucia';
|
||||
import { ObjectStorageNoop } from '$lib/server/storage/noop';
|
||||
import { DatabasePrisma } from '$lib/server/db/prisma';
|
||||
|
||||
const s3Client = new ObjectStorageNoop();
|
||||
const prismaClient = new DatabasePrisma();
|
||||
const prismaClient = new DatabasePrisma(env.DATABASE_URL);
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
event.locals.auth = auth;
|
||||
|
|
Loading…
Reference in a new issue