lewebsimple
06/14/2018, 1:39 PMserver.express.use(nuxt.render)
but the graphql requests fall-through to Nuxt... is there a way to make graphql-yoga's endpoints call res.end()
to prevent this? Thanks!Ben
06/14/2018, 1:47 PMserver.express.use('/*', nuxt.render)
Ben
06/14/2018, 1:48 PMserver.express.get
, if nuxt is only handling GET requestslewebsimple
06/14/2018, 1:52 PMserver.express.use
before server.start
Nuxt serves a 404 on the /playground route, wether I use a route or notlewebsimple
06/14/2018, 1:53 PMserver.start
, the prisma endpoints don't terminate the response and the request falls through to nuxt, which spits out a 404 (but the response in the browser is ok)lewebsimple
06/14/2018, 1:54 PMapp.get(PLAYGROUND_ENDPOINT, expressPlayground({
endpoint: GRAPHQL_ENDPOINT,
subscriptionEndpoint: SUBSCRIPTIONS_ENDPOINT,
}), (req, res) => res.end());
lewebsimple
06/14/2018, 2:05 PMserver.express.use((req, res, next) => {
if (req.path.match(/^\/(?!graphql|subscriptions|playground).*$/)) {
nuxt.render(req, res, next);
} else next();
});