pimlie / nuxt-lambda

Nuxt.js command to quickly & easily create an optimized lambda
MIT License
43 stars 4 forks source link

Trying to help ... #8

Open jamesladd opened 4 years ago

jamesladd commented 4 years ago

Hey Nuxt-lambda,

I think this is something I have been looking for. While it is experimental I'm hoping to run it with AWS Lambda and contribute.

One question I have is, from inside an AWS lambda how do I invoke Nuxt with the path? (not clear from documentation)

Is it similar to the way this example of a AWS lambda calling Nuxt is done? https://github.com/serverless/examples/blob/master/aws-node-vue-nuxt-ssr/nuxt.js

pimlie commented 4 years ago

Hey, you shouldnt need to do anything for this as this is handled by one of these handlers: https://github.com/pimlie/nuxt-lambda/tree/master/src/handlers

You can configure nuxt-lambda to use one of them, see the handler option: https://github.com/pimlie/nuxt-lambda#options

jamesladd commented 4 years ago

Thank you for the prompt response. I'll look into those hanglers.