Skip to content

Commit 2bd521b

Browse files
committed
chore(dx): hide warning for genereate
reason: proxy might still be used during ssr generate. we might use docsto explain this
1 parent 864d4d6 commit 2bd521b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/module.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ function proxyModule (options) {
1616
return
1717
}
1818

19-
if (this.options.mode !== 'spa') {
20-
this.nuxt.hook('generate:before', () => {
21-
logger.warn('The module `@nuxtjs/proxy` does not work in generated mode.')
22-
})
23-
}
24-
2519
// Defaults
2620
const defaults = Object.assign(
2721
{

0 commit comments

Comments
 (0)