This example shows how you can use a Serverless Function as proxy to private image server to avoid giving direct access to browsers.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example image-secure-compute image-secure-compute-appyarn create next-app --example image-secure-compute image-secure-compute-apppnpm create next-app --example image-secure-compute image-secure-compute-appDeploy it to the cloud with Vercel (Documentation).