Astro 页面返回了无效类型。
路由返回了
RETURNED_VALUE
。在 Astro 文件中只能返回 Response 对象。
哪里出错了?
标题为“哪里出错了?”的部分在 Astro 文件中只能返回 Response 的实例。
---return new Response(null, { status: 404, statusText: 'Not found'});
// Alternatively, for redirects, Astro.redirect also returns an instance of Responsereturn Astro.redirect('/login');---
另请参阅
错误参考