Skip to content
loading...

re: A crash course on serverless-side rendering with Vue.js, Nuxt.js and AWS Lambda VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I was having the same problem, but got it working with the following: app.use((req, res) => setTimeout(() => nuxt.render(req, res), 0)); ...
 

Can confirm this solution works. Install serverless-offline with npm i serverless-offline. Then in nuxt.js, just replace app.use(nuxt.render) with Pascal's code, above. Run the plugin with sls offline. Be sure to include the http in http://localhost:3000.

code of conduct - report abuse