next-aws-lambda icon indicating copy to clipboard operation
next-aws-lambda copied to clipboard

Configuration Questions

Open baronnoraz opened this issue 4 years ago • 0 comments

Apologies if this isn't the right place to ask, but I do have a few questions. Double apologies for not figuring out how to do this. I'm 100% new to Nextjs and almost that new to lambda.

  1. How do you specify the S3 bucket to which the website will be deployed?

  2. If I understand, each Nextjs page is turned into a lambda function to serve up that page. I've read that you put API routes in pages/api. Does that work the same in this setup?

  3. In addition to the website, I need to have a lambda function triggered on an S3 put event. Could that API live in the same place (pages/api) or would I need something else (is service the correct word?)

  4. If what I need is a separate service, can I configure that in the serverless.yml file with a service entry? All I've ever seen in my reading are service entries. This is the first time that I've seen a website entry.

  5. Does the Dockerfile serve any special purpose other than to let me run things through Docker if I wanted to?

Thanks for any help you are willing to offer. I'm more than happy to give back by adding documentation to help newbies like me get started using this.

baronnoraz avatar Feb 10 '21 16:02 baronnoraz