rsnext/packages/next/next-server/server
JJ Kasper 1203b9082b
Ensure path encoding is handled consistently for prerendered pages (#19135)
This ensures we handle encoding/decoding for SSG prerendered/fallback pages correctly. Since we only encode path delimiters when outputting to the disk we need to match this encoding when building the `ssgCacheKey` to look-up the prerendered pages. This also fixes non-ascii prerendered paths (e.g. 商業日語) not matching correctly. 

This does not resolve 👉  https://github.com/vercel/next.js/issues/10084 and further investigation will be needed before addressing non-ascii paths for non-SSG pages. 

The encoding output was tested against https://tst-encoding-l7amu5b9c.vercel.app/ to ensure the values will match correctly on Vercel. 

Closes: https://github.com/vercel/next.js/issues/17582
Closes: https://github.com/vercel/next.js/issues/17642
x-ref: https://github.com/vercel/next.js/pull/14717
2020-12-28 20:08:58 +00:00
..
lib Fix un-transpiled client file with rewrites (#16453) 2020-08-21 19:11:25 +00:00
api-utils.ts Custom Server with bodyParser, don't parse body again in API Route (#16169) 2020-12-07 13:30:38 +00:00
config.ts Remove extra redirect for index with i18n (#20397) 2020-12-22 17:12:53 +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
denormalize-page-path.ts Add initial handling for dynamic route href resolving and rewrites on the client (#15231) 2020-08-13 14:39:36 +02:00
font-utils.ts Font optimizations (#14746) 2020-07-28 12:19:28 +02:00
get-page-files.ts Modify low priority files in manifest (#16181) 2020-08-14 04:30:25 +00:00
get-route-from-entrypoint.ts Fix app-document-import-order test for webpack 5 (#15224) 2020-07-17 10:38:06 +02:00
image-config.ts Fallback to default config to enable testing Image component (#19107) 2020-11-12 19:24:08 +00:00
image-optimizer.ts Fallback to default config to enable testing Image component (#19107) 2020-11-12 19:24:08 +00:00
incremental-cache.ts Ensure optional catchall prerendered indexes and i18n (#19116) 2020-11-12 18:50:32 +00:00
load-components.ts Allow pages to be async modules to enable top-level-await (#17590) 2020-10-14 11:55:42 +02:00
next-server.ts Ensure path encoding is handled consistently for prerendered pages (#19135) 2020-12-28 20:08:58 +00:00
node-polyfill-fetch.js ncc 0.25.0 upgrade and fixes (#18873) 2020-11-06 02:33:14 +00:00
normalize-page-path.ts Add initial handling for dynamic route href resolving and rewrites on the client (#15231) 2020-08-13 14:39:36 +02:00
optimize-amp.ts Revert "@ampproject/toolbox-optimizer" 2020-03-30 16:26:25 -04:00
render.tsx Update revalidate checks (#19796) 2020-12-22 20:15:26 +00:00
require.ts Remove tslint disables (#16116) 2020-08-12 14:39:07 +00:00
router.ts Ensure trailingSlash redirect applies correctly for i18n (#19859) 2020-12-07 17:36:46 +00:00
send-payload.ts Enable handling for revalidate and notFound (#19165) 2020-11-14 07:12:47 +00:00
serve-static.ts Add support for Image Optimizer (#17749) 2020-10-16 13:10:01 +02:00
utils.ts Improve Server Lib Utilities (#12119) 2020-04-23 09:38:57 +02:00