Skip to content

Commit

Permalink
Update packages/integrations/cloudflare/src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
RichiCoder1 and bluwy committed Mar 15, 2023
1 parent ac73b1c commit 459c7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, _config.base.length - 1)
? _config.base.slice(0, -1)
: _config.base;
pagePath = `${base}${pagePath}`;
}
Expand Down

0 comments on commit 459c7d7

Please sign in to comment.