rsnext/packages
Genet Schneider e40785e1e2
Avoid TypeError when comparing path param (#29821)
## Bug

Fixes a TypeError when accessing url with no path params `_next/data/<BUILD_ID>`
```
TypeError: Cannot read property 'endsWith' of undefined
  at Object.fn (/app/node_modules/next/server/next-server.ts:644:52)
  at Router.execute (/app/node_modules/next/server/router.ts:346:40)
  at Server.run (/app/node_modules/next/server/next-server.ts:1229:41)
  at Server.handleRequest (/app/node_modules/next/server/next-server.ts:489:25)
  at /app/node_modules/next/server/next.ts:47:14
```

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
- [ ] 

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes
2021-10-13 04:56:38 +00:00
..
create-next-app v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
eslint-config-next v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
eslint-plugin-next v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next Avoid TypeError when comparing path param (#29821) 2021-10-13 04:56:38 +00:00
next-bundle-analyzer v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-codemod v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-env v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-mdx v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-plugin-storybook v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-polyfill-module v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
next-polyfill-nomodule v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
react-dev-overlay v11.1.3-canary.65 2021-10-12 13:50:38 -04:00
react-refresh-utils v11.1.3-canary.65 2021-10-12 13:50:38 -04:00