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

Usage help!

Open hazio opened this issue 6 years ago • 2 comments

Hello!

How can I use the prerenderer after deploying it?

endpoints: GET - https://xxxxxxxx.execute-api.eu-north-1.amazonaws.com/prod/{proxy+}

What should I put to {proxy+}?

EDIT: figured that out by deploying API. Now I get {"message":"Missing Authentication Token"}. How to overcome that?

hazio avatar Feb 20 '19 13:02 hazio

Just append URL to your endpoint. For example: https://xxxxx.execute-api.region.amazonaws.com/prod/https://my-website.com/pages/foo/baz?query=string

Anyway, I've found current implementation may throw Timeout or Internal Server Error. I'm working on refactoring entire source code to provide easier setup & improve stability (most important!). It will take few days to complete (expecting up to 5 days). New version will provide CLI based configurator too.

Stay tuned!

mooyoul avatar Mar 12 '19 18:03 mooyoul

Hi @mooyoul

Did you end up creating a refactored version? I'm struggling to get this working with [email protected] as the runtime (needed for lambda nowadays). It deploys, however, trying out a url on my deployed version (e.g. https://xxxxx.amazonaws.com/prod/https://google.com) I get 'bad gateway'. Currently working on debugging, however I have nothing more detailed to share yet.

walshhub avatar Sep 11 '20 02:09 walshhub