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:
parent
20862d49c3
commit
7a45eba4a1
1 changed files with 1 additions and 1 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue