rsnext/packages/next/server/lib
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
..
incremental-cache Add handling for static generation in app (#40561) 2022-09-19 18:05:28 +00:00
squoosh Replace global with globalThis (#42627) 2022-11-08 14:45:30 +01:00
etag.ts refactor: rewrite etag (#38568) 2022-07-18 09:20:44 +00:00
find-page-file.ts App files ending with page registred as page files (#42996) 2022-11-16 13:46:04 -08:00
mock-request.ts Update on-demand ISR to skip fetch locally (#35386) 2022-03-17 12:06:44 -05:00
recursive-readdir-sync.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
start-server.ts Handle rewriting WebSocket requests (#39463) 2022-08-10 17:00:30 +00:00
utils.ts Allow port 0 in next dev and next start (#40118) 2022-08-31 17:13:39 -05:00