Thanks Ernesto Freyre! This is a great writeup.

Do you, or anyone reading this, have any tips on how to handle pointing DNS at Google Cloud Function as a deployment step — i.e. to negate the Fastly/external CDN step?

In particular for dynamic environments (e.g. on Pull Request, which I’ve done with Next.js on AWS Lambda, using GitHub Actions) or to spin up prototypes on subdomains.

I’m familiar doing this using Serverless Framework to deploy to an AWS Lambda (thanks to a Serverless Framework plugin than handles CloudFront and DNS configuration) but have not deployed a Next.js app to a Google Cloud Function yet.

I assume it’s possible to use Google Cloud CDN do the same thing and figure I can RTFM but would appreciate tips from people who have done this in practice, and who may have examples.

Written by

Software for news and media and civic tech. Cat herder. Director at Glitch Digital.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store