frontend: updating build command, location of static files

This commit is contained in:
Mose Müller 2023-08-02 12:06:20 +02:00
parent b26bce8556
commit 9d93b55d60
11 changed files with 2 additions and 4 deletions

View File

@ -20,7 +20,7 @@
}, },
"scripts": { "scripts": {
"start": "NODE_ENV=development react-scripts start", "start": "NODE_ENV=development react-scripts start",
"build": "react-scripts build", "build": "BUILD_PATH='../src/frontend' react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },

View File

@ -142,9 +142,7 @@ class WebAPI:
app.mount( app.mount(
"/", "/",
StaticFiles( StaticFiles(
directory=Path(__file__).parent.parent.parent.parent directory=Path(__file__).parent.parent.parent / "frontend",
/ "frontend"
/ "build",
html=True, html=True,
), ),
) )