{"id":16974467,"url":"https://github.com/disjukr/next-rewrites-test","last_synced_at":"2026-05-19T10:37:21.130Z","repository":{"id":234660832,"uuid":"789326225","full_name":"disjukr/next-rewrites-test","owner":"disjukr","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-20T08:44:11.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T20:46:58.396Z","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/disjukr.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}},"created_at":"2024-04-20T08:42:48.000Z","updated_at":"2024-04-20T08:44:15.000Z","dependencies_parsed_at":"2024-04-20T10:15:49.990Z","dependency_job_id":null,"html_url":"https://github.com/disjukr/next-rewrites-test","commit_stats":null,"previous_names":["disjukr/next-rewrites-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/disjukr/next-rewrites-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disjukr%2Fnext-rewrites-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disjukr%2Fnext-rewrites-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disjukr%2Fnext-rewrites-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disjukr%2Fnext-rewrites-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/disjukr","download_url":"https://codeload.github.com/disjukr/next-rewrites-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/disjukr%2Fnext-rewrites-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048633,"owners_count":23868743,"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":"2024-10-14T01:06:26.901Z","updated_at":"2026-05-19T10:37:21.084Z","avatar_url":"https://github.com/disjukr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next Rewrites Test\n\nThis repository is intended to verify that the host header is properly passed when reverse proxying another web server in a Next.js project.\n\nThis repository consists of three projects:\n\n- `edge-middleware` - This project uses the [edge middleware feature](https://nextjs.org/docs/app/building-your-application/routing/middleware) to return the content from `localhost:4000/foo` when accessed via `localhost:3000/foo`.\n- `nextjs-rewrites` - This project accomplishes the same task as the above using the [rewrites feature of the Next.js config.](https://nextjs.org/docs/pages/api-reference/next-config-js/rewrites)\n- `rewrite-target` - This project provides an API at `localhost:4000/foo` that returns whatever host header it receives.\n\n## How to run\n\n```sh\npnpm install\npnpm dev:edge-middleware # or pnpm dev:nextjs-rewrites\nopen http://localhost:3000/foo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisjukr%2Fnext-rewrites-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdisjukr%2Fnext-rewrites-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisjukr%2Fnext-rewrites-test/lists"}