{"id":15441126,"url":"https://github.com/zdenham/next-static-aws-example","last_synced_at":"2026-02-27T13:09:56.063Z","repository":{"id":243166160,"uuid":"807418711","full_name":"zdenham/next-static-aws-example","owner":"zdenham","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T04:51:59.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T00:18:30.679Z","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/zdenham.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-29T04:24:57.000Z","updated_at":"2024-09-28T12:14:02.000Z","dependencies_parsed_at":"2024-06-07T04:43:32.304Z","dependency_job_id":"0d9a98a1-9405-4960-806f-1b3e350f1ef8","html_url":"https://github.com/zdenham/next-static-aws-example","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"fe5c12870cb056af9e296fd2ae040d993cd46a40"},"previous_names":["zdenham/next-static-aws-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zdenham/next-static-aws-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdenham%2Fnext-static-aws-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdenham%2Fnext-static-aws-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdenham%2Fnext-static-aws-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdenham%2Fnext-static-aws-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdenham","download_url":"https://codeload.github.com/zdenham/next-static-aws-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdenham%2Fnext-static-aws-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29896315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-01T19:16:41.656Z","updated_at":"2026-02-27T13:09:56.018Z","avatar_url":"https://github.com/zdenham.png","language":"TypeScript","readme":"This is a static [next.js](https://nextjs.org/) site built using [next-static-utils](https://github.com/zdenham/next-static-utils).\n\nSee the live demo [here](https://defn0rdp54dhd.cloudfront.net)!\n\nIt demonstrates hosting a static site **with** dynamic routes and the app router.\n\n## Deployment Instructions for AWS S3 + Cloudfront\n\n1. clone repo\n2. `pnpm install`\n3. Generate fallback routes: `pnpm next-static-utils generate cloudfront`\n4. Build the application: `pnpm build`\n5. Set up your local aws credentials\n6. Create an S3 bucket `your-bucket`\n7. Upload the static site `cd out \u0026\u0026 aws s3 sync . s3://your-bucket`\n8. Ensure the bucket is public and has public read policy, instructions [here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html#:~:text=To%20make%20the%20objects%20in,read%20access%20to%20your%20bucket)\n9. Create a cloudfront distribution and connect it to the s3 bucket as the origin\n10. Ensure your cloudfront distribution has a root object (index.html).\n11. Create a cloudfront function and paste the generated `cloudfrontFunc.js` from the repo root\n12. Associate the cloudfront function with your distribution's origin behavior (under viewer request)\n\n**TODO:** We will likely make a script to automate the above, via terraform or the AWS SDK 👀\n\nIf you run into problems, open an issue!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdenham%2Fnext-static-aws-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdenham%2Fnext-static-aws-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdenham%2Fnext-static-aws-example/lists"}