rsnext/packages/next/build
Jan Potoms b87e4989e2
Rename exportTrailingSlash to existing trailingSlash property (#15768)
In terms of url rewriting, `trailingSlash` supports everything `exportTrailingSlash` does. We can just share all other code paths and deprecate `exportTrailingSlash`.

This PR shows a deprecation warning when `exportTrailingSlash` is used.

Also fixes https://github.com/vercel/next.js/issues/15774

We can update the tests now or later. (I kept them the same to prove it's non-breaking)

To do:
- [x] Do we want to keep this? => nope 841d4efc51/packages/next/next-server/lib/router/router.ts (L329)
- [x] I kept `exportTrailingSlash` here. Do we want to rename that as well? => nope 2d9d649d49/packages/next/build/index.ts (L959)
2020-08-03 14:03:11 +00:00
..
babel Add no-anon-default-export Babel lint rule (#14519) 2020-06-30 13:05:29 +00:00
output Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
plugins Clean up plugins (#14676) 2020-06-29 14:26:49 +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 Solve large portion of webpack 5 deprecation warnings (#15806) 2020-08-03 12:26:23 +00:00
compiler.ts Prepare for webpack 5 upgrade (#14268) 2020-06-17 15:00:29 +00:00
entries.ts Combine sendPayload and sendHTML (#15475) 2020-07-27 16:19:30 -04:00
generate-build-id.ts Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
index.ts Rename exportTrailingSlash to existing trailingSlash property (#15768) 2020-08-03 14:03:11 +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 Relax encoding on dynamic prerendered routes (#14717) 2020-07-13 14:42:27 +00:00
webpack-config.ts Rename exportTrailingSlash to existing trailingSlash property (#15768) 2020-08-03 14:03:11 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00