Configure deployment
Review the detected application settings and add the environment variables required to build and run your repository.
Review the detected settings
After you connect a repository, select Deploy to open Configure deployment. Spore Infrastructure detects the repository, its default branch, and an application preset to provide a starting configuration.
Review the preset, Node.js version, root directory, build command, install command, start command, and output directory. Change a setting only when it does not match the application in the selected repository.

Add environment variables
Open Environment variables and add only the values required by this deployment. Values saved here are encrypted production secrets, so they are available to the deployed application without being committed to Git.
Use Add variable to enter an individual key and value, or select Import .env when your project already has a local environment file. Review the imported names before deploying and do not upload an .env file that contains values you do not intend to use in production.


Prepare your .env file
Use placeholders or locally stored values when preparing an .env file. Never share real passwords, tokens, private keys, or client secrets in documentation, pull requests, screenshots, or committed source files.
The exact keys depend on your application. This example shows the format for a typical Next.js app with a database and Google sign-in; replace or remove entries that your application does not use.
DATABASE_URL="postgresql://USER:PASSWORD@HOST:5432/DATABASE"
BETTER_AUTH_SECRET="replace-with-a-long-random-secret"
BETTER_AUTH_URL="https://your-domain.example"
NEXT_PUBLIC_APP_URL="https://your-domain.example"
GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"Deploy when ready
Confirm that the repository, branch, build settings, and environment-variable names are correct. Then select Deploy to begin the first build. The next guide explains how to monitor the deployment and open the live application.
Last updated October 11, 2026