Luis Alvarez D
01662f1c79
[Docs] Add upgrade notes for Next.js 9.5 ( #15703 )
...
Fixes https://github.com/vercel/next.js/issues/15719
2020-07-31 03:40:40 +00:00
JJ Kasper
766fef2271
Document regex support for custom routes ( #15714 )
...
This adds an example of using regex matching for custom routes
Fixes https://github.com/vercel/next.js/issues/15712
2020-07-30 21:15:29 +00:00
Luis Alvarez D
63ea2d8297
Add CSS Modules examples to docs ( #15601 )
...
Fixes https://github.com/vercel/next.js/issues/15595
- Updated the tailwindcss and tailwindcss-emotion examples to the latest version of tailwindcss
- Added a new `with-styled-jsx` example
- Updated the `basic-css` example to use CSS Modules instead of styled-jsx
- Added the examples to the documentation page for built-in css support
2020-07-29 14:43:48 +00:00
JJ Kasper
571e2a7cff
Add note about statusCode config for redirects ( #15615 )
...
This adds a note to our documentation about the `statusCode` config to match the note from the redirects documentation for [`vercel.json`](https://vercel.com/docs/configuration#project/redirects )
2020-07-29 09:23:23 +00:00
Luis Alvarez D
bf1af6880a
[Docs] Update links that should point to Vercel repos ( #15547 )
...
From feedback, we still have some links that go to zeit repos instead of vercel
2020-07-28 04:16:31 +00:00
Christopher Robert Van Wiemeersch
193ffe7616
fix typo in custom-webpack-config docs ( #15533 )
2020-07-27 19:24:29 +00:00
Tim Neutkens
a3eec3bf03
Update custom webpack config docs to mention existing features ( #15517 )
2020-07-27 11:46:17 +02:00
Robin Tom
1a34b237b6
Example for Rewrites (Custom routes) ( #15403 )
...
This PR adds example for #15073
> - [ ] `rewrites` For [docs/api-reference/next.config.js/rewrites.md](https://github.com/vercel/next.js/blob/canary/docs/api-reference/next.config.js/rewrites.md )
2020-07-25 02:38:58 +00:00
Jan Potoms
7dd61b47a2
Fix basepath router events ( #14848 )
...
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-20 16:03:49 -04:00
Joe Haddad
a11d99390a
Stabilize Trailing Slash API ( #15331 )
...
Closes #15330
2020-07-20 16:16:59 +00:00
JJ Kasper
3a9cb2c5b3
Update docs for basePath custom-routes interop ( #15140 )
...
Follow-up to https://github.com/vercel/next.js/pull/15041 this updates the documentation for custom-routes to mention `basePath` handling with them
2020-07-14 01:26:54 +00:00
Tim Neutkens
fdc4c1773b
Add custom routes docs (rewrites, redirects, headers) ( #14887 )
...
Fixes #14452
2020-07-06 14:01:42 +00:00
Tim Neutkens
6fe1260b5f
Add basePath documentation ( #14882 )
...
Fixes #14453
2020-07-06 12:35:51 +00:00
Luis Alvarez D
0f60377967
Updated exportPathMap docs ( #14630 )
...
Closes https://github.com/vercel/next.js/issues/14596
2020-06-27 17:33:49 +00:00
James Bowes
166834e578
Update the passHref link ( #14584 )
...
Keeping up with section headers in markdown is fun :)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-06-26 11:08:48 -05:00
Luis Alvarez D
c6dc34e4d7
[Docs] Focus on useRouter ( #14515 )
...
[ch4109]
Closes https://github.com/vercel/next.js/issues/14500
Our current docs for `next/router` use examples from both `useRouter` and `import Router from 'next/router'`, with this PR I'm unifying the API into `useRouter` (`withRouter` is still going to be mentioned multiple times as it is the HOC alternative) and no longer mentioning that you can import a global `Router` object from `next/router`, not sure if I should mention it at least once but that didn't seem to be required.
I also did some structural changes to the docs for `next/router`, now every method starts with a description, then the implementation and explanation of the parameters of the method, and then the usage example, because every method uses the same `Usage` title the hash for them would be something like `#usage`, `#usage-1`, `#usage-2`, e.t.c, so I'm not very happy with this but it looks good.
Feedback wanted 🙏
2020-06-25 23:35:28 +00:00
Jan Potoms
2142b76e6b
Normalize trailing slashes ( #13333 )
...
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-06-23 13:38:49 +02:00
James Mosier
bb6ae2648d
Added React Strict Mode documentation ( #13723 )
...
Added new documentation for React Strict mode under the `next.config.js` doc level.
Closes #13713
2020-06-03 17:22:58 +00:00
Joe Haddad
b7e17e09e5
Update references to zeit/next.js ( #13463 )
2020-05-27 17:51:11 -04:00
Luis Alvarez D
fca88d1cfe
Updated docs ( #13205 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-05-22 10:36:45 +02:00
Tim Neutkens
dde5d3bdfe
Update prefetching explanation to correctly reflect data prefetching ( #13088 )
2020-05-19 07:03:42 -04:00
Joe Haddad
86160a5190
Upgrade to Prettier 2 ( #13061 )
2020-05-18 15:24:37 -04:00
Stig Kleppe-Jørgensen
97a61a18b2
x-powered-by is added to response, not request ( #13037 )
2020-05-18 12:58:29 -04:00
Joe Haddad
9c79955047
Strip out dead code for ignoreDevErrors
( #12941 )
2020-05-15 13:30:01 -04:00
0xflotus
2a62e51a10
(docs): fixed typo error ( #12746 )
2020-05-11 17:08:31 -04:00
Luis Alvarez D
0b36211a1f
[Docs] Environment Variables ( #12696 )
2020-05-11 02:18:34 -04:00
Tim Neutkens
fcbffa3683
Update documentation that refers to isomorphic fetch libs ( #12686 )
2020-05-10 14:16:03 -04:00
Shu Uesugi
cc139b8d89
More renaming ZEIT → Vercel ( #12649 )
2020-05-09 17:21:53 +02:00
Lachlan Campbell
0ef60f11b2
Mention nesting in arrays alongside Fragments in next/head docs ( #12420 )
...
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-05-06 11:34:23 +02:00
Luis Alvarez D
1f324c7206
[Docs] Add documentation for Router.prefetch ( #12333 )
2020-05-02 00:42:22 -04:00
Shu Uesugi
b230627614
Minor docs edits for router API ( #12404 )
2020-05-02 00:20:09 -04:00
Luis Alvarez D
960c18da53
Add docs for Router.back and Router.reload ( #12396 )
2020-05-02 00:11:06 -04:00
Luis Alvarez D
8f3931a0be
Add docs for next dev and next start ( #12392 )
2020-05-02 00:05:26 -04:00
Shu Uesugi
46f1968118
Link to CLI doc from getting started doc / link to Telemetry doc from CLI doc ( #12181 )
2020-04-24 14:29:26 -07:00
Tim Neutkens
483bd3ddda
Rename ZEIT to Vercel ( #12075 )
...
* Find/replace
* Update more URLs
* More rename
* Fix remaining examples
* More updates
* Update create-next-app
* Update remaining text
* Update
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00
Tim Neutkens
6188c79b22
Fix linting
2020-04-20 12:44:52 +02:00
Yangshun Tay
099471eaec
Fix typo in next/amp docs ( #12040 )
2020-04-20 11:18:38 +02:00
Lee Robinson
b52d7ff323
Add documentation on next build
output. ( #12034 )
2020-04-20 11:17:12 +02:00
Lee Robinson
912f746749
Update next/head docs to clarify duplicate tags. ( #12033 )
2020-04-20 11:15:53 +02:00
Vitor Capretz
26df01800d
docs: improve wording on some pages according to alex.js ( #11973 )
2020-04-17 16:26:25 +02:00
Luis Alvarez D
3036463080
Updated shallow docs ( #11925 )
2020-04-15 15:38:46 -04:00
Vincent Voyer
7d2ee3b015
docs(Link): precise how prefetch works ( #11792 )
...
* docs(Link): precise how prefetch works
After this discussion: https://twitter.com/timneutkens/status/1243572726998188036
This might not be the exact good wording though. Let me know!
* Update docs/api-reference/next/link.md
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-04-15 02:03:15 -04:00
Joe Haddad
39c068e1f0
Update Serverless Note in Docs ( #11861 )
2020-04-13 17:11:14 -04:00
Minh Nguyen
ec76d9265c
Rename functional component
-> function component
( #11850 )
...
See the following for context:
- https://reactjs.org/docs/components-and-props.html#function-and-class-components
- https://overreacted.io/how-are-function-components-different-from-classes/
- https://twitter.com/dan_abramov/status/1057625147216220162
- https://twitter.com/kentcdodds/status/1136274289965928448
2020-04-13 11:33:06 +02:00
Luis Alvarez D
f33ba2c525
[docs] Mention the new data fetching methods on missing places ( #11620 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:47:12 +02:00
Yossi Spektor
23d71ff116
Any elements must be direct children of next/head ( #11557 )
...
It is any elements and not only meta or title because the children of next/head are generated in here: 8c899ee5e4/packages/next/next-server/lib/head.tsx (L139)
where React.cloneElement is called without the third parameter which is needed to clone the children as well (https://reactjs.org/docs/react-api.html#cloneelement ).
2020-04-06 13:35:22 +02:00
Luis Alvarez D
1690a756e2
Update GIP docs ( #11303 )
...
* Updated docs
* bump
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-23 18:02:41 -05:00
Tim Neutkens
b9320a8f70
Update wording of new data fetching methods recommendation ( #11221 )
2020-03-20 12:57:17 +01:00
Shu Uesugi
b13892e007
Add TypeScript docs for SSG ( #10865 )
...
* Add TypeScript docs
* Fix types
2020-03-06 12:12:46 +01:00
Vincent Voyer
81c126ee8b
fix(cli): inspect flag is deprecated ( #10819 )
...
This commit effectively removes the --inspect flag from the CLI help and better inform on the deprecation.
2020-03-04 11:53:20 +01:00