rsnext/packages/next/server/dev
Hannes Bornö fdc07c0012
App files ending with page registred as page files (#42996)
When building (`next/build/index.ts`) files ending with `page.js` got
picked up by the RegEx which meant files like `not-a-page.js` ended up
as a page. This change makes sure the segment actually starts with
`page`.

Dev had the same issue and also missed taking `pageExtensions` into
account.

Fixes #42972

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a 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 a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-11-16 13:46:04 -08:00
..
hot-middleware.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
hot-reloader.ts Remove react root condition and always use concurrent mode (#42141) 2022-10-29 20:34:03 +00:00
next-dev-server.ts App files ending with page registred as page files (#42996) 2022-11-16 13:46:04 -08:00
on-demand-entry-handler.ts Fix page static info extractor for app dir (#42001) 2022-10-27 14:55:35 -07:00
static-paths-worker.ts Replace global with globalThis (#42627) 2022-11-08 14:45:30 +01:00