nuxt-community / proxy-module

The one-liner node.js http-proxy middleware solution for Nuxt 2 using http-proxy-middleware
MIT License
408 stars 25 forks source link

Suppress warning when configured by 3rd party module. #80

Closed Decipher closed 3 years ago

Decipher commented 4 years ago

What problem does this feature solve?

One of my modules provides a default configuration for the Proxy module if there is no configuration set in the nuxt.config.js file. But this results in a warning:

WARN: No proxy defined on top level.

The module works correctly, accepting the configuration from my module, so the warning, while accurate, is not actually relevant.

What does the proposed changes look like?

Unsure, possibly check configuration at a later stage, or provide a method for a module to suppress the warning?

This feature request is available on Nuxt community (#c50)
atinux commented 3 years ago

Could you check with latest version and confirm the log has been removed @Decipher ?

pi0 commented 3 years ago

Warnings removed in 2.x (864d4d6744ddb212610a86627a6056711d4201be, 2bd521b59f9c573f39c0090b47b7e70a898c2643)

Decipher commented 2 years ago

A little late, but confirming this is no longer an issue.