arunsathiya / portfolio

Arun's portfolio of software projects and blog posts, powered by Notion as a CMS
https://www.arun.blog
2 stars 1 forks source link

Use `fastly/compute-actions/preview` for preview deployments in PRs #56

Closed arunsathiya closed 2 weeks ago

arunsathiya commented 2 weeks ago

https://www.fastly.com/documentation/guides/integrations/ci/

sharunkumar commented 2 weeks ago

This is overkill for a blog though, lol

sharunkumar commented 2 weeks ago

Besides we rarely update your blog content in PRs right? content update is automated?

arunsathiya commented 2 weeks ago

Good way to learn the concepts, haha.

It's not built on a periodic basis, but when I update something on Notion, I trigger the Notion workflow manually.

arunsathiya commented 2 weeks ago

I actually want to show Spotify currently playing status with Fastly functions as middleware, so in those cases, previews can be helpful for PRs. I think this is the relevant doc, but I am not too sure just yet. This is where I want to work out that logic though:

https://github.com/arunsathiya/portfolio/blob/5c81d861f43d28976ee1571c0830a56b63cc6fd9/compute-js/src/index.js#L13-L15

Also found this: Preview on Fastly for each pull-request.

arunsathiya commented 2 weeks ago

No longer relevant with the move to Vercel for SSR/api support: