Back to Next Js

Image optimization with secure compute

examples/image-secure-compute/README.md

16.2.51.1 KB
Original Source

Image optimization with secure compute

This example shows how you can use a Serverless Function as proxy to private image server to avoid giving direct access to browsers.

Deploy your own

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

bash
npx create-next-app --example image-secure-compute image-secure-compute-app
bash
yarn create next-app --example image-secure-compute image-secure-compute-app
bash
pnpm create next-app --example image-secure-compute image-secure-compute-app

Deploy it to the cloud with Vercel (Documentation).