diff --git a/package.json b/package.json index e8f0864..17e1c87 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "react-scripts": "^5.0.1", "web-vitals": "^2.1.4" }, - "homepage": ".", + "homepage": "http://WolffM.github.io/webcomicreact", "scripts": { "start": "react-scripts start", "build": "react-scripts build", diff --git a/src/App.js b/src/App.js index dbd14be..0cd02c8 100644 --- a/src/App.js +++ b/src/App.js @@ -15,7 +15,7 @@ function App() { let index = 1; while (mounted) { - const imagePath = `/assets/${index}.png`; + const imagePath = `./assets/${index}.png`; try { const response = await fetch(imagePath);