Skip to content
/ deploy-fly Public template

Next.js template to deploy to Fly with a Docker container.

Notifications You must be signed in to change notification settings

nextjs/deploy-fly

Repository files navigation

Deploy Next.js to Fly

This is a Next.js template which can be deployed to Fly.io.

Deploying to Fly

Fly can run your application from a Docker image without a Docker container on their infrastructure.

Everything you need to get started can be found at https://fly.io/nextjs.

# Install flyctl on macOS
brew install flyctl

# Run from Next.js project root
fly launch

# Scale CPU, memory, instances, and regions
fly scale

For more information, see our deployment documentation.

Learn More

To learn more about Fly.io, take a look at the following resources:

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!