serverless-side-nuxtjs-example icon indicating copy to clipboard operation
serverless-side-nuxtjs-example copied to clipboard

Client side events after lambda render

Open niom opened this issue 6 years ago • 0 comments

I've played with nuxt and lambda and found an interesting side effect that client side events wont work after page has been rendered with lambda.

https://github.com/niom/serverless-side-nuxtjs-example/tree/feature/ui-events

I extended you example just a little bit to include some client side events that can be triggered by using buttons.

  1. Alert
  2. Incremental counter

So what makes this really interesting is that when using serverless offline to simulate the AWS lambda the client side events are working like a charm but after deploying the code to AWS and fetching the page through lambda the client side events stop working.

Is this something to do with lambda doing the rendering or am I missing something from the lambda configuration?

niom avatar Aug 16 '18 06:08 niom