rsnext/packages/next/next-server/server
Tim Neutkens bef9b56109
Update filename generation for client-side compilation (#14279)
Updates the way filenames are generated for browser compilation.
Notably:
- All entry bundles now have hashes in production, this includes pages (previously pages used a buildId in the path)
- The AmpFiles no longer depends on hardcoded bundle names, it uses the buildManifest instead (internals)
- All cases where we match the page name from the chunk/entrypoint name now use the same function `getRouteFromEntrypoint` (internals)
- In development we no longer include the "faked" `buildId` set to `development` for page files, instead we just use the `/_next/static/pages` path (was `/_next/static/development/pages`). This was changed as it caused unneeded complexity and makes generating the bundles easier (internals)
- Updated tons of tests to be more resilient to these changes by relying on the buildManifest instead of hardcoded paths (internals)

Follow up of these PRs:
https://github.com/vercel/next.js/pull/13759
https://github.com/vercel/next.js/pull/13870
https://github.com/vercel/next.js/pull/13937
https://github.com/vercel/next.js/pull/14130
https://github.com/vercel/next.js/pull/14176
https://github.com/vercel/next.js/pull/14268


Fixes #6303
Fixes #12087 
Fixes #1948
Fixes #4368
Fixes #4255
Fixes #2548
2020-06-20 19:59:47 +00:00
..
lib path-to-regexp 2020-03-30 16:26:25 -04:00
api-utils.ts Propagate Serverless Errors to Platform (#12841) 2020-06-01 23:12:45 +00:00
config.ts De-experimentalize basePath config (#14283) 2020-06-18 10:10:20 +00:00
crypto-utils.ts chore(next-server): api-utils,crypto-utils,next-server missing types (#13431) 2020-05-27 15:43:10 +00:00
get-page-files.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
get-route-from-entrypoint.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
load-components.ts use requirePage for /_document and /_app (#14176) 2020-06-15 10:41:17 -04:00
next-server.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
node-polyfill-fetch.js Make fetch polyfill work with ky-universal (#12804) 2020-05-12 15:58:21 -04:00
normalize-page-path.ts Fix pages/index.js and pages/index/index.js behavior (#13699) 2020-06-04 17:32:45 +00:00
optimize-amp.ts Revert "@ampproject/toolbox-optimizer" 2020-03-30 16:26:25 -04:00
render.tsx Render a helpful message for null GS(S)P return (#14252) 2020-06-17 09:25:27 +00:00
require.ts Fix pages/index.js and pages/index/index.js behavior (#13699) 2020-06-04 17:32:45 +00:00
router.ts Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
send-html.ts fresh 2020-03-30 16:26:25 -04:00
send-payload.ts Correct Cache-Control Behavior for GS(S)P (#11022) 2020-03-13 10:40:10 +01:00
serve-static.ts send 2020-03-30 16:26:25 -04:00
spr-cache.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
utils.ts Improve Server Lib Utilities (#12119) 2020-04-23 09:38:57 +02:00