0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix(cloudflare): base strip logic (#6550)

This commit is contained in:
Richard Simpson 2023-03-16 09:39:54 -05:00 committed by GitHub
parent 20862d49c3
commit 7a45eba4a1

View file

@ -156,7 +156,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
let pagePath = prependForwardSlash(page.pathname);
if (_config.base !== '/') {
const base = _config.base.endsWith('/')
? _config.base.substring(0, -1)
? _config.base.slice(0, -1)
: _config.base;
pagePath = `${base}${pagePath}`;
}