diff --git a/packages/astro/src/vite-plugin-astro-server/trailing-slash.ts b/packages/astro/src/vite-plugin-astro-server/trailing-slash.ts index 1872214cfece..2588d4c497e1 100644 --- a/packages/astro/src/vite-plugin-astro-server/trailing-slash.ts +++ b/packages/astro/src/vite-plugin-astro-server/trailing-slash.ts @@ -22,7 +22,7 @@ export function trailingSlashMiddleware(settings: AstroSettings): vite.Connect.N /* malformed uri */ return next(e); } - if(pathname.startsWith('/_') || pathname.startsWith('/@')) { + if (pathname.startsWith('/_') || pathname.startsWith('/@')) { return next(); } if ( diff --git a/packages/astro/test/ssr-error-pages.test.js b/packages/astro/test/ssr-error-pages.test.js index 0ffb7ddbd7a4..beab4fa963f2 100644 --- a/packages/astro/test/ssr-error-pages.test.js +++ b/packages/astro/test/ssr-error-pages.test.js @@ -174,7 +174,6 @@ describe('trailing slashes for error pages', () => { const response = await fixture.fetch('/@vite/client'); assert.equal(response.status, 200); }); - }); describe('Production', () => {