rsnext/packages/next/lib
Damien Simonin Feugas 977ff52472
fix(#37106): middleware can not be loaded from src folder (#37428)
## Bug
fixes #37106

Please note that, as for `pages/` the `src/middleware` file is ignored when `/middleware` is present.

## How to test

1. Rebuild next.js `pnpm build`
2. Run dedicated tests: `pnpm testheadless --testPathPattern middleware-src/`
2022-06-08 14:10:05 +00:00
..
eslint Update findPagesDir (#36619) 2022-05-02 15:07:21 +02:00
helpers Don't use yarn if a package-lock.json file is found (#31926) 2022-02-05 20:16:25 +00:00
typescript fix(typescript): worker execution failed with custom next.config.js (#37125) 2022-05-23 20:30:48 +00:00
web Implement web server as the request handler for edge SSR (#33635) 2022-01-26 06:22:11 +00:00
app-layout.tsx Rename app paths folder (#37146) 2022-05-25 11:46:26 +02:00
chalk.ts Add process env NEXT_RUNTIME (#36383) 2022-04-26 17:54:28 +00:00
coalesced-function.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
compile-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
constants.ts fix(#37106): middleware can not be loaded from src folder (#37428) 2022-06-08 14:10:05 +00:00
detect-typo.ts Add CLI command typo detection (#34836) 2022-02-26 07:05:26 -08:00
download-wasm-swc.ts Add falling back to wasm swc build on native load failure (#36612) 2022-05-02 21:11:45 +00:00
fatal-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
file-exists.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
find-config.ts find-up 2020-03-30 16:26:25 -04:00
find-pages-dir.ts Rename app paths folder (#37146) 2022-05-25 11:46:26 +02:00
flat-readdir.ts fix(#37106): middleware can not be loaded from src folder (#37428) 2022-06-08 14:10:05 +00:00
get-package-version.ts Small code improvements (#37227) 2022-05-26 23:19:47 +00:00
get-project-dir.ts Add CLI command typo detection (#34836) 2022-02-26 07:05:26 -08:00
has-necessary-dependencies.ts Interpolate module.exports as default import (#36082) 2022-04-12 14:32:42 +00:00
import-next-warning.ts Add warning when importing "next" directly (#35884) 2022-04-05 10:57:45 -05:00
install-dependencies.ts Don't use yarn if a package-lock.json file is found (#31926) 2022-02-05 20:16:25 +00:00
interop-default.ts Add new target for middleware (#30299) 2021-10-26 18:50:56 +02:00
is-error.ts fix: fixes #33314 move is-plain-object for es5 compilation (#33690) 2022-01-27 17:59:42 +00:00
is-serializable-props.ts fix: fixes #33314 move is-plain-object for es5 compilation (#33690) 2022-01-27 17:59:42 +00:00
is-yarn.ts [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
load-custom-routes.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
non-nullable.ts temporary: re-flag font optimization (#20372) 2020-12-21 19:26:00 +00:00
oxford-comma-list.ts refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
patch-incorrect-lockfile.ts Update lockfile patching for different versions (#36959) 2022-05-17 14:45:23 +00:00
pick.ts [middleware] Support any method when fetching a Request instance (#37540) 2022-06-08 11:00:49 +00:00
pretty-bytes.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
recursive-copy.ts Add initial standalone build handling (#31003) 2021-11-09 11:03:20 -06:00
recursive-delete.ts Fix various Trusted Types violations without use of policy (#34726) 2022-05-05 00:11:36 +00:00
recursive-readdir.ts Remove extraneous fs.stat calls (#27779) 2021-08-09 15:28:00 +00:00
try-to-parse-path.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
verify-partytown-setup.ts Interpolate module.exports as default import (#36082) 2022-04-12 14:32:42 +00:00
verifyAndLint.ts Ensure type check/link worker does not retry (#37324) 2022-05-31 11:30:38 -05:00
verifyTypeScriptSetup.ts fix(typescript): worker execution failed with custom next.config.js (#37125) 2022-05-23 20:30:48 +00:00
with-promise-cache.ts Extract and refactor getPageStaticInfo (#37062) 2022-05-20 14:24:00 +02:00
worker.ts Ensure workers are not left open (#34503) 2022-02-18 09:12:56 +00:00