question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new nitro devProxy not working

See original GitHub issue

Environment

  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: modules, experimental, css, colorMode, nitro
  • Runtime Modules: @vueuse/nuxt@9.4.0, @unocss/nuxt@0.46.3, @pinia/nuxt@0.4.3, @nuxtjs/color-mode@3.1.8
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-5pp8lm?file=nuxt.config.ts,package.json

Describe the bug

i’m always get 404 in proxy url image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
manniLcommented, Nov 7, 2022
image

Looks fine in your StackBlitz (except that nothing is running on 3001)

2reactions
manniLcommented, Nov 7, 2022

No, I meant that the /proxy/test route works fine proxying to 3001.

For /proxy/example, please try another URL, e.g.:

'/proxy/example': {
    target: 'https://api.albionstatus.com/',
    prependPath: true,
    changeOrigin: true,
  },

This works as expected

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - ️ Nitro - UnJS
We can use devHandlers but note that they are only available in development mode and not in production build. devProxy. Proxy configuration for...
Read more >
How do I set proxy in Nuxt3? - vue.js - Stack Overflow
Then I try to follow this issue: text, do not use vite proxy. nuxt.config.js export default defineNuxtConfig({ nitro: { devProxy: { '/api/': ...
Read more >
nitro 13 - does not work with proxy server
The login does not work when a user uses a proxy server to browse the internet. In the traffic it is observed that...
Read more >
Nuxt3 broke Vite Proxy Server! - YouTube
... server running with Nuxt 3.Subscribe: https://www.youtube.com/channel/UCCIbWUeYUJjJmvE-QNungtQ?sub_confirmation=1For source code acc...
Read more >
Nuxt 3 server proxy - StackBlitz
For detailed explanation on how things work,. checkout [Nuxt.js docs](https://nuxtjs.org). ## Special Directories. You can create the following extra.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found