diff --git a/src/utils/proxy.ts b/src/utils/proxy.ts index 2db347e4b9c..0a066360858 100644 --- a/src/utils/proxy.ts +++ b/src/utils/proxy.ts @@ -150,7 +150,7 @@ const getStatic = async function (pathname: string, publicFolder: string) { return false } - return `/${path.relative(publicFolder, file)}` + return `/${path.relative(publicFolder, file).split(path.sep).join('/')}` } const isEndpointExists = async function (endpoint: string, origin: string) {