Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.09 KB

vercel.mdx

File metadata and controls

60 lines (38 loc) · 1.09 KB

Vercel Deployment

Local Development

Install Bun 1.3 or newer, then install dependencies:

bun install

Start the development server:

bun run dev

Environment Variables

Configure these variables locally and in Vercel:

GITHUB_TOKEN=
GITHUB_OWNER=
GITHUB_REPOSITORY=

The GitHub token should have permission to create issues in the target repository.

Building

Run checks before deployment:

bun run check
bun run lint
bun run build

Deployment

  1. Create or select a Vercel project.
  2. Connect the repository.
  3. Add the required environment variables.
  4. Deploy.

SvelteKit uses @sveltejs/adapter-vercel, so API routes become Vercel serverless functions.

Troubleshooting

Missing environment variable

If POST /api/issues returns an internal error, verify that all required variables exist in the active Vercel environment.

GitHub issue creation fails

Check token permissions, repository owner, and repository name.

Local build fails

Run bun install, then bun run check. Type errors should be fixed before deployment.