From d82b392030b643aeabc84b71b5aa6ae1149ee510 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 10 Nov 2022 04:18:49 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/vite-plugin-astro-server/base.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/vite-plugin-astro-server/base.ts b/packages/astro/src/vite-plugin-astro-server/base.ts index e65c948c2..7be3acb9f 100644 --- a/packages/astro/src/vite-plugin-astro-server/base.ts +++ b/packages/astro/src/vite-plugin-astro-server/base.ts @@ -48,9 +48,13 @@ export function baseMiddleware( fs.stat(publicPath, (_err, stats) => { if (stats) { const expectedLocation = new URL('.' + url, devRootURL).pathname; - warn(logging, 'dev', `Requests for items in your public folder must also include your base. ${url} should be ${expectedLocation}. Omitting the base will break in production.`); + warn( + logging, + 'dev', + `Requests for items in your public folder must also include your base. ${url} should be ${expectedLocation}. Omitting the base will break in production.` + ); res.writeHead(301, { - 'Location': expectedLocation + Location: expectedLocation, }); res.end(); } else {