瀏覽代碼

Fixing deployment url hopefully

Kirk Trombley 5 年之前
父節點
當前提交
5f165d97b3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      client/.env.development
  2. 1 1
      server/app/__init__.py

+ 1 - 1
client/.env.development

@@ -1,3 +1,3 @@
-# REACT_APP_API_BASE=http://localhost:5000
+# REACT_APP_API_BASE=http://localhost:5000/terrassumptions/api
 # above can be uncommented to point to local server/app.py
 REACT_APP_MONITOR_STORE=true

+ 1 - 1
server/app/__init__.py

@@ -6,7 +6,7 @@ from fastapi.middleware.cors import CORSMiddleware
 from .api import other, game
 from .db import init_db
 
-app = FastAPI()
+app = FastAPI(openapi_prefix="/terrassumptions/api")
 
 app.include_router(other)
 app.include_router(game, prefix="/game")