mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
frontend: updating build command, location of static files
This commit is contained in:
parent
b26bce8556
commit
9d93b55d60
@ -20,7 +20,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "NODE_ENV=development react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"build": "BUILD_PATH='../src/frontend' react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
|
@ -142,9 +142,7 @@ class WebAPI:
|
||||
app.mount(
|
||||
"/",
|
||||
StaticFiles(
|
||||
directory=Path(__file__).parent.parent.parent.parent
|
||||
/ "frontend"
|
||||
/ "build",
|
||||
directory=Path(__file__).parent.parent.parent / "frontend",
|
||||
html=True,
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user