Created
July 17, 2023 10:16
-
-
Save kwarkjes/b2f7f15803f5cb2d8d0ce2f14af605a8 to your computer and use it in GitHub Desktop.
Proxy Nuxt 3 traffic with server routes (Uses Nitro)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// server/routes/proxy.js | |
export default defineEventHandler((event) => { | |
return proxyRequest(event,`https://www.google.com/search?q=${event.node.req.url}`) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment