TLDR; Here’s the Next.js template: GitHub - fly-apps/fly-nextjs-template: A Next.js template for deploying on Fly.io with continious deployment (auto-deploys) and review apps.
We now have a template you can use for spinning up a new create-next-app
that includes the following:
- Config for
standalone
builds (this keeps your Docker image as small as possible) - Github Action workflow for auto-deploys when
main
branch is updated - Github Action workflow for spinning up review apps each time a new PR is made
The template also includes the default options offered by create-next-app
:
- TypeScript
- Tailwind
- App Router
- ESLint
You can use this template by passing it to the --example
arg like so:
npx create-next-app@latest --example https://github.com/fly-apps/fly-nextjs-template <your-app-name>