feat: add next.js with prod/dev configs

This commit is contained in:
Jayden Pyles
2024-06-25 14:49:17 -05:00
parent f4bb0fc76b
commit e64e16244f
20 changed files with 393 additions and 141 deletions

View File

@@ -19,12 +19,12 @@ app.add_middleware(
allow_headers=["*"],
)
app.mount("/static", StaticFiles(directory="./build/static"), name="static")
app.mount("/static", StaticFiles(directory="./dist/_next/static"), name="static")
@app.get("/")
def read_root():
return FileResponse("./build/index.html")
return FileResponse("./dist/index.html")
@app.get("/api/endpoint")