diff --git a/packages/start-static-server-functions/src/staticFunctionMiddleware.ts b/packages/start-static-server-functions/src/staticFunctionMiddleware.ts index 2a077de3e80..1e91f2452d7 100644 --- a/packages/start-static-server-functions/src/staticFunctionMiddleware.ts +++ b/packages/start-static-server-functions/src/staticFunctionMiddleware.ts @@ -116,7 +116,9 @@ const fetchItem = async ({ let result: any = staticClientCache?.get(url) - result = await fetch(url, { + const basePath = process.env.TSS_ROUTER_BASEPATH! + const prefixedUrl = path.join(basePath, url) + result = await fetch(prefixedUrl, { method: 'GET', }) .then((r) => r.json())