Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serverMiddleware doesn't work when running with static target in production #8230

Closed
Fyroman opened this issue Oct 20, 2020 · 1 comment
Closed

Comments

@Fyroman
Copy link

Fyroman commented Oct 20, 2020

When using this.addServerMiddleware from module, it works in dev mode, but doesn't work in production mode. Same thing when placing it normally in nuxt.config.js.

@danielroe
Copy link
Member

@Fyroman This is intended, because the the static target is intended for static hosting. You should make your own arrangements for hosting your serverMiddleware on a separate server (or as serverless endpoints).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants