-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support request: possible to deploy as cloud function? #123
Comments
Hi @semla, I think it depends on your use case. Do you need that cloud function to prerender a few URLs when deploying your app? In that case the answer is yes. Anything that runs Node.js can be used to run angular-prerender. Do you want to render some URLs on demand (when a user actually requests on of the URLs) then this sounds more like a use case for Angular Universal with a caching layer to me. I hope this helps. |
Hi @chrisguttandin, definitely helps. It is more the first use-case, so not in response to requests. |
I think it's common to use a CI system like Travis, Circle CI, or GitHub Actions for that task. Would that work for your use case? |
Don't think so, I want to render a few urls every half hour or so. So not when deploying, rather when the data fetched has been updated. So not in response to user request either, more like a chron-job. See what I mean? |
Yes, exactly. It would be just another npm script. I'm not sure about other services but GitHub Actions can for example also be triggered like a cron job. |
I am looking to deploy a cloud function that can prerender a few urls. I am looking into different ways, but very new to Universal and ssr. Would it be possible to use this library as a cloud function?
Thanks,
The text was updated successfully, but these errors were encountered: