serverless-prerender
serverless-prerender copied to clipboard
Usage help!
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?
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!
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.