Brandon Duffany
1fbd20dc37
Allow top-level GitHub repo URLs as examples ( #11691 )
...
* Support top-level GitHub repo URLs
Adds support for top-level GitHub repo URLs, e.g.
https://github.com/username/my-cool-next-example .
This is already possible, but you have to enter "/tree/master" (or the
desired branch name) after the repo URL.
The change itself simply expands that URL to
https://github.com/username/cool-next-example/tree/$DEFAULT_BRANCH_NAME
where DEFAULT_BRANCH_NAME is the default branch configured for the repo
in GitHub.
* Fix formatting issues
2020-04-06 15:57:19 +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
Vass Bence
969ffd6c1a
Mention <title> and styled-jsx caveats in Document's docs ( #11499 )
...
* Mention <title> and styled-jsx caveats
* Update custom-document.md
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-06 13:38:29 +02:00
Karl Horky
baf0b28779
Add routing example with dynamic as
prop ( #11114 )
2020-04-06 13:36:57 +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
Yamagishi Kazutoshi
bd85cbdf17
Add repository URL to package.json ( #10748 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:31:44 +02:00
Madeline Ziolko
301cca3802
Update webpack and mkdirp ( #11165 )
...
* Update mkdirp to a version that no longer has a dependency on minimist: https://npmjs.com/advisories/1179
* Update webpack to the most recent minor version to remove minimist vulnerability.
* Update deps
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:12:14 +02:00
Paul van Dyk
19f41c60bc
Update postcss.config.js ( #11366 )
...
* Update postcss.config.js
Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.
* Update postcss.config.js
Fix array spread
* Update postcss.config.js
remove extra operator
* Fix linting
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 12:06:06 +02:00
Fabian Mastenbroek
20f2b0b3b2
Add example for polyfilling DOMParser in Node ( #10782 )
...
This change updates the README of the `react-intl` example to show how to use
the FormattedHTMLMessage component from `react-intl` in Node environments when
using pre-v4 versions.
2020-04-06 12:03:10 +02:00
Tim Neutkens
69984de796
v9.3.5-canary.3
2020-04-06 11:51:39 +02:00
Tim Neutkens
6e84c0c12a
Add dependencies used by compiled files ( #11699 )
...
* Add dependencies used by compiled files
* Update utils.ts
2020-04-06 11:52:19 +02:00
Shu Uesugi
7b0802eb40
Use function for function components ( #11695 )
2020-04-06 10:44:40 +02:00
Nathan Sculli
fa39b311ec
A little bit of maintenance on the ReasonML examples ( #11662 )
...
* Add babel-types package
`next dev` was failing with:
```
Error: Cannot find module 'babel-types'
```
* Upgrade to the latest bs-platform
Also add the `babel-types` package to stop the `next dev` command from complaining.
* Remove extraneous babel-plugin-bucklescript dependency.
Seems the dependency has been deprecated, and it doesn't seem to be required
anyways.
2020-04-06 10:44:01 +02:00
Luis Alvarez D
e3a35b2a3e
Update Automatic Static Optimization docs ( #11618 )
2020-04-06 09:46:19 +02:00
Sriram Thiagarajan
eec18ecafe
[create-next-app] update logic for shouldUseYarn function ( #11683 )
...
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-06 09:32:20 +02:00
Jaga Santagostino
b91ee110b7
add links to sections in data fetching documentation ( #11666 )
2020-04-05 13:52:43 +02:00
Tal Ater
89b69865fb
Fix documentation link in Basic API routes example ( #11671 )
...
Link to description of API Routes in the main README of the repo is broken. Replaced with a link to the documentation.
2020-04-05 13:46:48 +02:00
Alejandro
d46a0aef0f
Integrate with-atlaskit ( #11269 )
...
* Add with-atlaskit
* Fix
* Fix
* Add babel
2020-04-05 13:27:49 +02:00
Janicklas Ralph
52f9e911ec
Updating native-url version ( #11670 )
...
* Updating native-url version
* Bump version
2020-04-05 13:20:05 +02:00
JJ Kasper
1cdc607968
Warn when user has pages/_error but no pages/404 ( #11603 )
...
* Warn when user has pages/_error but no pages/404
* Update test
* Update custom-error-no-custom-404.md
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-05 13:19:14 +02:00
JJ Kasper
9baa103bb8
v9.3.5-canary.2
2020-04-04 12:39:57 -05:00
JJ Kasper
7f8f149f99
Add error when GSSP methods are added as page component members ( #11645 )
2020-04-03 19:08:17 -04:00
David Janda
d093dd5786
Updated with-shallow-routing to use getServerSideProps ( #11585 )
...
* Replaced getInitialProps with getServerSideProps
* Updated page and readme
* Removed unrequired props
* Mention getStaticProps too
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-03 14:59:39 -05:00
Jan Sepke
2bfbfea635
Update FAQ link ( #11636 )
...
to new Data fetching documentation
2020-04-03 19:20:19 +02:00
Joe Haddad
ed1aba0dbb
v9.3.5-canary.1
2020-04-03 13:18:26 -04:00
Joe Haddad
b747a366ab
Fix Preview Mode in <iframe>
( #11638 )
2020-04-03 13:18:04 -04:00
noejon
d97ac9ff82
[fix:typo] - Fixing a typo in the typescript example ( #11630 )
2020-04-03 11:44:57 +02:00
Jan Piotrowski
845f2a98fb
make providers headlines so they become linkable ( #11613 )
...
(hopefully)
2020-04-03 09:51:46 +02:00
Luis Alvarez D
9a7f29c981
[Docs] Remove concepts folder ( #11621 )
2020-04-03 09:45:00 +02:00
David Janda
641976a471
Replace getInitialProps with getServerSideProps ( #11586 )
2020-04-02 16:36:18 -05:00
JJ Kasper
97a6b64f83
Rename unstable GSP field ( #11602 )
...
* Rename unstable GSP revalidate field
* Update error message
* Tweak error message some more
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-02 14:29:41 -04:00
JJ Kasper
bf96337c6c
Update minimum required node version to be more specific ( #11604 )
2020-04-02 14:06:36 -04:00
Sriram Thiagarajan
892794b013
[docs] Remove broken link to example api-routes-micro ( #11597 )
2020-04-02 17:22:12 +02:00
JJ Kasper
ef1bfc962b
v9.3.5-canary.0
2020-04-02 10:12:50 -05:00
swyx
4adab3d4b0
[docs] document how root routes coexist with dynamic api routes ( #11591 )
...
* document how root routes coexist with dynamic api routes
document how root routes coexist with dynamic api routes - related to https://github.com/zeit/next.js/issues/11542
* Update dynamic-api-routes.md
* Update dynamic-api-routes.md
* Run prettier
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-02 11:05:01 +02:00
kvoncode
b48db989bb
add: jsx
to list of supported files in docs ( #11579 )
2020-04-02 10:21:13 +02:00
JJ Kasper
56118439b7
Update to make sure to respond with 400 for invalid URLs ( #11561 )
...
* Update to make sure to respond with 400 for invalid URLs
* Update response text for 400 API error
2020-04-02 09:24:32 +02:00
Gerald Monaco
139da5ade2
Prevent extraneous re-renders with next/dynamic ( #11587 )
...
* Prevent extraneous rerenders with loadables
* Don't try to spread undefined
* Allow ref to be memoized
2020-04-02 09:22:04 +02:00
Matt Carlotta
5db180b221
Fix styled-components example README notes ( #11548 )
...
* Add notes to styled-components example README
* Adjust notes to styled-components example README
* Fix styled-components README notes
* Update README
2020-04-01 14:00:13 -05:00
Tim Neutkens
8c899ee5e4
v9.3.4
2020-04-01 16:05:04 +02:00
Tim Neutkens
e000d843b2
v9.3.4-canary.4
2020-04-01 16:04:03 +02:00
James Mosier
7b546a92c8
Update hello-world example React version & name for CodeSandbox ( #11550 )
2020-04-01 15:56:38 +02:00
Matt Carlotta
a37ad0ae07
Add notes to styled-components example README ( #11540 )
...
* Add notes to styled-components example README
* Adjust notes to styled-components example README
2020-04-01 12:21:04 +02:00
Tim Neutkens
a99244402e
v9.3.4-canary.3
2020-04-01 12:14:38 +02:00
JJ Kasper
3f6bd47dfb
Update build output with renamed column ( #11401 )
...
* Update build output with renamed column
* Update build output test
* Update naming of column
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-01 11:39:25 +02:00
Luis Alvarez D
1992e2a96e
Example/update unstated ( #11534 )
...
* Updated components and deps
* Updated readme
2020-04-01 11:36:02 +02:00
JJ Kasper
d61eced9a6
Update to make sure AMP only bundles are always removed in pro… ( #11527 )
2020-04-01 10:24:44 +02:00
Vincent Voyer
fa5da6d220
Remove passing of NODE_OPTIONS='--inspect' to subprocesses ( #11041 )
...
* fix(debugging): do not pass NODE_OPTIONS='--inspect' to subprocesses
fixes #11030
* fix(debugger): use a regex to remove bad NODE_OPTIONS flags
Co-authored-by: Alec Larson <alec.stanford.larson@gmail.com>
2020-04-01 10:12:38 +02:00
JJ Kasper
f9cd7c581f
v9.3.4-canary.2
2020-03-31 14:30:10 -05:00
Jane Manchun Wong
c17ee73db7
Generic Type for GetStaticPaths ( #11430 )
...
* Generic Type for GetStaticPaths
* Add generic typing for params to GSSP and GSP too
* Added basic tests
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-03-31 14:11:09 -05:00