feat(frontend): POST for images
This commit is contained in:
8
frontend/src/hooks.server.ts
Normal file
8
frontend/src/hooks.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ConvexHttpClient } from 'convex/browser';
|
||||
import { PUBLIC_CONVEX_URL } from '$env/static/public';
|
||||
import type { Handle } from '@sveltejs/kit';
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
event.locals.convex = new ConvexHttpClient(PUBLIC_CONVEX_URL);
|
||||
return resolve(event);
|
||||
};
|
||||
Reference in New Issue
Block a user