rsnext/test/integration/dynamic-optional-routing/pages
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
..
api/post [Experimental] Implement optional catch all routes (#12887) 2020-05-18 09:47:13 -04:00
get-static-paths make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
get-static-paths-fallback make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
get-static-paths-false make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
get-static-paths-null make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
get-static-paths-undefined make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
nested make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
[[...optionalName]].js make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
about.js [Experimental] Implement optional catch all routes (#12887) 2020-05-18 09:47:13 -04:00