Tim Neutkens
36f6179a52
Check if tmpdir is writeable. Not full path
2017-12-02 09:52:34 -08:00
Tim Neutkens
8cd6bd3fc3
Add check for writeable directory ( #3370 )
...
* Add check for writeable directory
Followup of https://github.com/zeit/now-cli/issues/175
* Add link to docs
2017-12-02 18:13:39 +01:00
Benjamin Atkin
57c6f80d72
use underscore in node_modules in travis config ( #3369 )
...
The cached directory for node_modules has a dash. AFAIK node uses an underscore, not a dash, for node_modules.
Alternatively, remove it from cached directories if the typo isn't causing any problems.
2017-12-02 18:12:57 +01:00
Tim Neutkens
df4974eac8
Add runtime environment example ( #3371 )
2017-12-02 18:08:53 +01:00
Sergio Xalambrí
32eb6b7718
Add with Portals example ( #3372 )
2017-12-02 18:02:22 +01:00
Roman Vanesyan
01f05d8cbc
Another round of removing extra <div> ( #3373 )
2017-12-02 18:00:40 +01:00
Adam Stankiewicz
eefab8fb3e
Disable comparisons to fix mapbox-gl bundling ( #3346 )
2017-11-28 14:19:14 +01:00
Adrian Li
f9c6e12037
Update reason example to version 3 syntax and fix errors ( #3347 )
...
* update dependencies
* add bsconfig refmt version
* update to new syntax
* add dependency on concurrently for dev convenience
* fix dev script
2017-11-28 14:15:03 +01:00
Tim Neutkens
c9401214db
Fix linting
2017-11-25 12:03:25 +01:00
Jess Telford
52bf00eda3
Update to uglifyjs-webpack-plugin@1.1.1 ( #3329 )
2017-11-23 22:25:09 +01:00
Roman Vanesyan
7a08e1b5f8
Remove extra div ( #3327 )
...
* Replace extra div with React fragment.
* Fix linter
* Replace extra div with React fragment.
* Fix linter
* fix script tag, backport nonce attribute
2017-11-23 22:12:52 +01:00
Brian Dombrowski
5ede8c9dc3
More complete with-apollo-and-redux example with dynamic post route ( #3223 )
...
* More complete with-apollo-and-redux example with dynamic post route
* Removed commented out code
2017-11-23 14:05:51 +01:00
Jonas Budelmann
742fa6590c
Fix statically exported pages from hanging ( #2930 )
...
* fix script loading errors not reported if exported
* fix lint
2017-11-23 14:05:17 +01:00
Saro Vindigni
8eb8034236
remove relative path to babel-runtime ( #3119 )
2017-11-23 14:02:09 +01:00
Lucas Rosa
fc335ac36c
Add example with tailwind css ( #3317 )
...
* Add Tailwind css example
* Fix read me
* Add create-next-app setup to read me
2017-11-23 13:48:34 +01:00
Max Scher
f0eacf66ea
Add data node to serverState declaration ( #3321 )
...
The serverState variable definition did not include the data node, which
may cause parsing errors on the client-side.
- add data: { } on line 23 within the apollo: { } object
2017-11-23 13:46:33 +01:00
Kenneth Auchenberg
20af8cdabe
Add option to pass --inspect flag to enable server-side debugging ( #3294 )
...
* Add option to pass --inspect flag
* Re-add shebang's
* Tweak spacing
* Use global 'node' when spawning process
2017-11-20 15:51:46 +01:00
Tage A. L. K
c6d9ab7563
with-apollo-auth updated for Apollo 2.0 ( #3278 )
...
* Updated for Apollo 2.0
* Updated for commit: ccb188a
* Simplified serverState
Updated with danistefanovic's comment. Looks better.
* Revert "Simplified serverState"
This reverts commit 1b543a35909dcfe401c753cb2f71760180087057.
* Simplified server
Updated with Statedanistefanovic's comment.
2017-11-17 08:23:52 +01:00
Thomas Vogel
abe0aebcc0
updated with-apollo example to update option API ( #3296 )
2017-11-16 11:18:25 +01:00
Anders D. Johnson
7c9d350091
docs(readme): add missing period ( #3295 )
2017-11-16 10:05:42 +05:30
Tim Neutkens
03aae1f9fc
Release 4.2.0-canary.1
2017-11-15 13:22:41 +01:00
Tim Neutkens
6977d61ebe
Merge branch 'master' into canary
...
# Conflicts:
# .travis.yml
2017-11-15 13:20:46 +01:00
Divyendu Singh
ccb188ab6b
Update withData.js - support withRouter HOC ( #3286 )
...
Add support for using withRouter as HOC with this example.
Passing router context manually fixes this, based on, https://github.com/zeit/next.js/issues/2908#issuecomment-338244804
2017-11-15 10:44:06 +01:00
Elliot Hesp
636c428a05
Update deprecated firebase method ( #3277 )
...
getToken is now deprecated, you'll get the following message if using the previous code:
firebase.User.prototype.getToken is deprecated. Please use firebase.User.prototype.getIdToken instead.
2017-11-15 10:35:30 +01:00
Nghiệp
c0581a40cc
Update README.md for with-shallow-routing example ( #3285 )
2017-11-15 09:55:41 +01:00
Tomek
5260736e33
example with-redux-observable ( #3272 )
...
* example with-redux-observable
* fix styling with js standard-style
2017-11-13 20:37:43 +01:00
Brice BERNARD
45e26f22b3
Fix tsx workaround, bootstrap next.d.ts, add tslint deps ( #2885 )
2017-11-13 13:59:00 +01:00
Vinicius Camargo
fbd4f03254
Update the custom-server-express with an req.params example ( #3258 )
2017-11-13 12:22:10 +01:00
yuyaohshimo
e67d17ef84
Add kea example ( #3262 )
2017-11-13 12:21:11 +01:00
Kai Yen
d72d3c09ef
Fixed how credentials opt is passed to HttpLink ( #3269 )
...
Prior to react-apollo 2.0 createNetworkInterface accepted the credentials option in {opt: {credentials: 'policy'}}. HttpLink accepts it as {credentials: 'policy'}.
2017-11-13 12:20:59 +01:00
Jess Telford
80a1603189
Use uglify-es for minification ( #3150 )
2017-11-13 12:19:51 +01:00
Tim Neutkens
ccaf640b47
Document router events the way they are used ( #3268 )
2017-11-11 20:54:50 +01:00
Isaac Ellmen
dc07cd1b19
Set Cache-Control max-age to a year ( #3247 )
2017-11-09 21:27:01 +01:00
Tomas Roos
629d0a261b
messages are availble within initialProps ( #3252 )
...
This has never been working, we based our intl + locale lookups out of this example and found out when translations wasn't working on page transitions due to the fact that messages gets set to undefined because its trying to destruct in the incorrect level
2017-11-08 20:37:52 +01:00
Leo Lamprecht
92cc28a448
Canary-specific Travis CI config
...
https://leo.im/2017/canary
2017-11-06 10:45:46 +01:00
Leo Lamprecht
7ee66def32
Stable-specific Travis CI config
...
https://leo.im/2017/canary
2017-11-06 10:45:25 +01:00
cinos
983455ed51
Update package.json ( #3246 )
...
Upgrade i18next & react-i18next
2017-11-06 08:51:16 +01:00
Mattias Hällkvist
3eac0bc35d
Make pages glob pattern overridable ( #3195 )
2017-11-05 22:27:31 +01:00
Tim Neutkens
1424b84c98
Allow overriding Content-Type ( #3242 )
...
* Allow overriding Content-Type
* Mock getHeader
2017-11-05 20:17:03 +01:00
Sam Gluck
828dac7d61
Use fs.realpath to get actual project directory ( #3243 )
...
* resolve base dir symlink
* fix method name
2017-11-05 20:05:15 +01:00
Tim Neutkens
6952d58c4e
Make sure examples adhere to code style
2017-11-05 19:47:12 +01:00
Juan Gallo
e1d9ae27f0
only-client-render-external-dependencies example ( #3229 )
2017-11-05 17:20:24 +01:00
Tim Neutkens
18f8ab392a
Merge branch 'master' into canary
...
# Conflicts:
# examples/with-apollo/lib/initApollo.js
# examples/with-apollo/package.json
# examples/with-react-with-styles/package.json
# examples/with-static-export/package.json
# package.json
2017-11-05 11:01:59 +01:00
Leandro Ardissone
a35e747e24
Added Sentry.io example ( #3215 )
...
* Added Sentry example
* Code style fixes
* Fixes docs + removed demo DSN + send error to comp
2017-11-04 15:06:16 +01:00
Leonardo Quixada
b41d177609
Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch. ( #3230 )
2017-11-04 15:05:16 +01:00
Bu Kinoshita
31ba48ada2
Upgrade styled-jsx to version 2.1.2 ( #3231 )
2017-11-04 15:04:26 +01:00
Andy Kenward
8bb31f0960
fix : example/with-noscript to use next@latest and react-dom ( #3237 )
...
* example with-noscript use next@latest
* fix : example/with-noscript react-dom/server usage
Since the update to react ^16.0.0 react-dom import location has changed
2017-11-04 11:25:39 +01:00
Andy Kenward
c29ec6bdd0
example/with-static-export update react & next dependencies ( #3238 )
...
`next@latest` instead of beta
react 16
2017-11-04 11:24:54 +01:00
Jerome Fitzgerald
a450502a0d
[fix] with-apollo: Cannot read property 'data' ( #3226 )
...
* [fix] with-apollo: Cannot read property 'data'
When we create the initial serverState, we need to create the
eventual construct of the Apollo Data to reside within
Later in the constructor this allows for the initApollo to either
be generated from SSR, or to init from scratch.
Fixes
> Cannot read property 'data' of undefined
> TypeError: Cannot read property 'data' of undefined
* [refactor] with-apollo: reduce init `serverState`
No need to explicitly set `data` as empty.
This trims up 4 lines. 😀 ️
2017-11-04 11:24:16 +01:00
Kitti Piyapan
28767c06d1
Change file name lib on example keep the same format ( #3227 )
...
Change file name format on folder lib like /examples/with-apollo and /examples/with-apollo-and-redux
2017-11-02 17:56:14 +01:00