{"id":20697966,"url":"https://github.com/fly-apps/fly-nextjs-template","last_synced_at":"2025-09-16T04:42:33.880Z","repository":{"id":242608623,"uuid":"808748586","full_name":"fly-apps/fly-nextjs-template","owner":"fly-apps","description":"A Next.js template for deploying on Fly.io with continious deployment (auto-deploys) and review apps.","archived":false,"fork":false,"pushed_at":"2024-06-03T23:47:24.000Z","size":166,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T00:14:13.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fly-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-31T18:22:56.000Z","updated_at":"2024-12-21T00:56:09.000Z","dependencies_parsed_at":"2024-06-04T02:10:19.015Z","dependency_job_id":null,"html_url":"https://github.com/fly-apps/fly-nextjs-template","commit_stats":null,"previous_names":["fly-apps/fly-nextjs-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/fly-apps/fly-nextjs-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-nextjs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-nextjs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-nextjs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-nextjs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/fly-nextjs-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-nextjs-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275364402,"owners_count":25451513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:21:09.163Z","updated_at":"2025-09-16T04:42:33.826Z","avatar_url":"https://github.com/fly-apps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Next.js + Fly.io logos](public/nextjs-flyio2.png)\n\n# Next.js Template for Fly.io\nThis is a [Next.js](https://nextjs.org/) template that's configured for easy deployment on Fly.io. It's bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app), and includes the following:\n\n- Config for `standalone` builds (this keeps your Docker image as small as possible)\n- Github Action workflow for auto-deploys when `main` branch is updated\n- Github Action workflow for spinning up [review apps](https://fly.io/docs/blueprints/review-apps-guide/) each time a new PR is made\n\nThe template also includes the default options offered by [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app):\n\n- TypeScript\n- Tailwind\n- App Router\n- ESLint\n\n\n## Getting Started Locally\n\nTo use this template, run the following command:\n\n```bash\nnpx create-next-app@latest --example https://github.com/fly-apps/fly-nextjs-template \u003cyour-app-name\u003e\n```\n\nTo run the app locally, start the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Auto-deploy and review apps\n\nTo take advantage of the Github Actions included in this template, generate a Fly.io auth token using [flyctl](https://fly.io/docs/hands-on/install-flyctl/), and then set it as a repository secret on your repo. This is most easily done through the [GitHub CLI](https://github.com/cli/cli?tab=readme-ov-file#installation), but it's also possible to set secrets from the [web UI](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions?tool=webui#creating-secrets-for-a-repository).\n\n\n```bash\n# set the repository secret in GitHub\nfly auth token | gh secret set FLY_API_TOKEN\n```\n\n## Deploy to Fly.io\n\nFirst, launch your app to Fly.io by running the following command:\n\n```bash\nfly launch --name $YOUR_APP_NAME\n```\n\nReplace `$YOUR_APP_NAME` with whatever name you'd like. This command will generate a Dockerfile and a `fly.toml` for you. \n\nLastly, you can make your first deploy in one of two ways:\n\n1. Run `fly deploy`\n2. If you've added your `FLY_API_TOKEN` as a repository secret in Github, you can `git push origin main`, and the auto-deploy Github action will deploy it for you.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Ffly-nextjs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Ffly-nextjs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Ffly-nextjs-template/lists"}