Next.js Discord

Discord Forum

vercel build

Unanswered
Hellno009 posted this in #help-forum
Open in Discord
Holia! Am I blind or what I miss. Vercel keep build all my commits to develop branch. I want to build only commits to main branch. What I miss?

And I set NEXT_PUBLIC_APP_URL environment variables, rebuild, cleared cache and vercel keep use their X random "domain" when I check network calls. What the heck?

4 Replies

And what aboud NEXT_PUBLIC_APP_URL and domain? Im using my own domain but API calls keep going to random vercel domain.
1. On HONO client I use .env var: "NEXT_PUBLIC_APP_URL"
export const client = hc<AppType>(process.env.NEXT_PUBLIC_APP_URL!);

2. I set my domain X to vercel

3. I updated NEXT_PUBLIC_APP_URL to main domain

4. On vercel I got lot of 404 requests and its keep trying to request to vercel random domain like "https://finance-omega-blalbla.vercel.app/
I don’t use hono, I don’t know