We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec0e7b commit 529a796Copy full SHA for 529a796
packages/smooth-core/src/server/expressApp.js
@@ -50,13 +50,13 @@ export function createExpressApp({
50
app.use(webpackMiddleware)
51
}
52
53
- const apolloServer = new ApolloServer({ schema })
54
-
55
- apolloServer.applyMiddleware({
56
- app,
+ const apolloServer = new ApolloServer({
+ schema,
57
context: ({ req }) => getContext({ req, config }),
58
})
59
+ apolloServer.applyMiddleware({ app })
+
60
app.use(ssr({ config, schema, fragmentTypes }))
61
62
if (config.env === 'development') {
0 commit comments