Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 15, 2025
1 parent 5f0deb7 commit 6a03c29
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions packages/astro/src/types/public/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,14 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
* ```js
* export default defineConfig({
* redirects: {
* '/old': '/new',
* '/blog/[...slug]': '/articles/[...slug]',
* }
* '/old': '/new',
* '/blog/[...slug]': '/articles/[...slug]',
* '/about': 'https://example.com/about',
* '/news': {
* status: 302,
* destination: 'https://example.com/news'
* }
* }
* })
* ```
*
Expand All @@ -296,21 +301,6 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
* }
* })
* ```
*
* Since **v5.2.0**, the property accepts external URLs:
*
* ```js
* export default defineConfig({
* redirects: {
* '/blog': 'https://example.com/blog',
* '/news': {
* status: 302,
* destination: 'https://example.com/news'
* }
* }
* })
* ```
*/
redirects?: Record<string, RedirectConfig>;
/**
Expand Down

0 comments on commit 6a03c29

Please sign in to comment.