PIP Spores
Documentation
API referenceSoon
ChangelogSoon
WebinarSoon
DocumentationOverviewConnect your sourceConfigure deployment

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.

Configure deployment dialog showing detected application, runtime, root directory, and build settings.
Review the detected preset and build settings before starting the first deployment.

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.

Expanded Environment variables section with Add variable and Import .env controls.
Add a key manually or use Import .env to bring in deployment-specific configuration.
Configure deployment dialog with imported environment variable names and masked values.
Imported values remain masked in the deployment configuration. Verify the variable names before deploying.

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.

.env
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.