Tim Neutkens
e4d22cec63
Fix formatting of older PR that passed tests
2020-05-22 14:36:01 +02:00
Arnar Kári Ágústsson
6ac2f4b74d
With reason relay example ( #12080 )
...
* Add with-reason-relay example
* update gitignore
* Add missing components
* Add _app.js wrapper
* Move records to wait for results
* Update readme
* Upload schema
* Add call to query hook to get viewerData with getFragmentRefs
* Move relay env setup to seperate module
* remove unused code
* lint fixes
* prettier fix
2020-05-22 12:13:44 +02:00
Tim Neutkens
b91e570a33
Move csp examples ( #13221 )
...
Fixes #12042
2020-05-22 11:35:27 +02: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
Joe Haddad
3d852d895f
Better formatted Sass errors ( #13211 )
...
https://twitter.com/timer150/status/1263689549898829829
2020-05-22 05:25:02 +00:00
Luis Alvarez D
195e3e0ac3
[Docs] Replace hot reloading with fast refresh ( #13207 )
...
- Mention React Fast Refresh instead of hot reloading in docs
- Added a mention of our deployment docs in the main documentation page
- replaced `npm init` with `npx`
2020-05-22 02:40:06 +00:00
Prateek Bhatnagar
75b0bfff9c
bug fixes for Lint routing ( #13111 )
...
- bug fixes in `@next/eslint-plugin-next`.
- adds rules to `recommended` config.
2020-05-21 23:42:20 +00:00
Maxi Gimenez
57535b5afc
chore(next/build/babel): missing types ( #13189 )
2020-05-21 12:57:04 +00:00
JJ Kasper
da5a05dc87
Migrate PR stats action into Next.js repo ( #13177 )
...
* Migrate PR stats into Next.js repo
* Update running prettier in local mode
2020-05-21 14:07:27 +02:00
Lucio Villa
beeefaaea3
Load .env files before running Telemetry ( #13173 )
...
Fixes #13171
2020-05-21 12:06:57 +00:00
Joe Haddad
7eaf9b8bab
Remove old ErrorComponent global
2020-05-20 15:46:47 -04:00
Gerald Monaco
c6535edc27
Remove unnecessary loadGetInitialProps ( #13159 )
2020-05-20 15:39:02 -04:00
Gerald Monaco
d257d44594
Remove dead events ( #13156 )
2020-05-20 21:35:44 +02:00
Joe Haddad
91b1548d32
v9.4.2
2020-05-20 15:32:29 -04:00
Joe Haddad
05a12cb742
v9.4.2-canary.5
2020-05-20 14:48:52 -04:00
Joe Haddad
7c7fd3e863
Record presence of reportWebVitals
( #13155 )
...
Closes #12897
2020-05-20 18:44:39 +00:00
TodorTotev
7cf3c3d28d
Feat/remove redundant imports from examples ( #13062 )
...
The issue is related to [12964](https://github.com/zeit/next.js/issues/12964 )
Let me know if there are any changes you want me to make.
Affected examples:
**with-glamor
with-graphql-hooks
with-graphql-react
with-grommet
with-http2
with-jest
with-cookie-auth-fauna
with-context-api
with-cerebral
with-aphrodite
with-apollo-and-redux
basic-css
with-carbon-components
amp-first**
I would love to help more, so let me know if there is anything specific I can contribute to.
2020-05-20 17:50:03 +00:00
Joe Haddad
57815c5fe5
Fix Windows LogBox Test ( #13147 )
2020-05-20 13:33:26 -04:00
Joe Haddad
74d7e3585c
Eliminate array destructuring assignment ( #13151 )
...
While we're at it, we should fix this too.
x-ref: #13144
2020-05-20 17:13:31 +00:00
JJ Kasper
b325f15e61
Update Create Next App to handle rename of org ( #13138 )
...
* Update Create Next App to handle rename
* Rethrow if we dont handle the error
2020-05-20 11:52:32 -05:00
Joe Haddad
5703362d77
v9.4.2-canary.4
2020-05-20 12:00:01 -04:00
Joe Haddad
92a159d939
Correctly eliminate destructuring assignment ( #13144 )
...
This eliminates code referenced via destructuring assignment, as reported by @styfle.
2020-05-20 15:57:18 +00:00
Piotr Kuczynski
e28ce34ccb
Fix the link for Custom Server documentation ( #13137 )
2020-05-20 16:50:06 +02:00
Kirill Konshin
b8284d9a86
Upgrade Next Redux Wrapper to version 6 in examples ( #11802 )
...
Fixes https://github.com/zeit/next.js/issues/12920
2020-05-20 12:22:10 +00:00
Joe Haddad
ccea1c018b
Enable jest/no-try-expect ( #13124 )
2020-05-20 13:37:35 +02:00
Janicklas Ralph
a17ace8eba
GranularChunks conformance check ( #11710 )
...
Adding a conformance plugin the make sure users don't undo the benefits of the granularChunks config.
The plugin makes sure that minSize, maxInitialRequests values aren't overridden. Also ensures the cacheGroups - vendors, framework, libs, common, shared are maintained.
The warning and error messages do not break the build with this change. They only display a message.
cc - @prateekbh, @atcastle
2020-05-20 06:40:23 +00:00
Christian Alfoni
cc9e2526e4
With stitches ( #12677 )
...
split into two examples
2020-05-20 06:22:50 +00:00
jmgr2996
993b78de0b
chore: Remove some redundant imports ( #13066 )
...
This issue is related to [12694](https://github.com/zeit/next.js/issues/12964 ). I covered the following examples
- with-zeit-fetch
- with-yarn-workspaces
- with-why-did-your-render
- with-video-js
- with-universal-configuration-runtime
- with-typestyle
- with-three-js
If you have a suggestion or change I'd appreciate it
2020-05-20 05:23:16 +00:00
Joe Haddad
d64e2e1cbe
Use eval-source-map
for Server Side Errors ( #13123 )
...
This switches to faster source maps in development for the server-side compilation on macOS.
We still need to figure out a story for Windows.
2020-05-20 05:00:50 +00:00
Michael Albertz
99ee63e110
[Examples] Fix with-yarn-workspaces Vercel deploy button ( #12867 )
...
Fixes: https://github.com/zeit/next.js/issues/10734
Related: https://github.com/zeit/now/discussions/4320
This fixes the **Deploy your own** button for the with-yarn-workspaces example. Currently the deployment fails with the following error.
```
Module not found: Can't resolve 'bar' in '/zeit/3ad1f9cd/pages'
```
I also added a dynamic api route to the example, because I had problems configuring vercel to redirect to dynamic routes.
This will be the new Vercel-Import-From link: [Deploy](https://vercel.com/import/project?template=https://github.com/Prioe/next.js/tree/fix-with-yarn-workspaces-deploy/examples/with-yarn-workspaces )
2020-05-20 04:39:38 +00:00
taye
53b478ccd7
example(contentful): set up content types with required fields ( #12591 )
...
The example app expects all fields of Post and Author entries to be present and fails to build if any are missing. This PR adds a "required" validation to fields of both content types to avoid bulid errors.
CC @stefanjudis
2020-05-20 04:23:28 +00:00
Dave Cardwell
07084d4819
[Experimental] Only consider files within plugins ( #12943 )
...
I have a plugin with a src folder structure following jest’s recommended practice of including a `__tests__` folder:
```
$ find src/
src/
src/document-html-props-server.ts
src/__tests__
src/__tests__/document-html-props-server.unit.ts
```
collect-plugins.ts [reads the src directory](960c18da53/packages/next/build/plugins/collect-plugins.ts (L65)
) and finds:
```js
[ '__tests__', 'document-html-props-server.ts' ]
```
…which it then [converts to](960c18da53/packages/next/build/plugins/collect-plugins.ts (L76-L80)
):
```js
[ '', 'document-html-props-server' ]
```
…and finally [outputs](960c18da53/packages/next/build/plugins/collect-plugins.ts (L90-L96)
):
```
Next.js Plugin: {my plugin} listed invalid middleware
```
This pull request makes collect-plugins.ts only consider files, so my __tests__ directory and its contents are ignored.
2020-05-20 04:05:29 +00:00
Tim Neutkens
4ba2b78729
Read process.env after loading .env files ( #13087 )
...
Fixes #13067
2020-05-20 03:39:27 +00:00
Tim Neutkens
49990f558d
Add support for debugging Next.js core ( #13101 )
...
Note this is only for the Next.js core, will look at a configuration for the debugger for Next.js apps soon.
2020-05-20 03:18:02 +00:00
Luis Alvarez D
a1b46817eb
[Examples] Update with-sentry-simple ( #13074 )
...
Moved from `getInitialProps` to the new data fetching methods. Updated the readme and simplified the implementation for pages.
2020-05-20 02:57:07 +00:00
Joe Haddad
b3e5233649
Revert "Enable update_branch_immediately
"
...
This reverts commit b0a020e8ef
.
2020-05-19 22:32:26 -04:00
Joe Haddad
b0a020e8ef
Enable update_branch_immediately
2020-05-19 21:56:06 -04:00
Greg Rickaby
58c7265ba0
Update DatoCMS Example ( #13008 )
...
👋🏻 This PR updates the Datocms example:
- [x] Next.js 9.4 absolute import and aliases support
- [x] Next.js 9.4 native `.env` support
- [x] Tailwind 1.4 native PurgeCSS support
- [x] Chore: bump other dependencies, like React, Remark, and DateFNS
I've tested this PR here:
- 💻 https://github.com/gregrickaby/datocms-next-js-blog-demo-2392
- 👀 https://datocms-next-js-blog-demo-2392.now.sh/
2020-05-19 23:13:35 +00:00
Joe Haddad
9386ba29f8
Stabilize config
tests ( #13116 )
2020-05-19 18:42:41 -04:00
Joe Haddad
f7bdf29ecb
Fix Lint
2020-05-19 18:00:04 -04:00
Jan Potoms
0d05904552
Fix catch-all route + index.js in dev when accessed with trailing slash ( #10502 )
...
Failing test case for https://github.com/zeit/next.js/issues/10488#issuecomment-584500081
This used to give a 500 in dev environment
2020-05-19 18:03:14 +00:00
Joe Haddad
670b2c15cd
Add Kodiak Configuration ( #13103 )
2020-05-19 13:06:42 -04:00
Jimmy Chion
f61a2e7a45
[Example] Unsubscribe Router.on.events ( #13102 )
2020-05-19 12:37:54 -04:00
Tommy Ljungberg
a44ab5d0c1
fix(examples): align with-absolute-imports with next 9.4 ( #13090 )
2020-05-19 18:11:33 +02:00
Zach Waterfield
25021473a5
Update the Automatic Static Optimization docs to explicitly state that Next.js will trigger an update. ( #13096 )
2020-05-19 18:09:57 +02:00
JJ Kasper
ef422467dc
Add error when exporting pages with fallback: true ( #13063 )
2020-05-19 09:29:34 -04:00
Jaime Leonardo Suncin Cruz
d16fb63c1b
Improve Redux Toolkit example ( #12858 )
2020-05-19 09:27:30 -04:00
Joe Haddad
d0d59782f5
v9.4.2-canary.3
2020-05-19 08:47:23 -04:00
Slawek Kolodziej
7f604a504b
Fix building server-side generated AMP pages ( #13046 )
2020-05-19 07:58:50 -04:00
Tim Neutkens
dde5d3bdfe
Update prefetching explanation to correctly reflect data prefetching ( #13088 )
2020-05-19 07:03:42 -04:00