Zum Inhalt springen

Invalid type returned by Astro page.

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Route returned a RETURNED_VALUE. Only a Response can be returned from Astro files.

Only instances of Response can be returned inside Astro files.

pages/login.astro
---
return new Response(null, {
status: 404,
statusText: 'Not found'
});
// Alternatively, for redirects, Astro.redirect also returns an instance of Response
return Astro.redirect('/login');
---

See Also:

Wirke mit

Worum geht es?

Community
京ICP备15031610号-99