rsnext/packages/next/server
JJ Kasper dff6a71e77
Fix config import on Windows and disable test in failing envs (#29971)
Follow-up to https://github.com/vercel/next.js/pull/29935 this fixes the failing tests on Azure as it seems the `import()` needs to be prefixed with `file://` on Windows or an error is thrown. It also disables the config unit tests since a dynamic import inside of `jest` on either an m1 on macOS or Windows using node 14 causes a segfault from being used inside of `vm`. 

<details>

<summary>segfault error in jest</summary>

<img width="962" alt="Screen Shot 2021-10-15 at 16 45 04" src="https://user-images.githubusercontent.com/22380829/137596819-072233e3-1a45-445f-a3dd-c03ec62fb4ce.png">

</details>


<details>

<summary>Windows absolute import error</summary>


<img width="1114" alt="Screen Shot 2021-10-16 at 12 45 59" src="https://user-images.githubusercontent.com/22380829/137597185-200f3164-7f79-488f-acc9-6c812ce5bc4a.png">

</details>
2021-10-16 19:30:00 +00:00
..
dev Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
lib Migrate server-sent events HMR connection to WebSocket (#29903) 2021-10-15 07:09:54 +00:00
api-utils.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
config-shared.ts Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
config-utils.ts Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
config.ts Fix config import on Windows and disable test in failing envs (#29971) 2021-10-16 19:30:00 +00:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
denormalize-page-path.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-page-files.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-route-from-entrypoint.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
htmlescape.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
image-config.ts Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
image-optimizer.ts Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
incremental-cache.ts Fix revalidate for initial notFound: true paths (#28097) 2021-08-14 13:11:40 +00:00
load-components.ts Parallelize requirePage when loading components (#29494) 2021-09-29 14:42:35 +00:00
next-server.ts Avoid TypeError when comparing path param (#29821) 2021-10-13 04:56:38 +00:00
next.ts Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
node-polyfill-fetch.js Add next.config.js option to override default keepAlive (#27709) 2021-08-03 00:38:42 +00:00
normalize-page-path.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
render-result.ts Use Writable instead of Observable (#29007) 2021-09-11 00:17:56 +00:00
render.tsx Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
require.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
response-cache.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
router.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
send-payload.ts Simplify RenderResult (#28900) 2021-09-08 16:56:31 +00:00
serve-static.ts Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
utils.ts Add crawler blocking for fallback: true (#29121) 2021-09-16 11:01:28 -05:00