Fix error handling in layout server file and update USING_VERCEL assignment
This commit is contained in:
@@ -5,7 +5,7 @@ try {
|
|||||||
const env = await import("$env/static/private");
|
const env = await import("$env/static/private");
|
||||||
USING_VERCEL = env.USING_VERCEL;
|
USING_VERCEL = env.USING_VERCEL;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
USING_VERCEL = "false";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const load: LayoutServerLoad = async (event) => {
|
export const load: LayoutServerLoad = async (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user