rsnext/packages/next/next-server/lib/router/utils
Jan Potoms 8bac412845
make getStaticPaths work with optional catch-all routes (#13559)
Fixes https://github.com/vercel/next.js/issues/13524

To do:
- [x] fix dev mode
- [x] there's a ~route ordering or~ trailing slash issue with top level catch-all (current tests reflect that)
- [x] in this test `/get-static-paths/whatever` should fall back to `/[[...optionalName]].js` since `fallback` is `false` in its `getStaticPaths` method. ~Currently seems to 500~ must have been a glitch
- [x] add tests for `null`, `undefined` ~and `false`~ behavior as well (if decided these are valid)
- [x] ~add tests for string params as well~ this is not allowed for catch-all routes
- [x] test behavior when fallback is enabled and a top level catch-all exists
2020-06-01 17:08:34 +00:00
..
index.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
is-dynamic.ts Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
route-matcher.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
route-regex.ts make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
sorted-routes.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00