mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
2c829fdf65
commit
b0b5ba84a9
1 changed files with 1 additions and 3 deletions
|
@ -155,9 +155,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
||||||
for (let page of pages) {
|
for (let page of pages) {
|
||||||
let pagePath = prependForwardSlash(page.pathname);
|
let pagePath = prependForwardSlash(page.pathname);
|
||||||
if (_config.base !== '/') {
|
if (_config.base !== '/') {
|
||||||
const base = _config.base.endsWith('/')
|
const base = _config.base.endsWith('/') ? _config.base.slice(0, -1) : _config.base;
|
||||||
? _config.base.slice(0, -1)
|
|
||||||
: _config.base;
|
|
||||||
pagePath = `${base}${pagePath}`;
|
pagePath = `${base}${pagePath}`;
|
||||||
}
|
}
|
||||||
staticPathList.push(pagePath);
|
staticPathList.push(pagePath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue