@@ -109,6 +109,7 @@ def create_app() -> FastAPI:
109109
110110 app .state .limiter = limiter
111111 app .add_exception_handler (RateLimitExceeded , _rate_limit_exceeded_handler ) # type: ignore
112+
112113 app .mount (
113114 DEV_PAGES_STATIC_URL ,
114115 StaticFiles (directory = str (DEV_PAGES_DIST_DIR ), check_dir = False ),
@@ -162,19 +163,19 @@ async def index(request: Request) -> dict[str, object]:
162163 pages : list [dict [str , str ]] = []
163164
164165 if app .docs_url is not None :
165- pages .append ({"name" : "docs" , "path" : app .docs_url })
166+ pages .append ({"name" : "docs" , "path" : f" { settings . public_base_url } { app .docs_url } " })
166167
167168 if app .redoc_url is not None :
168- pages .append ({"name" : "redoc" , "path" : app .redoc_url })
169+ pages .append ({"name" : "redoc" , "path" : f" { settings . public_base_url } { app .redoc_url } " })
169170
170171 if app .openapi_url is not None :
171- pages .append ({"name" : "openapi" , "path" : app .openapi_url })
172+ pages .append ({"name" : "openapi" , "path" : f" { settings . public_base_url } { app .openapi_url } " })
172173
173174 if any (route .path == "/__dev/auth-sandbox" for route in request .app .routes ):
174- pages .append ({"name" : "auth_sandbox" , "path" : " /__dev/auth-sandbox" })
175+ pages .append ({"name" : "auth_sandbox" , "path" : f" { settings . public_base_url } /__dev/auth-sandbox" })
175176
176177 if any (route .path == "/__dev/powersync-sandbox" for route in request .app .routes ):
177- pages .append ({"name" : "powersync_sandbox" , "path" : " /__dev/powersync-sandbox" })
178+ pages .append ({"name" : "powersync_sandbox" , "path" : f" { settings . public_base_url } /__dev/powersync-sandbox" })
178179
179180 return {
180181 "name" : "Papyrus Server API" ,
0 commit comments