What should you decide before a Next.js build starts?
Decide how the pages will be rendered, where the site will be hosted, which headless CMS your team will edit in, how preview and staging will work, where the secrets will live and whose accounts own the repository and hosting. Each of these changes the code that gets written, so changing one halfway through costs real time, and together they decide what you are left holding after launch.
Next.js gives you more choices than a hosted website builder, which is the point of choosing it. It also means nobody has made these decisions for you. These are the six I settle with a client before I write any code.
Does the site need a server, or can it be a static export?
Next.js can be deployed as a Node.js server, a Docker container, a static export, or adapted to run on a hosting platform. Node.js and Docker deployments support all Next.js features, while a static export has limited support (Next.js: deploying). A static export can be hosted on any web server that serves HTML, CSS and JavaScript.
The trade-off is in the feature list. A static export does not support cookies, redirects, rewrites or headers set in the Next.js config, Incremental Static Regeneration, image optimization with the default loader, Draft Mode or Server Actions (Next.js: static exports). Incremental Static Regeneration is what lets a site update static content without rebuilding the entire site (Next.js: ISR).
In practice, a marketing site that changes only when a developer deploys can be a static export. A site where CMS edits should appear without a full rebuild, forms call APIs on the server, users log in or a chatbot talks to an AI model needs a server, and that is closer to a web app build than a set of pages.
Where will the site be hosted?
There are three realistic routes, and each one changes the setup work and the monthly bill.
| Route | Good fit | What to plan for |
|---|---|---|
| Vercel | Teams that want preview links for every change and little server work | A plan that allows commercial use, and a seat for everyone who deploys |
| Your own Node.js server or Docker host | Teams with existing hosting, or data that has to stay on their infrastructure | A reverse proxy, updates, monitoring, and a shared cache if you run more than one instance |
| Static files on any web server | Content sites without server features | Redirects and headers configured on the web server instead of in Next.js |
Vercel is one of the verified Next.js adapters (Next.js: deploying), but its free Hobby plan restricts users to non-commercial, personal use only, so a business site belongs on a paid plan. On Pro, developer seats cost $20 per user per month and Viewer seats are free (Vercel: Hobby plan).
Self-hosting has its own checklist. Next.js recommends a reverse proxy such as nginx in front of the Next.js server rather than exposing the server to the internet, and its cache is stored on each server instance's local disk by default, so several instances need a shared cache (Next.js: self-hosting). That is ongoing server and hosting management, and it belongs in the quote or in a support plan.
Which headless CMS, and who will edit in it?
Choose the CMS for the people who will use it every week, not for the developer. Before comparing products, write down who edits, what they edit (blog posts, landing pages, product data, translations), whether edits need approval, and how many editor seats you will pay for. The content model, meaning the types of content and their fields, gets built into the code, so changing it after launch is development work.
Preview is the feature people miss most. Next.js Draft Mode lets editors see how draft content will render on the site, while other visitors keep seeing the published version, and the CMS opens the preview with a secret token that only the Next.js app and the CMS know (Next.js: Draft Mode). Draft Mode needs a server, so a static export rules this preview out. If your editors expect to see a page before it goes live, put preview in the scope.
How will preview and staging work?
On Vercel, the default environments are Local, Preview and Production. A preview deployment is created when someone pushes to a branch that is not the production branch or opens a pull request, and it gets a branch URL and a commit URL (Vercel: environments). For most marketing sites that already covers review: every change has its own link before it goes live.
A separate staging environment matters when the site talks to other systems. Vercel offers custom environments such as staging on Pro and Enterprise, and a preview branch used as staging on all plans (Vercel: environments). The value of staging is separate credentials: a staging site connected to a payment provider's test mode and a test CRM can be clicked through freely, while one wired to production services cannot.
Where will environment variables and secrets live?
API keys, CMS tokens and database passwords belong in environment variables, never in the code. Next.js warns that you almost never want to commit .env files to your repository, keeps variables without the NEXT_PUBLIC_ prefix on the server, and inlines NEXT_PUBLIC_ variables into the JavaScript sent to the browser at build time (Next.js: environment variables). Anything with that prefix is public, and it stays frozen at the value it had when the site was built.
On Vercel, each variable can be set per environment, Secret values are write-only after saving, and changes only apply to new deployments (Vercel: environment variables). This matters most for an AI chatbot: the AI provider's key must only ever be read on the server, or anyone can find it in the page source and run up your bill.
Who should own the repository and the hosting accounts?
You should, from the first commit. Create the Git repository under your organization and the hosting team or server account on your billing, then invite the developer with their own login. Moving things later takes effort: Vercel can transfer a project between teams with zero downtime, but you must be an owner of the team it moves from, and integrations have to be added again after the transfer (Vercel: transferring a project). Setting up the accounts in your name at the start is quicker than any transfer at the end.
Put these six decisions in the brief or settle them in the first week. If you are deciding how to structure the contract while some of them are still open, my article on fixed price or hourly on Upwork explains how each type suits a build like this.
