mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-01 21:42:38 +00:00
feat: add next.js with prod/dev configs
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user