0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00

fix(types): update Astro.redirect JSDoc comment (#11546)

* fix(types): update Astro.redirect JSDoc comment

* add changeset
This commit is contained in:
Armand Philippot 2024-07-24 20:54:21 +02:00 committed by GitHub
parent d94247528d
commit 7f26de906e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Remove "SSR Only" mention in `Astro.redirect` inline documentation and update reference link.

View file

@ -262,7 +262,7 @@ export interface AstroGlobal<
* ```
*/
getActionResult: AstroSharedContext['getActionResult'];
/** Redirect to another page (**SSR Only**)
/** Redirect to another page
*
* Example usage:
* ```typescript
@ -271,7 +271,7 @@ export interface AstroGlobal<
* }
* ```
*
* [Astro reference](https://docs.astro.build/en/guides/server-side-rendering/)
* [Astro reference](https://docs.astro.build/en/reference/api-reference/#astroredirect)
*/
redirect: AstroSharedContext['redirect'];
/**