next build and next start from your package.json, so no Dockerfile is needed.
This guide explains how to deploy a Next.js app in two ways:
If you have your own Next.js repo, follow the steps with it. If not, scaffold a fresh app and push it to a GitHub repo to follow along:
Deploy using the Canvas
Create a project from your repo
next build and next start from your package.json. Set the branch you want deployed, and a root directory if the app lives in a subdirectory. See Import from a GitHub repository for the full set of import options.Click Create project. Suga opens the canvas with a service already connected to your repo.Expose the app on HTTPS
3000 (Next.js’s default). Then, in the Public Network section, click Add Endpoint → HTTPS Domain and choose port 3000. Suga reserves a hostname immediately and shows the URL in the properties panel.Apply to deploy
next build, and starts the app. A fresh Next.js app takes 60-90 seconds end to end.

Deploy using an Agent
To deploy with a coding agent such as Claude Code, Codex, or OpenCode, follow these steps:Connect the Suga MCP
Ask your agent to deploy
Apply to deploy
next build, and starts the app. Your app loads at the public URL 60-90 seconds later.FAQ
Do I need a Dockerfile to deploy Next.js on Suga?
Do I need a Dockerfile to deploy Next.js on Suga?
package.json and runs the right build and start commands. If you already have a Dockerfile, you can tell the agent to use it instead; otherwise Suga’s default handles the standard flow.Which Next.js versions does Suga support?
Which Next.js versions does Suga support?
package.json, both the pages router and the app router. Node.js version comes from engines in package.json or a .nvmrc file if you have one.How do I set NEXT_PUBLIC_* variables so they end up in the client bundle?
How do I set NEXT_PUBLIC_* variables so they end up in the client bundle?
NEXT_PUBLIC_* values into the client bundle. Runtime env vars are only visible on the server after the build finishes.Do API routes, Route Handlers, and Server Actions work?
Do API routes, Route Handlers, and Server Actions work?
Does Next.js image optimization work?
Does Next.js image optimization work?
sharp-based loader. No extra configuration required. For a CDN-backed loader, configure it in next.config.js as usual.What about ISR and the Next.js data cache?
What about ISR and the Next.js data cache?
Can I deploy Next.js from a subdirectory in a monorepo?
Can I deploy Next.js from a subdirectory in a monorepo?
RAILPACK_BUILD_CMD and RAILPACK_START_CMD as build args to target the specific app.Can I use a custom domain?
Can I use a custom domain?
What does deploying a Next.js app cost on Suga?
What does deploying a Next.js app cost on Suga?