rsnext/test/e2e
JJ Kasper dcff078936
Re-land build(edge): extract buildId into environment (#65426)
### What

* Extract `buildId` and server action encryption key into environment
variables for edge to make code more deterministic
* Fixed the legacy bad env names from #64108
* Always sort `routes` in prerender manifest for consistent output
* Change `environments` to `env` in middleware manifest, confirmed with
@javivelasco this is a fine change without need to bumping the version

### Why

Dynamic variants like `buildId`, SA `encryptionKey` and preview props
are different per build, which results to the non determinstic edge
bundles. Once we extracted them into env vars then the bundles become
deterministic which give us more space for optimization


Closes NEXT-3117

Reverts vercel/next.js#65425

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2024-05-08 10:40:15 +02:00
..
404-page-router Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir make sure children is first in loader tree to fix head css bug on client navigation (#65279) 2024-05-08 08:35:25 +02:00
app-dir-legacy-edge-runtime-config Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
async-modules Improve top level await coverage (#64508) 2024-04-17 17:44:40 +02:00
async-modules-app Improve top level await coverage (#64508) 2024-04-17 17:44:40 +02:00
basepath Add hasRedbox fix (#60522) 2024-01-15 09:36:44 +01:00
browserslist Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
browserslist-extends Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
cancel-request Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
children-page Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
config-promise-export Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
config-schema-check Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
conflicting-app-page-error Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
custom-app-render Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
disable-js-preload Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
dynamic-route-interpolation Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
edge-api-endpoints-can-receive-body Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-async-local-storage Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-can-read-request-body Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-can-use-wasm-files Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-compiler-can-import-blob-assets Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-compiler-module-exports-preference Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-configurable-runtime Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-pages-support Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
edge-runtime-pages-api-route Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
edge-runtime-uses-edge-light-import-specifier-for-packages Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
esm-externals Support esm externals in app router (#65041) 2024-05-07 21:14:58 +02:00
favicon-short-circuit Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
fetch-failures-have-good-stack-traces-in-edge-runtime Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
getserversideprops Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
handle-non-hoisted-swc-helpers Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
hello-world Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
i18n-api-support Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
i18n-data-fetching-redirect Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
i18n-data-route Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
i18n-default-locale-redirect Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
i18n-disallow-multiple-locales Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
i18n-ignore-redirect-source-locale Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
i18n-ignore-rewrite-source-locale Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
i18n-preferred-locale-detection Migrate locale redirect handling to router-server (#62606) 2024-02-27 16:37:11 -08:00
ignore-invalid-popstateevent Upgrade typescript to 5.3 (#64043) 2024-04-17 18:35:29 +02:00
instrumentation-hook Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
instrumentation-hook-src Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
link-with-api-rewrite Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
manual-client-base-path Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-base-path Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-custom-matchers feat(next-core): support parsing matcher config object (#64678) 2024-04-23 09:55:24 +02:00
middleware-custom-matchers-basepath Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-custom-matchers-i18n Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-dynamic-basepath-matcher Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-fetches-with-any-http-method Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-fetches-with-body Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-general Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
middleware-matcher Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-redirects Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-request-header-overrides Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-responses Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-rewrites Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-shallow-link Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-trailing-slash Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
module-layer Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
multi-zone Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
new-link-behavior Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
next-font Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
next-head Pages router: Use attribute-based head children reconciler when strictNextHead is enabled (#65408) 2024-05-06 19:32:14 +02:00
next-image-forward-ref Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
next-phase Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
next-script Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
next-test update create-next-app React versions (#65478) 2024-05-07 14:14:04 -07:00
no-eslint-warn-with-no-eslint-config Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
nonce-head-manager Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
og-api Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
opentelemetry Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
optimized-loading Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
pages-performance-mark Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
postcss-config-cjs Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
prerender chore: show large data warning once per page on prod (#46323) 2023-02-25 12:29:59 -08:00
prerender-native-module Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
proxy-request-with-middleware Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
react-dnd-compile Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
reload-scroll-backforward-restoration Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
repeated-forward-slashes-error Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
revalidate-reason provide revalidateReason to getStaticProps (#64258) 2024-04-09 09:53:08 -07:00
skip-trailing-slash-redirect Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
socket-io Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
ssr-react-context Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
streaming-ssr Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
styled-jsx Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
swc-warnings Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
switchable-runtime Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
test-template/{{ toFileName name }} chore: update test template to use nextTestSetup (#62154) 2024-02-16 17:30:54 +01:00
test-utils-tests/basic chore: update test template to use nextTestSetup (#62154) 2024-02-16 17:30:54 +01:00
testmode Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
third-parties Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
trailingslash-with-rewrite Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
transpile-packages Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
tsconfig-module-preserve Improve top level await coverage (#64508) 2024-04-17 17:44:40 +02:00
type-module-interop Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
typescript-version-no-warning Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
typescript-version-warning Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
undici-fetch Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
useselectedlayoutsegment-s-in-pages-router fix(navigation): allow useSelectedLayoutSegment(s) in Pages Router (#62584) 2024-02-29 13:14:52 +00:00
yarn-pnp/test Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
basepath-trailing-slash.test.ts Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
basepath.test.ts Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
example-file.txt Update pnpm new-test to use createNextDescribe (#44147) 2022-12-19 20:08:50 +01:00
example.txt chore: update test template to use nextTestSetup (#62154) 2024-02-16 17:30:54 +01:00
prerender-crawler.test.ts Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
prerender-native-module.test.ts Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
prerender.test.ts Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00