rsnext/test/integration/dynamic-optional-routing
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
..
pages make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
test make getStaticPaths work with optional catch-all routes (#13559) 2020-06-01 17:08:34 +00:00
next.config.js [Experimental] Implement optional catch all routes (#12887) 2020-05-18 09:47:13 -04:00