0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 16:36:44 +01:00

fix(site-2): Use dynamic LOCAL_SVELTE_PATH

This commit is contained in:
Puru Vijay 2023-05-16 20:50:05 +05:30
parent bb0d34bbd0
commit 543e93bcf4

View File

@ -1,8 +1,8 @@
import { readFileSync } from 'fs';
import { join } from 'path';
import { LOCAL_SVELTE_PATH } from '$env/static/private';
import { env } from '$env/dynamic/private';
const local_svelte_path = LOCAL_SVELTE_PATH || '../../../svelte';
const local_svelte_path = env.LOCAL_SVELTE_PATH || '../../../svelte';
export function GET({ params: { path } }) {
if (import.meta.env.PROD || ('/' + path).includes('/.')) {