{"id":16144518,"url":"https://github.com/officialrajdeepsingh/deploy-nextjs-app-router-github-pages","last_synced_at":"2025-04-06T20:15:51.941Z","repository":{"id":188257359,"uuid":"678337652","full_name":"officialrajdeepsingh/deploy-nextjs-app-router-github-pages","owner":"officialrajdeepsingh","description":"demo website","archived":false,"fork":false,"pushed_at":"2023-08-15T06:41:47.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T02:16:59.818Z","etag":null,"topics":["deploy-github-pages","nextjs-github-page","nextsjs"],"latest_commit_sha":null,"homepage":"https://officialrajdeepsingh.github.io/deploy-nextjs-app-router-github-pages/","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/officialrajdeepsingh.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":"2023-08-14T10:15:59.000Z","updated_at":"2023-08-15T12:12:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"31d5c1dc-0bd0-4cf8-b905-fafae4f9ed96","html_url":"https://github.com/officialrajdeepsingh/deploy-nextjs-app-router-github-pages","commit_stats":null,"previous_names":["officialrajdeepsingh/deploy-nextjs-app-router-github-pages"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/officialrajdeepsingh","download_url":"https://codeload.github.com/officialrajdeepsingh/deploy-nextjs-app-router-github-pages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543598,"owners_count":20955865,"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","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":["deploy-github-pages","nextjs-github-page","nextsjs"],"created_at":"2024-10-10T00:13:28.945Z","updated_at":"2025-04-06T20:15:51.912Z","avatar_url":"https://github.com/officialrajdeepsingh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# How to deploy the Next.js App router application on GitHub Pages using PNPM?\ndeploy the nextjs app router demo application using pnpm, [read full article](https://medium.com/frontendweb/how-to-deploy-the-next-js-app-router-application-on-github-pages-using-pnpm-54ac72424d80).\n\n## installation\n\n### Clone the project\n```bash\ngit clone https://github.com/officialrajdeepsingh/deploy-nextjs-app-router-github-pages.git\n```\n### Change the folder \n```bash\ncd deploy-nextjs-app-router-github-pages\n```\n\n### Install the node package\n```bash\nnpm install\n# or\npnpm install\n# or\nyarn install\n```\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can edit the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\n## Note\nRemove the following code when you start your local development server. Then remove the `output` and `images.unoptimized` config in `next.config.js`file, when you deploy your site on the GitHub page.\n\n```javascript\n// next.config.js\n\n/** @type {import('next').NextConfig} */\nconst nextConfig = {\n  output:  process.env.NODE_ENV !== \"production\" ? undefined: \"export\", \n  images: {\n    unoptimized: false,\n    remotePatterns: [\n      {\n        hostname: \"images.unsplash.com\",\n      },\n    ],\n  },\n}\n\nmodule.exports = nextConfig;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofficialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fdeploy-nextjs-app-router-github-pages/lists"}