We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02260ca commit f18eeaaCopy full SHA for f18eeaa
2 files changed
backend/main.py
@@ -45,11 +45,12 @@ def custom_generate_unique_id(route: APIRoute) -> str:
45
logging.warning("Please make sure you have built the front-end project")
46
47
else:
48
- app.mount("/static", StaticFiles(directory=frontend_dist), name="static")
49
50
@app.get("/", include_in_schema=False)
51
async def read_index():
52
return FileResponse(path=os.path.join(frontend_dist, "index.html"))
+
53
+ app.mount("/", StaticFiles(directory=frontend_dist), name="static")
54
55
if __name__ == "__main__":
56
import uvicorn
frontend/vite.config.ts
@@ -10,6 +10,7 @@ export default defineConfig(({ mode }) => {
10
console.log(mode)
11
console.log(env)
12
return {
13
+ base: './',
14
plugins: [
15
vue(),
16
AutoImport({
0 commit comments