Tim Neutkens
e8095c0e2e
Remove cjs file ( #6590 )
2019-03-09 22:34:27 -05:00
Tim Neutkens
dd60199cec
Remove case-sensitive-paths-plugin ( #6587 )
...
While this is a nice feature it does filesystem operations to check if the resolved file matches the filesystem.
2019-03-10 01:44:51 +01:00
Connor Davis
f8be040c79
Next minifier cache ( #6582 )
...
Changes the name of the cache folder so we can predictably cache on Now
2019-03-09 09:09:44 +01:00
JJ Kasper
17da3f86ad
Update with-now-env to use env
config ( #6581 )
...
* Update with-now-env to use `env` config
instead of webpack.DefinePlugin
* Remove mention of DefinePlugin from index page
2019-03-08 20:41:07 +01:00
Tim Neutkens
3c04b0f4e1
Don’t prefetch outside of production ( #6578 )
...
Fixes #1827
This doesn't affect integration tests as they'd use `next build` which forces production mode. Development forces `development`.
2019-03-08 20:08:57 +01:00
JJ Kasper
41278a62f2
Remove _error page from blocked pages ( #6579 )
2019-03-08 13:00:09 -06:00
Tim Neutkens
d3e92cceec
Remove more terser-webpack-plugin code ( #6575 )
2019-03-08 16:26:20 +01:00
JJ Kasper
ff7299d184
Update react-error-overlay and use reportRuntimeError ( #6577 )
...
Fixes : #5481
2019-03-08 16:24:15 +01:00
HelloRusk
1930d7364d
fix unnatural spaces in README ( #6572 )
...
should use 2 spaces instead of 4
2019-03-08 16:06:13 +01:00
JJ Kasper
a3356c5edb
Try restarting chromedriver on timeout ( #6566 )
...
Also added `HEADLESS` env var for local testing
2019-03-08 10:23:57 +01:00
JJ Kasper
17806e2bb2
Add links for now info to parameterized-routing example ( #6565 )
2019-03-07 13:38:42 -06:00
Tim Neutkens
654860e7b5
v8.0.4-canary.9
2019-03-07 19:57:48 +01:00
Tim Neutkens
3f9a44996a
Remove more terser code ( #6564 )
...
* Remove chunkfilter and extractcomments options as they’re unused
* Remove unused variable
* Remove cacheKeys option, improve filter
* Remove more terser code
* Remove unused variable
2019-03-07 19:45:49 +01:00
k-kawakami
d9060f5abd
Remove trailing spaces ( #6547 )
...
### changes
#### remove trailing spaces
When I was using example I noticed trailing spaces.
So, this PR removes the trailing spaces of json file, README, and others.
`examples/with-jest-typescript/src/modules/cars/Overview.tsx` also has it, but this time it did not change as tslint error occurs at commit.
2019-03-07 17:40:08 +01:00
JJ Kasper
e112df4319
Throw error when router methods are used in SSR ( #6550 )
...
* Update to use the correct router instance in withRouter so error is
thrown when router method is used during SSR
* Revert changes to with-router and add error to methods on
direct router instance
* Extend Router and override methods with error instead
* Update ServerRouter, add err.sh, and add test
2019-03-07 17:13:38 +01:00
Tim Neutkens
9b62f208bb
Remove cacheKeys option and improve filtering ( #6559 )
...
More cleanup of terser-plugin.
2019-03-07 14:28:32 +01:00
Tim Neutkens
51fc26161d
Update README.md
2019-03-07 13:20:46 +01:00
Marton Langa
5f003105ef
Change redirect status to 302 ( #6562 )
...
As discussed in #6546 , changing redirect status to 302, so the redirect is only temporary
2019-03-07 12:51:45 +01:00
Roman Ernst
cf0552a395
Fix wrong env key in build time configuration docs ( #6561 )
...
Env-Key definition should be constantly either `customEnv` or `customKey` - I went for `customKey`.
2019-03-07 12:51:08 +01:00
Santhosh Sundar
1e8017989d
fixed typo in code comment ( #6555 )
...
This PR fixes a typo in one of the comments in the "Customizing renderPage" code example.
2019-03-07 11:45:08 +01:00
Marton Langa
0a4f0e6356
Fix page not loading with ending the request ( #6546 )
2019-03-07 11:29:25 +01:00
Tim Neutkens
abad29b413
Remove chunkfilter and extractcomments options as they’re unused ( #6549 )
...
Remove some obsolete code paths.
2019-03-06 21:28:42 +01:00
Ryan Hinchey
5dbbf79abc
changing an url to a url in the readme ( #6540 )
...
Thanks so much for putting this amazing framework together!
I was reading through the docs and noticed how `an URL` was a little awkward to read. This is an incredibly small update to the readme to change the wording to `a URL`.
2019-03-06 13:16:34 +01:00
Tim Neutkens
f177ce4291
v8.0.4-canary.8
2019-03-06 13:10:21 +01:00
JJ Kasper
fb08e8a1fc
Add workflow with next-stats-action ( #6535 )
2019-03-05 16:59:59 +01:00
Tim Neutkens
0088083f52
Check if esmodules is supported before enabling useESModules ( #6534 )
...
* Check if esmodules is supported before enabling useESModules
* Remove console.log
2019-03-05 16:57:07 +01:00
Tim Neutkens
e10096cd0c
Add preload notice ( #6532 )
...
Fixes #6517
2019-03-05 14:55:05 +01:00
Connor Davis
861edad459
Implement Recursive Delete ( #6489 )
...
Removes `rimraf` for a smaller custom lib
Benchmarks (in ms):
```
rimraf 1
518.536376
rimraf 2
416.112451
rimraf 3
451.905842
rimraf 4
525.117395
rimraf 5
434.230384
---- Average: 469.18ms
-----------
recursive delete 1
121.493979
recursive delete 2
130.335272
recursive delete 3
149.798316
recursive delete 4
182.184688
recursive delete 5
130.346207
--- Average: 142.83ms
```
`recursiveDelete` finishes in ~30% of the time it takes `rimraf` (3.3 times faster)
2019-03-05 14:01:42 +01:00
Roger Hutchings
068dd825f3
Add Grommet example ( #6529 )
...
Adds a new example showing how to use the [Grommet UI library](https://grommet.io/ ) with Next.js.
2019-03-05 14:00:57 +01:00
JJ Kasper
d9c462bf37
Update timeout for plugin-mdx test ( #6528 )
2019-03-05 11:39:25 +01:00
GaelS
2e00ebfe6c
Update login.js ( #6527 )
...
Playing with this example, I realized that it was not doing what I expected in case of an error coming back from the API (e.g : throw properly the error and save it in the state).
2019-03-05 01:07:22 +01:00
JJ Kasper
491f9a2c49
Move next-mdx from zeit/next-plugins to zeit/next.js ( #6443 )
...
At request of @timneutkens I moved the `next-mdx` plugin from the next-plugins repo into Next.js. Also fixed small typo in README under setup.
2019-03-04 18:02:45 +01:00
Jess Telford
a3d94a56a4
[examples/with-sentry] Better docs + correct dependencies ( #6521 )
2019-03-03 23:09:18 +01:00
Tim Neutkens
8f25bc6871
v8.0.4-canary.7
2019-03-03 20:47:05 +01:00
JJ Kasper
c3b1f31ed5
Fix /index/index.js route not emitting the right route in production ( #6516 )
...
Also added integration test in production for this
Fixes : #6285
2019-03-03 19:36:32 +01:00
JJ Kasper
4c35b7e704
Add warning on stalled page load possibly from too many tabs open ( #6514 )
...
* Add warning on stalled page load possibly from too many tabs open
* Add test for stalled warning
* Update onDemand pinging to close on routeChangeStart and added
warning when onDemand handler detects multiple tabs from the same
browser
2019-03-02 16:51:14 -06:00
JJ Kasper
5034e4e1de
Updated entries to not output _app and _document in serverless ( #6512 )
...
* Updated entries to not output _app and _document in serverless
* Add test
2019-03-02 13:53:13 -06:00
Mike Francis
8e807ca203
Added with-typescript-styled-components example ( #6511 )
...
* Added with-typescript-styled-components example
* Fix linting errors
2019-03-02 15:30:11 +01:00
JJ Kasper
89ad01cab8
Update with-zones example to support Now v2 / serverless ( #6485 )
...
Fixes : #6468
2019-03-02 01:11:37 +01:00
Joe Haddad
e52508fbf6
Consolidate traditional and AMP rendering methods ( #6506 )
...
* Format a few documents
* Drop `renderToAMP` and `renderToAMPHTML`
2019-03-01 15:35:43 -05:00
Joe Haddad
494889acd8
Format a few documents ( #6505 )
2019-03-01 14:51:13 -05:00
JJ Kasper
a9c398854a
Add console.error before exit on uncaughtException ( #6504 )
2019-03-01 13:18:33 -06:00
Joe Haddad
436fc54212
Correct yarn.lock ( #6503 )
2019-03-01 13:59:30 -05:00
Joe Warren
5fd7b85280
Add graphql-hooks example ( #6482 )
...
Adds an example app using [graphql-hooks](https://github.com/nearform/graphql-hooks ) that started life as the with-apollo example app. It uses the same graph.cool backend, mostly to demonstrate how similar it is.
2019-03-01 18:21:03 +01:00
JJ Kasper
912e45b506
Show error when router
or Component
are returned in _app.js ( #6487 )
...
* Show error when `router` or `Component` are returned in _app.js
getInitialProps
* Update to only show error in dev mode
* Update packages/next-server/server/render.tsx
Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>
2019-03-01 18:08:27 +01:00
Tim Neutkens
a169017c87
Add docs for named exports using dynamic ( #6502 )
2019-03-01 17:28:29 +01:00
Anton Egorov
5db0bef98e
update webpack-dev-middleware to fix querystring in file names ( #6498 )
...
Fixes #6481
2019-03-01 17:28:09 +01:00
Tim Neutkens
8eb813a640
await config ( #6488 )
...
* await config
* update config-promise-error test
* Actually update test
2019-03-01 01:09:07 +01:00
Joe Haddad
330bedacc7
Add Babel plugin that fixes className for Amp elements ( #6486 )
...
This is a simple Babel plugin that overwrites certain attributes for `amp-` elements.
2019-02-28 23:04:29 +01:00
Joe Haddad
a8d7a6ce42
v8.0.4-canary.6
2019-02-28 15:38:12 -05:00