Deploy it
- 1
Create a web service from the repository
Pick the repository and branch. Leave the build and start commands blank for Nixpacks to detect them, or set them yourself, for example
npm run buildandnpm start. - 2
Add environment variables
Server-side values are injected when the container starts.
NEXT_PUBLIC_values are inlined into the browser bundle at build time, so mark them with the build toggle in the Environment tab. - 3
Connect a database
Create a managed Postgres database and link it to the service:
DATABASE_URLand thePG*variables are set for you. Run migrations as the service's release command, for examplenpx prisma migrate deploy, so a failed migration stops the rollout. - 4
Add your domain
Add the domain on the service, point its DNS at Gheima, and the HTTPS certificate is issued and renewed for you.