{"id":25470375,"url":"https://github.com/msisdev/cf-opennext-env-aug-example","last_synced_at":"2025-06-20T10:09:07.360Z","repository":{"id":271051285,"uuid":"910841957","full_name":"msisdev/cf-opennext-env-aug-example","owner":"msisdev","description":"How to augment CloudflareEnv","archived":false,"fork":false,"pushed_at":"2025-01-05T04:17:30.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T10:08:59.441Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msisdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-01T15:47:32.000Z","updated_at":"2025-01-06T00:07:19.000Z","dependencies_parsed_at":"2025-01-05T10:16:48.137Z","dependency_job_id":null,"html_url":"https://github.com/msisdev/cf-opennext-env-aug-example","commit_stats":null,"previous_names":["msisdev/cf-opennext-env-aug-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msisdev/cf-opennext-env-aug-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-opennext-env-aug-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-opennext-env-aug-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-opennext-env-aug-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-opennext-env-aug-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msisdev","download_url":"https://codeload.github.com/msisdev/cf-opennext-env-aug-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-opennext-env-aug-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260924533,"owners_count":23083524,"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":[],"created_at":"2025-02-18T08:33:42.644Z","updated_at":"2025-06-20T10:09:02.316Z","avatar_url":"https://github.com/msisdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-opennext-env-aug-example\n\n\u003e  At `2025.01.02`  \n\u003e  Using `\"@opennextjs/cloudflare\": \"^0.3.3\"`\n\n## Description\nHow to augment `CloudflareEnv` in `\"@opennextjs/cloudflare\"` package:\n\n1. Change `cf-typegen` script to use different interface name.\n```json\n{\n  \"scripts\": {\n    \"cf-typegen\": \"wrangler types --env-interface CloudflareBindings env.d.ts\"\n  }\n}\n```\n\n2. Create typescript file:\n```ts\n// augment-env.d.ts\nimport \"@opennextjs/cloudflare\"\n\ndeclare global {\n  interface CloudflareEnv extends CloudflareBindings {}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsisdev%2Fcf-opennext-env-aug-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsisdev%2Fcf-opennext-env-aug-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsisdev%2Fcf-opennext-env-aug-example/lists"}