rsnext/packages/next/build
Jan Potoms 9da99bcb66
Prepare custom routes loading for adding additional routes (#13857)
Extracted from https://github.com/vercel/next.js/pull/13333, the same exact code lives in that PR as well, but we can merge this separately if it makes reviewing https://github.com/vercel/next.js/pull/13333 easier

This PR does 3 things 
- deduplicate code from build and next-dev-server that loads custom routes from next.config.js  (`loadCustomRoutes`)
- in `loadCustomRoutes`, load these rewrites, headers and redirects configs concurrently instead of sequentially.
- in next-server, make `this.customRoutes` always defined, this allows us to remove the big `if` around its initialization code in `generateRoutes`, which in turn makes it possible to reuse this code for other routing than user defined routes, which is how https://github.com/vercel/next.js/pull/13333 adds its redirects.
2020-06-09 20:16:23 +00:00
..
babel Remove unused variable (#13716) 2020-06-03 11:58:58 -04:00
output Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
plugins Clean up render.tsx options (#13759) 2020-06-06 23:00:03 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
webpack Use buildManifest to load page JS (#13870) 2020-06-08 18:11:00 +00:00
compiler.ts Fail production build quickly (#13496) 2020-05-28 22:51:30 +00:00
entries.ts Fix pages/index.js and pages/index/index.js behavior (#13699) 2020-06-04 17:32:45 +00:00
generate-build-id.ts Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
index.ts Prepare custom routes loading for adding additional routes (#13857) 2020-06-09 20:16:23 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts node-fetch, ora 2020-03-30 16:26:25 -04:00
utils.ts Prepare custom routes loading for adding additional routes (#13857) 2020-06-09 20:16:23 +00:00
webpack-config.ts Clean up render.tsx options (#13759) 2020-06-06 23:00:03 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00