rsnext/packages
Shu Ding b1d2200770
Add optional match support of rewrites and redirects in typedRoutes (#47398)
This PR refactors the types plugin a bit and adds support for optional match groups in rewrites and redirects:

```js
source: '/redirect(/v1)?/guides/:param/page'
```

Which will be created as two rules:

```ts
| `/redirect/guides/${SafeSlug<T>}/page`
| `/redirect/v1/guides/${SafeSlug<T>}/page`
```

fix NEXT-875 ([link](https://linear.app/vercel/issue/NEXT-875))
2023-03-22 23:27:59 +00:00
..
create-next-app v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
eslint-config-next v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
eslint-plugin-next v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
font v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next Add optional match support of rewrites and redirects in typedRoutes (#47398) 2023-03-22 23:27:59 +00:00
next-bundle-analyzer v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-codemod v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-env v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-mdx v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-plugin-storybook v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-polyfill-module v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-polyfill-nomodule v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
next-swc v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
react-dev-overlay v13.2.5-canary.13 2023-03-22 15:55:34 -07:00
react-refresh-utils v13.2.5-canary.13 2023-03-22 15:55:34 -07:00