diff --git a/website/package.json b/website/package.json index 550a5e7d..a9a11f35 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,7 @@ { "name": "website", "version": "0.1.0", + "homepage": "./", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.16.5", @@ -48,4 +49,4 @@ "@types/styled-components": "^5.1.26", "prettier": "2.8.8" } -} +} \ No newline at end of file diff --git a/website/src/App.tsx b/website/src/App.tsx index e32b9966..a8debdfa 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -85,7 +85,7 @@ function App() { {isPlaying ? ( ( canvas: canvas.current, locateFile: (file: string) => { if (file === "mgba.wasm") { - return "/vendor/mgba.wasm"; + return "./vendor/mgba.wasm"; } return file; },