Astro.redirect is not available in static mode.
이 컨텐츠는 아직 번역되지 않았습니다.
Deprecated since version 2.6.
StaticRedirectNotAvailable: Redirects are only available when using
output: 'server'
oroutput: 'hybrid'
. Update your Astro config if you need SSR features.
What went wrong?
The Astro.redirect
function is only available when Server-side rendering is enabled.
To redirect on a static website, the meta refresh attribute can be used. Certain hosts also provide config-based redirects (ex: Netlify redirects).
See Also:
Error Reference