Skip to content
Discussion options

You must be logged in to vote

Workaround Overview

Use Vercel Primitives in combination with prebuilt deployment.

This means we will be building the backend server application outside of Vercel (e.g. on your local machine or using GitHub Actions/another CI tool), rather than linking a git repository directly to the Vercel project.

A potential benefit is that only the transpiled code is sent to Vercel instead of the full source code.

I've added an example of the vercel-server-deploy branch - most of the logic is encapsulated in the ./deploy-vercel-server.sh shell script.

Other changes are:

  • for environment variables, PUBLIC_SERVER_URL will fallback to VERCEL_URL
  • for tsdown, use the entry point src/index.ts (the exported…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nktnet1
Comment options

@nktnet1
Comment options

Answer selected by nktnet1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on September 07, 2025 02:56.