Deploy a Next.js app
With Drone (recommended)
Section titled “With Drone (recommended)”- Push your Next.js app to GitHub.
- In the console, start a new app, pick the repository and click Deploy with Drone.
- Add your environment variables and click Deploy.
Or, from the project folder: hivepod deploy.
With the Next.js preset
Section titled “With the Next.js preset”Pick Next.js under Choose Framework. DockHive installs your dependencies, runs next build and serves the app with next start (or the standalone server if you set output: 'standalone' in next.config.js).
Make sure package.json has the usual scripts:
{ "scripts": { "dev": "next dev", "build": "next build", "start": "next start" }}next start listens on the PORT variable DockHive sets, so no extra setup is needed.
- Environment variables: your app’s variables are available both during
next buildand at runtime.NEXT_PUBLIC_*values are inlined into the browser bundle at build time, so they’re public and change only when you redeploy. See Environment variables. - Monorepos: set Root Directory to the Next.js app’s folder, for example
apps/web.