mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
740eb6019f
commit
23e631c3dd
2 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,7 @@ export function trailingSlashMiddleware(settings: AstroSettings): vite.Connect.N
|
||||||
/* malformed uri */
|
/* malformed uri */
|
||||||
return next(e);
|
return next(e);
|
||||||
}
|
}
|
||||||
if(pathname.startsWith('/_') || pathname.startsWith('/@')) {
|
if (pathname.startsWith('/_') || pathname.startsWith('/@')) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -174,7 +174,6 @@ describe('trailing slashes for error pages', () => {
|
||||||
const response = await fixture.fetch('/@vite/client');
|
const response = await fixture.fetch('/@vite/client');
|
||||||
assert.equal(response.status, 200);
|
assert.equal(response.status, 200);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Production', () => {
|
describe('Production', () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue