- npm, pnpm, or yarn (pnpm is recommended)
First, create a .env file with three lines:
- a SERVER_HOST variable that points to a running server instance, such as
SERVER_HOST=http://127.0.0.1:8000
- an UPSTASH_REDIS_REST_URL that points to an https://upstash.io redis instance
- an UPSTASH_REDIS_REST_TOKEN that cointains an upstash token
Then run npm install
or pnpm install
npm run dev
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.