0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
Matt Kane 2025-01-30 16:04:58 +00:00 committed by astrobot-houston
parent 740eb6019f
commit 23e631c3dd
2 changed files with 1 additions and 2 deletions

View file

@ -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 (

View file

@ -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', () => {