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

[ci] format

This commit is contained in:
Arsh 2024-02-23 15:27:44 +00:00 committed by astrobot-houston
parent 6aa660ae7a
commit eb8bffe67a
3 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ export function createRequest({
: new Headers(Object.entries(headers as Record<string, any>));
if (typeof url === 'string') url = new URL(url);
// HACK! astro:assets uses query params for the injected route in `dev`
if (removeParams && url.pathname !== '/_image') {
url.search = '';

View file

@ -229,7 +229,7 @@ export async function handleRoute({
logger,
ssr: buildingToSSR,
clientAddress: buildingToSSR ? incomingRequest.socket.remoteAddress : undefined,
removeParams: buildingToSSR === false || route.prerender
removeParams: buildingToSSR === false || route.prerender,
});
// Set user specified headers to response object.

View file

@ -80,7 +80,7 @@ describe('vite-plugin-astro-server', () => {
describe('url', () => {
let container;
let settings;
before(async () => {
const root = new URL('../../fixtures/api-routes/', import.meta.url);
const fileSystem = {