Skip to content

Commit

Permalink
doc: add Nuxt 3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw authored Sep 11, 2023
1 parent 7c5adf6 commit ed74912
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@
[![Standard JS][standard-js-src]][standard-js-href]

> Nuxt 2 module to dynamically redirect initial requests
[📖 **Release Notes**](./CHANGELOG.md)


## Nuxt 3

In Nuxt 3 redirects are supported out of the box through route rules, this module is not needed.

```ts
export default defineNuxtConfig({
routeRules: {
// Redirects legacy urls
'/old-page': { redirect: '/new-page' }
}
})
```

## Features

Redirecting URLs is an often discussed topic, especially when it comes to
Expand Down

0 comments on commit ed74912

Please sign in to comment.