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 type { Actions, PageServerLoad } from "./$types";
|
||||
import { API_BASE_PREFIX } from "$lib/utils";
|
||||
import { API_BASE_PREFIX } from "$lib/server/utils";
|
||||
|
||||
export const load: PageServerLoad = async ({ params, fetch, cookies, url }) => {
|
||||
const globalSettingsData = await fetch(
|
||||
@@ -39,7 +39,8 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, url }) => {
|
||||
return {
|
||||
globalSettings,
|
||||
header,
|
||||
footer
|
||||
footer,
|
||||
API_BASE_PREFIX
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user