Tim Neutkens
136b754396
Move code shared between server/client to "shared" folder ( #26734 )
2021-06-30 11:43:31 +02:00
JJ Kasper
8b803d79a9
Update error when internal href and external as are used ( #20658 )
...
* Update error when internal href and external as are used
* Update to handle error outside invariant
* Update err.sh components
2021-01-01 12:14:42 -06:00
Cowboy Ho
28e12876b8
Fix router not working on some protocol ( #16650 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-11-03 16:18:02 -05:00
Jan Potoms
764b194505
make parseRelativeUrl return a UrlObject ( #16809 )
...
Alternative to https://github.com/vercel/next.js/pull/16798
2020-09-03 18:26:52 +00:00
Jan Potoms
5dbe0d0215
Allow absolute urls in router and Link ( #15792 )
...
Fixes https://github.com/vercel/next.js/issues/15639
Fixes https://github.com/vercel/next.js/issues/15820
To Do:
- [x] Doesn't work with `basePath` yet
2020-08-05 18:12:17 +00:00
Jan Potoms
3369d67bd1
Replace node.js url module with WHATWG URL ( #14827 )
...
Replace `url.parse` and `url.resolve` logic with whatwg `URL`, Bring in a customized `format` function to handle the node url objects that can be passed to router methods. This eliminates the need for `url` (and thus `native-url`) in core. Looks like it shaves off about 2.5Kb, according to the `size-limits` integration tests.
2020-07-13 16:08:12 +00:00