serverless-next icon indicating copy to clipboard operation
serverless-next copied to clipboard

Documentation

Open Vadorequest opened this issue 7 years ago • 4 comments

This repo look interesting, but hard to dive in without any documentation.

I'm using Serverless, but never used Next.js. I'm aiming at building a SSR application, because I need to pre-fetch data in order to dynamically inject a lot of things in the generated HTML, like meta, title, custom js blocks, css, etc.

I first did a very simple POC, using aws lambda and a handlebars template, which works okay for a single page, but isn't really practical to dev on it (need to deploy every time) and doesn't handle my multi pages need.

So, I looked for react SSR, then discovered Next.js and found your repo when looking for Next.js + Serverless.

I'll keep looking around and try it locally, but documentation would be nice! Especially now with almost 30 stars ;)

Vadorequest avatar Feb 24 '18 15:02 Vadorequest

What version of node did you use?

Vadorequest avatar Feb 24 '18 15:02 Vadorequest

@Vadorequest Hi, I'm happy that you found this example interesting.

You are totally right, it's a shame that I never wrote some docs or explanation about how everything is put together, mainly because this is a POC, not a proper tutorial or reference.

I'll look forward on updating it.


I prefer to use always the same version on Lambda (4.3 or 6.10), to have the closest behavior possible.

geovanisouza92 avatar Feb 26 '18 19:02 geovanisouza92

@geovanisouza92 I'm actually working on a tutorial/template for serverless, based on your work, but currently still trying to figure out some issues :/

See https://github.com/Vadorequest/serverless-with-next

Vadorequest avatar Feb 27 '18 00:02 Vadorequest

@geovanisouza92 I advanced much more in my own repo about the documentation: https://github.com/Vadorequest/serverless-with-next

I now have something that is somehow working. Still improving. :)

Vadorequest avatar Mar 05 '18 19:03 Vadorequest