Vercel Deployment
Deploy your React Just app on Vercel.
Installation
Install the Vercel adapter package in your project:
bash
$ npm install @react-just/vercelbash
$ pnpm add @react-just/vercelbash
$ bun add @react-just/vercelAdd the plugin in the Vite config file:
ts
import vercel from "@react-just/vercel";
import react from "react-just/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react(), vercel()],
});Building the App
Build the app with the vite build command. For convenience, add the following script to your package.json:
json
{
"scripts": {
"build": "vite build"
}
}Then build the app with:
bash
$ npm run buildbash
$ pnpm buildbash
$ bun run buildThe build process generates a .vercel/output directory following Vercel's Build Output API specification.
For details about the adapter and its output format, see the Vercel adapter reference.