mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2026-01-11 11:45:49 +00:00
source, static files & Dockerfile
This commit is contained in:
10
src/hooks.server.ts
Normal file
10
src/hooks.server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Handle } from '@sveltejs/kit';
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
if (dev) {
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
}
|
||||
|
||||
return await resolve(event);
|
||||
};
|
||||
Reference in New Issue
Block a user