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:
parent
bb0d34bbd0
commit
543e93bcf4
@ -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('/.')) {
|
||||
|
Loading…
Reference in New Issue
Block a user