This demo shows how to use Farspeak (farspeak/farspeak-js) with Next.js server components.
This is a Next.js project bootstrapped with create-next-app
.
Create an app in the dashboard.
Prepare env vars:
const { FARSPEAK_APP, FARSPEAK_ENV, FARSPEAK_BACKEND_TOKEN } = process.env;
Or in shell:
export FARSPEAK_APP=
export FARSPEAK_ENV=
export FARSPEAK_BACKEND_TOKEN=
Install dependencies:
npm install
Next, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.