finally it seems to work

This commit is contained in:
Stepan Usatiuk
2023-12-30 22:52:04 +01:00
parent 65e50d9e02
commit 52f26c15db
10 changed files with 112 additions and 8 deletions

3
client/.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
.parcel-cache
dist
node_modules

View File

@@ -5,10 +5,9 @@
"author": "Stepan Usatiuk",
"source": "src/index.html",
"scripts": {
"start": "parcel",
"build": "parcel build"
"start": "parcel --public-url /app",
"build": "parcel build --public-url /app"
},
"publicUrl": "/app",
"browserslist": "> 0.5%, last 2 versions, not dead",
"dependencies": {
"jwt-decode": "^4.0.0",

View File

@@ -10,7 +10,7 @@ declare const process: {
};
const apiRoot: string =
process.env.NODE_ENV == "production" ? "/" : "http://localhost:8080";
process.env.NODE_ENV == "production" ? "" : "http://localhost:8080";
let token: string | null;