silverwolf-x's picture
|
download
raw
1.16 kB
# 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
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/image-secure-compute&project-name=image-secure-compute&repository-name=image-secure-compute)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) 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](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

Xet Storage Details

Size:
1.16 kB
·
Xet hash:
779b9b241afa7d057b70bc44348bf41ec58efadcc71a49b3e25e6d49f0529a21

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.