{"id":24808836,"url":"https://github.com/papooch/nestjs-11-fastify-middleware-on-root-path-repro","last_synced_at":"2026-06-28T19:31:25.447Z","repository":{"id":274433225,"uuid":"922883317","full_name":"Papooch/nestjs-11-fastify-middleware-on-root-path-repro","owner":"Papooch","description":"Reproduction of the related bug report","archived":false,"fork":false,"pushed_at":"2025-01-27T09:17:31.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:21:23.228Z","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/Papooch.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":"2025-01-27T09:03:30.000Z","updated_at":"2025-01-27T09:17:35.000Z","dependencies_parsed_at":"2025-01-27T10:23:16.652Z","dependency_job_id":"425fec58-041e-4648-a95e-dc421ce188d6","html_url":"https://github.com/Papooch/nestjs-11-fastify-middleware-on-root-path-repro","commit_stats":null,"previous_names":["papooch/nestjs-11-fastify-middleware-on-root-path-repro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Papooch/nestjs-11-fastify-middleware-on-root-path-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Papooch%2Fnestjs-11-fastify-middleware-on-root-path-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Papooch%2Fnestjs-11-fastify-middleware-on-root-path-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Papooch%2Fnestjs-11-fastify-middleware-on-root-path-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Papooch%2Fnestjs-11-fastify-middleware-on-root-path-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Papooch","download_url":"https://codeload.github.com/Papooch/nestjs-11-fastify-middleware-on-root-path-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Papooch%2Fnestjs-11-fastify-middleware-on-root-path-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34901959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":"2025-01-30T10:19:28.006Z","updated_at":"2026-06-28T19:31:25.423Z","avatar_url":"https://github.com/Papooch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproduction of an NestJS bug report:\n## Fastify middleware doesn't execute on root path with `setGlobalPrefix` when using new wildcard syntax\n\nhttps://github.com/nestjs/nest/issues/14520\n\n### Background:\n\nThis is an empty application generated via `npx @nest/cli new` with the following changes:\n\n* It uses a `FastifyAdapter`\n* It uses a global prefix `app.useGlobalPrefix('api')`\n* Two middlewares that log the current path are mounted:\n  * `RootAMiddleware` is mounted using the old syntax `(.*)`\n  * `RootBMiddleware` is mounted using the new syntax `{*path}`\n\n### Steps to reproduce:\n\n1) `pnpm install`\n2) `pnpm start`\n3) `curl http://localhost:300/api`\n  * observe that only _Root A_ middleware was executed:\n    ```\n    LOG [Root A] triggered on /api\n    ```\n3) `curl http://localhost:300/api/xxx`\n  * observe that both _Root A_ and _Root B_ middlewares were executed:\n    ```\n    LOG [Root A] triggered on /api/xxx\n    LOG [Root B] triggered on /api/xxx\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapooch%2Fnestjs-11-fastify-middleware-on-root-path-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapooch%2Fnestjs-11-fastify-middleware-on-root-path-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapooch%2Fnestjs-11-fastify-middleware-on-root-path-repro/lists"}