You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
In Nuxt 2 we added a serverMiddleware from the module like that:
// Add the server middleware.
this.addServerMiddleware({
path: config.endpointNamespace,
handler: serverMiddleware(
config.graphqlServer,
queries,
mutations,
config.server
),
})
We need to pass a lot of configuration to the middleware defined in nuxt.config.ts.
Describe the bug
With Nuxt2 bridge we cannot pass a function anymore. It does not work with nitro if we pass a function. We have to pass a file path to build the standalone nitro server.
But how can we pass all the configuration settings?
There must be a way to access the nuxt configuration some how?
Environment
Reproduction
In Nuxt 2 we added a serverMiddleware from the module like that:
We need to pass a lot of configuration to the middleware defined in nuxt.config.ts.
Describe the bug
With Nuxt2 bridge we cannot pass a function anymore. It does not work with nitro if we pass a function. We have to pass a file path to build the standalone nitro server.
But how can we pass all the configuration settings?
There must be a way to access the nuxt configuration some how?
How can we somehow pass the configuration?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: