Moving from Vercel or Netlify to BrewInTH: what changes and how

Move a site from Vercel or Netlify to BrewInTH: build from Git, split build-time and runtime values, move redirects, functions and cron, then switch DNS.
Plenty of sites built with AI start life on Vercel or Netlify: connect GitHub and the site is live in minutes. Once the site has real users, many people want the database, email on their own domain and the site itself in one place, or want to pay in baht. What holds them back is not knowing what will break on the way.
This article goes through what you use on Vercel or Netlify one item at a time and shows where it lives on BrewInTH: what carries over as it is, what needs a change first, and then the move step by step, all the way to switching the domain, with a prompt you can hand to your AI.
In short
🔁 Your code on GitHub or GitLab stays where it is. BrewInTH builds from Git, but it does not release on push: you press the button or ask your AI.
🔑 Environment variables live in two places: secrets go into App settings, values the build needs (NEXT_PUBLIC_,VITE_) go into.env.production.
📄vercel.json,netlify.tomland_redirectsare not read. Redirects, functions and cron jobs need a new home.
⏰ Vercel and Netlify cron jobs run on UTC; BrewInTH schedules run on Thai time, so add 7 hours.
🌐 Test on the BrewInTH address first, then point DNS at the A and TXT records the Domains tab shows.
Where each Vercel / Netlify feature lives on BrewInTH
The idea is the same: you hand over code, the platform builds it and you get a site with HTTPS. The differences are in the details around it, and that is where sites tend to break after a move.

Two things people tend to miss:
- A push does not update the site. BrewInTH does not listen to GitHub pushes. After a change, press Clone, build & publish on the Releases tab, or tell an AI that holds the project's token to release it.
- There are no preview deployments per branch. A project follows one branch. For a staging site, create a second project that follows your staging branch; that needs a package with at least two projects, such as Starter at ฿99 a month or Seed at ฿749 a year.
What stays familiar: a new version only replaces the old one once it is ready. A version that fails leaves the current site serving, and you can go back to an earlier version from the Release history.
What kind of site do you have?
Each kind goes onto BrewInTH a little differently, so start by finding yours.
A front end only (Vite, React, Vue, Angular, static Astro)
A site whose build writes files into dist/ or build/ and has no server of its own. Send the source code, not the built files, and choose Node.js as the technology. The platform builds it, serves the output as files, and answers index.html for addresses that have no file of their own, such as /orders/15, so your client-side router still works when someone refreshes the page.
If you upload the built files one by one instead, the project becomes a static site. A static site does not fall back to index.html, so deep links answer 404 on refresh.
Next.js and frameworks with a server
Next.js runs as a Node app with next start. What belongs to Next.js itself, such as API routes, middleware and the redirects in next.config.js, keeps working, because the app runs on its own rather than on Vercel's infrastructure. Check three things:
package.jsonneeds"start": "next start". The platform setsPORT, andnext startreads it.- A page that reads the database during the build will fail to build: BrewInTH builds on a separate machine that does not receive your App settings. Make that page fetch its data on each request instead, for example with
export const dynamic = "force-dynamic". - SvelteKit, Nuxt, Remix and server-rendered Astro set up with a Vercel or Netlify adapter or preset need the Node adapter instead, plus a
startscript inpackage.json.
Plain HTML with no build step
Zip it with index.html inside and send it on the Upload & go live page. One thing to watch: if your old host opened about.html at /about, that address answers 404 on BrewInTH, because the platform does not add .html for you. Either link to /about.html, or move the file to about/index.html, which opens at /about/.
Environment variables live in two places
On Vercel and Netlify you enter every value on one page and it is available both while building and while the site runs. On BrewInTH those two moments are separate, because the build runs on another machine that does not receive App settings.

- Secrets such as
DATABASE_URL, API keys orAUTH_SECRETgo into the App settings tab, one at a time: type the Name and the Value, then Save. The app reads them at run time as before. A value added after a release takes effect at the next release. - Build-time values are the ones that start with
NEXT_PUBLIC_,VITE_orPUBLIC_. The build bakes them into your JavaScript, so they must be in a.env.productionfile that ships with the code (with Git, commit that file too). Everyone who opens the site can read them, so only public values belong there, such as an API address, never a password or a secret key.
Vercel and Netlify config files BrewInTH does not read
BrewInTH does not read vercel.json, netlify.toml, _redirects or _headers. Everything in those files needs a new home.
- Redirects, rewrites and headers of a Next.js app move into
redirects(),rewrites()andheaders()innext.config.js. A front-end-only site needs no "send everything toindex.html" rule, because the platform already does that; any other redirect has to happen in the page code, or the site has to become an app with a server. - Serverless functions in Vercel's
api/folder or innetlify/functions/will not run. Merge them into one Node app that answers/api/...and serves the pages too; merging a frontend and a backend into one app shows how. Next.js API routes need no change. - Netlify Forms have nobody to receive them on BrewInTH. Something on the server has to take the submission, such as an API that saves it to the database, or a PHP contact form that sends mail with mail().
- Cron jobs become schedules, as the next section shows.
Moving cron jobs to schedules
Vercel Cron and Netlify scheduled functions run on UTC. The Schedules tab of BrewInTH has an At a time of day (cron, Thai time) option, so add 7 hours: 0 2 * * *, which ran at 02:00 UTC, is 09:00 in Thailand. To keep the same moment, enter 0 9 * * *.
A schedule runs a command in a temporary copy of your project. If your old cron job called a route of the app, such as /api/cron/daily, put a Command that calls the same route through APP_INTERNAL_URL, the app's internal address that the platform provides:
node -e "fetch(process.env.APP_INTERNAL_URL + '/api/cron/daily', { headers: { authorization: 'Bearer ' + process.env.CRON_SECRET } }).then(r => process.exit(r.ok ? 0 : 1))"
If the route never checked CRON_SECRET, drop the headers part. A run that does not end with exit code 0 counts as a failure, and you get an email when runs keep failing in a row; cron jobs on Thai time has the details.
The move, step by step

Step 1: Prepare the repository
package.jsonmust sit at the root of the repository. If the app lives in a subfolder of a monorepo, the platform will not find it.- BrewInTH builds Node apps with npm. If you used pnpm or yarn, create a
package-lock.jsonwithnpm installand commit it; without a lock file, package versions are resolved afresh at every build. - Node apps on BrewInTH run on Node.js 24. If your project pins an older version, try a build on your computer with Node.js 24 first.
- Put the build-time values into
.env.production.
Step 2: Create a project and choose Node.js
When you create the project, choose Node.js under Website/app technology, not Let the platform decide (recommended): building from Git needs the technology up front. If the project already exists, change it in the Project technology panel on the App settings tab before the first release.
Step 3: Fill in App settings
Copy the secrets from the Environment Variables page of Vercel or Netlify and add them one by one before the first release. If you add a BrewInTH PostgreSQL database, the platform writes its connection values, such as DATABASE_URL, for you. A database at an outside provider keeps working too, since apps on BrewInTH can connect out. To bring the data over instead, use a .sql file as in importing a large .sql file with AI.
Step 4: Connect Git and release
On the Releases tab, choose Git repository, enter the Repository link (https) and the branch under Branch / tag / commit. For a private repository, add a read-only token under Token for a private repository. Press Save repository, then Check access (uses the saved token), then Clone, build & publish.
Prefer not to use Git? Download the repository as a ZIP from GitHub and send it on the Upload & go live page. The page finds the real project folder inside the ZIP, and a .env file at its root is turned into App settings for you, while .env.production stays with the code.
Step 5: Test on the BrewInTH address
Before touching DNS, try everything on the BrewInTH address: open a deep page and refresh, sign in, submit a form, call the API. If people sign in with Google or GitHub, add the new address to the redirect URLs registered with that provider and update the site address value, such as NEXTAUTH_URL. When something fails, read the cause on the Logs tab or in the build log under Release history, and give it to your AI.
Step 6: Switch the domain
Connecting your own domain needs a package from Starter up; the Free package uses a BrewInTH address.
- Lower the TTL of your current DNS records a day ahead, so visitors reach the new site sooner after the change.
- On the Domains tab, add your domain and set the records that page shows: a TXT record named
_brewinth.followed by the domain, and an A record pointing at the BrewInTH IP. Do this for both the bare name and thewwwname. - Remove the old records that point at Vercel or Netlify, such as the
wwwCNAME. If your domain's DNS is hosted at Vercel or Netlify, make the change there. - If your email for the domain lives elsewhere, leave the MX records alone.
- Keep the old Vercel or Netlify project for a while, until you are sure everything works.
The full domain walkthrough is in using your own domain with BrewInTH.
Let your AI prepare the code
Send this to Claude Code, Cursor or any AI that has the project folder open, then carry on from step 2.
I am moving this site from Vercel (or Netlify) to BrewInTH. Prepare the code like this:
1. Decide whether the site needs a server
- Front end only (Vite, React, Vue, static Astro): add no server
- Next.js: package.json needs "build": "next build" and "start": "next start"
- SvelteKit, Nuxt, Remix or Astro with a Vercel/Netlify adapter:
switch to the Node adapter and add "start" to package.json
2. If there are functions in api/ or netlify/functions/, merge them into one Express app
that answers /api/... and serves the built pages, listening on process.env.PORT
3. Move redirects, rewrites and headers from vercel.json, netlify.toml, _redirects, _headers
into the code, and tell me which rules cannot be moved
4. Make every page that reads the database during the build fetch on each request instead
5. Split the environment variables into two groups
- public build-time values (NEXT_PUBLIC_, VITE_, PUBLIC_) go into .env.production
- secrets: list their names for me; I will enter them in BrewInTH's App settings myself.
Never write them into a file
6. If the project uses pnpm or yarn, create a package-lock.json with npm
7. If vercel.json has cron jobs or there are scheduled functions, list each route and its time in Thai time
Frequently asked questions
After the move, does a push update the site?
No. Press Clone, build & publish each time, or have an AI with the project's token release it. Every version records the commit it was built from.
Can I start for free?
Yes. The Free package gives you one project on a BrewInTH address. For your own domain you need a package from Starter (฿99 a month) or Seed (฿749 a year) up.
What about a Next.js app with output: 'export'?
next start does not work with output: 'export'. The simple way is to remove output: 'export' and run it as a Node app. The other way is to build on your computer and upload the files in out/ as a static site, with trailingSlash: true set before the build so each page becomes page-name/index.html and opens without .html in the address.
My site is built with Hugo, Jekyll, Eleventy or Gatsby
The platform builds front ends made with Vite, Create React App, Vue CLI, Angular, Parcel or Astro. For any other tool, build on your computer, zip the output folder and send it on the Upload & go live page as a static site.
Summary
Moving from Vercel or Netlify to BrewInTH rarely means rewriting the site. The work is moving the redirects, functions and cron jobs that lived in their platform into your code, keeping build-time values in .env.production and secrets in App settings, and testing on the BrewInTH address before you switch the domain. Do that, and your visitors will not notice the move.
Start your first project free →
