See vite-plugin-ssr.com/vercel.
How to deploy:
- Fork this repository.
- Log in to your Vercel account (or create one).
- Add your fork on Vercel's dashboard and deploy.
That's it, your fork is now deployed on Vercel (it should look like vite-plugin-ssr-demo.vercel.app). It's continuously deployed: if you commit and push a change to your fork, then Vercel automatically re-deploys your app.
Integration points:
- Serverless Function: vercel/output/functions/index.func/index.js.
- Rewrite URLs to our Serverless Function: vercel.json#rewrites.
- Build on Vercel: package.json#scripts["vercel-build"].
- Local Development: package.json#scripts["dev"].
This example was written by: github.com/AaronBeaudoin.