-
Notifications
You must be signed in to change notification settings - Fork 54
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
Native nuxt serverMiddleware functionality with this setup does not work #10
Comments
After some read i think the problem is that the serverMiddleware stuffs are not getting bundled in the build. (but why...?) SolutionModify firebase nuxt config: // functions/index.js
const config = {
dev: false,
buildDir: '.nuxt',
build: {
publicPath: '/assets/'
},
serverMiddleware: [
'~/serverMiddleware/test'
],
} Copy serverMiddleware stuffs to firebase dist/server: // package.json
"copy": "...;cp -R app/serverMiddleware dist/server", According to this (the bundle is not containing everything) we should deploy the whole app directory to the firebase... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ServerMiddleware documentation
My setup
Expected behavior:
At firebase serve on new page load 'It works!' string is logged on the server.
Actual behavior:
At firebase serve on new page load 'It works!' string is not logged on the server.
During development it works fine...
The text was updated successfully, but these errors were encountered: