Get EdgeURL running locally for development and testing
Before you begin, make sure you have the following installed:
npm install -g pnpmCopy the example environment file and fill in your values:
At minimum, you need to configure:
See the full Environment Variables Guide for all available options.
To test Stripe webhooks locally, use the Stripe CLI to forward events to your dev server:
The CLI will output a webhook signing secret (starts with whsec_). Add this as STRIPE_WEBHOOK_SECRET_DEV in your .env.local file.
The app will be available at http://localhost:3000
npm run buildBuild for productionnpm run lintRun ESLintnpm run testRun unit tests with Vitestnpm run test:e2eRun E2E tests with Playwrightnpm run env:checkValidate environment variables with zorath-envnpm run setup:stripeSet up Stripe price IDsRun npm run env:check to see which variables are missing or invalid. EdgeURL uses t3-oss/env-nextjs for strict validation with Zod schemas.
If you copied keys from the Vercel dashboard, they may contain corrupted newline characters. Re-copy the key from the Supabase dashboard directly.
Make sure the Stripe CLI is running and the webhook secret matches your .env.local file. Check that the forward URL matches your dev server port.