Skip to content
Host Little

Configuration guide

Set Next.js environment variables

Use separate production and development values. Load and edit each environment from the project when you need to change configuration.

01

Identify the values your app reads

Check the repository for values such as database URLs, authentication secrets, CMS tokens, payment keys, and public site URLs.

Use the value names that the app already reads. A renamed value does not configure the application unless its code also changes.

02

Add production values

  1. 1Open the project Environment page.
  2. 2Choose Production.
  3. 3Load the environment when you need to review or edit it.
  4. 4Add or update each value, then save the changes.
  5. 5Redeploy the production app when the change requires a new build or process.
03

Use different development values

A project development environment has its own set of environment variables. Use development-only credentials and URLs there when the provider supports them.

Do not put a production secret in development just to make a test pass. Fix the missing development configuration instead.

04

Connect services that Host Little does not provide

Use environment variables to connect a database, CMS, cache, storage provider, authentication provider, or email provider that you control.

Host Little runs the Next.js app. The external provider keeps its own service limits, access controls, backups, and billing.

05

Check the app after a change

  1. 1Redeploy when the app needs a new process or build.
  2. 2Open the project URL and test the route that uses the changed value.
  3. 3Use redacted logs and the variable names in the portal to diagnose a failed deployment. Do not paste secrets into a support request.

Put the guide into practice

Deploy the app from GitHub.

Create a project, choose the production branch, and use the project URL to check the first release before you move a custom domain.

  • Month-to-month billing
  • Commercial use from $10
  • 30-day money-back guarantee
See pricing

No projects yet

Connect a GitHub repository. Choose the production branch. Each push starts a deployment.

Launch · $10/moGitHub deploy