From c89f74b2bb1706fd95be234df3b085d7e6834f2a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 17 Mar 2025 22:48:49 +0900 Subject: fix base path 2 --- src/exec_php.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exec_php.ts') diff --git a/src/exec_php.ts b/src/exec_php.ts index 3c38cf4..ca76940 100644 --- a/src/exec_php.ts +++ b/src/exec_php.ts @@ -14,7 +14,7 @@ let fetchingWasmBinaryPromise: Promise | null = null; async function fetchWasmBinary(): Promise { if (!fetchingWasmBinaryPromise) { fetchingWasmBinaryPromise = new Promise((resolve, reject) => { - fetch("/php-wasm.wasm") + fetch(import.meta.env.BASE_URL + "/php-wasm.wasm") .then((res) => { if (!res.ok) { reject(`Failed to fetch wasm binary: ${res.status} (${res.url})`); -- cgit v1.2.3-70-g09d2