feat: implement SSE patch synchronization with frontend hooks and backend infrastructure

This commit is contained in:
2569718930@qq.com
2026-05-26 11:12:48 +08:00
parent 55439977f6
commit a4891d58cd
2 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ app = FastAPI(title="PolyWeather Map", version="1.0")
_cors_origins = os.getenv(
"WEB_CORS_ORIGINS",
"http://localhost:3000,http://127.0.0.1:3000,https://polyweather-pro.vercel.app",
"http://localhost:3000,http://127.0.0.1:3000,https://polyweather-pro.vercel.app,https://polyweather.top,https://api.polyweather.top",
)
app.add_middleware(
CORSMiddleware,