From 550c0e96f88b21763b18bee29f15a0efb8d5ac28 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Mon, 11 Sep 2023 17:45:06 +0200 Subject: [PATCH] doc: Nuxt 3 workaround --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2b5b5ff..f973cdf 100755 --- a/README.md +++ b/README.md @@ -9,6 +9,19 @@ [📖 **Release Notes**](./CHANGELOG.md) +## Nuxt 3 + +In Nuxt 3 you can make use of [Route Rules](https://nitro.unjs.io/guide/routing) to configure your proxies. + +``` +export default defineNuxtConfig({ + routeRules: { + '/proxy/example': { proxy: 'https://example.com' }, + '/proxy/**': { proxy: '/api/**' }, + } +}) +``` + ## Features ✓ Path rewrites