mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Put API prefix in server only file to access process.env
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { redirect } from "@sveltejs/kit";
|
||||
import { API_BASE_PREFIX } from "$lib/utils";
|
||||
import { API_BASE_PREFIX } from "$lib/server/utils";
|
||||
|
||||
export const handle = async ({ event, resolve }) => {
|
||||
if (!event.url.pathname.startsWith("/api/")) {
|
||||
|
||||
Reference in New Issue
Block a user