mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: silent proxy errors
This commit is contained in:
parent
e56178a872
commit
239c69d92a
@ -72,8 +72,8 @@ export function createDevServer (sigmaContext: SigmaContext) {
|
|||||||
const proxy = createProxy()
|
const proxy = createProxy()
|
||||||
app.use((req, res) => {
|
app.use((req, res) => {
|
||||||
if (workerAddress) {
|
if (workerAddress) {
|
||||||
proxy.web(req, res, { target: workerAddress }, (err) => {
|
proxy.web(req, res, { target: workerAddress }, (_err) => {
|
||||||
console.error('[proxy]', err)
|
// console.error('[proxy]', err)
|
||||||
})
|
})
|
||||||
} else if (loadingMiddleware) {
|
} else if (loadingMiddleware) {
|
||||||
// TODO:serverIndex method is not exposed
|
// TODO:serverIndex method is not exposed
|
||||||
|
Loading…
Reference in New Issue
Block a user