mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 16:50:02 +02:00
frontend: updating build command, location of static files
This commit is contained in:
parent
b26bce8556
commit
9d93b55d60
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user