Change public url to /

This commit is contained in:
2025-09-28 15:28:13 +02:00
parent 5917a35da5
commit 45f58fc158
3 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,9 @@ RUN npm ci --silent --legacy-peer-deps
COPY . . COPY . .
ARG REACT_APP_API_URL="" ARG REACT_APP_API_URL=""
ARG PUBLIC_URL=/
ENV REACT_APP_API_URL=${REACT_APP_API_URL} ENV REACT_APP_API_URL=${REACT_APP_API_URL}
ENV PUBLIC_URL=${PUBLIC_URL}
RUN npm run build RUN npm run build

View File

@@ -1,7 +1,7 @@
{ {
"name": "frontend", "name": "frontend",
"version": "0.1.0", "version": "1.0.0",
"homepage": "https://hugyouu.github.io/Letterboxd-Diary-Posters-Picker", "homepage": "/",
"dependencies": { "dependencies": {
"@emotion/react": "^11.14.0", "@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0", "@emotion/styled": "^11.14.0",

View File

@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL. work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>React App</title> <title>Poster Picker</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>