Deploying a Next.js app
Planned: push to Git and have Vintony build and run your Next.js app. Not available yet.
4 min read
Managed Cloud is planned to be opinionated about Next.js: you push code and we build and run it. It is not available yet: we are not taking orders and there is no Managed Cloud app creation in the dashboard. This page describes the planned workflow.
Planned: you would create an app from the dashboard by giving it a Git repository URL, the branch to track, and any build-time environment variables. Which Git providers are supported, and how repositories are connected, are not yet published.
Planned: on a push to the tracked branch we would fetch, build the app, and replace the running version. Build times, how many previous builds are kept, and how rollback works are not yet published.
A gotcha that applies to any Next.js host: environment variables exposed to the browser must be prefixed `NEXT_PUBLIC_`, and anything with that prefix is visible in the client JavaScript. Never put secrets in `NEXT_PUBLIC_` variables.