Astro 页面返回的类型无效。
路由返回
RETURNED_VALUE
。Astro 文件只能返回响应。¥Route returned a
RETURNED_VALUE
. Only a Response can be returned from Astro files.
什么地方出了错?
标题部分 什么地方出了错?¥What went wrong?
Astro 文件中只能返回 响应 的实例。
¥Only instances of Response can be returned inside Astro files.
---return new Response(null, { status: 404, statusText: 'Not found'});
// Alternatively, for redirects, Astro.redirect also returns an instance of Responsereturn Astro.redirect('/login');---
也可以看看:
¥See Also:
Error Reference