1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

1655 commits

Author SHA1 Message Date
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
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
Thomas Kolar 6089377c6b Fix/Update react-with-styles & aphrodite example (#3224)
* chore(package): Update dependencies for aphrodite and react-with-styles

* refactor: Update example to current version of react-with-styles
2017-11-01 19:53:45 +01:00
Li Weinan 190853b4ff Support de-deduping head tags by setting key (#3170)
* Support de-deduping head tags by setting key

* move dedupe logic to `unique` function

* fix head tag deduping logic

* remove console.log

* use `toContain` assertions

* update de-duping head tags section in README
2017-10-31 22:52:51 +01:00
Thongchai Kitiyanantawong ba740460c8 Add more example links for CSS preprocessor solution (#3213)
* Add more example link for CSS preprocessor solution

* Change deprecated link
2017-10-31 08:58:50 +01:00
Tim Neutkens c8059b9f12 Make sure linting passes 2017-10-31 08:58:00 +01:00
Kevin Decker 6e44cdef5f Expose mechanism to monitor render events (#2655)
* Allow custom clientBootstrap entrypoint

This allows for customization of the client global bootstrap.

* Expose render event emitter to client

* Include client entry point in npm package
2017-10-30 16:01:40 +01:00
Kevin Decker 53a2c5a7fc Combine source maps (#3178)
* Propagate source maps through combine assets step

* Use constant development build id

* Move combine assets step before uglify step

This ensures that uglify will catch these changes.

* Move dynamic chunks step before uglify step

This ensures that uglify will catch these changes.

* Use chunk templates for page and dynamic chunks

This is a little more in line with how webpack generates its bootstrap and should have better compatibility with other plugins and source map generation.

* Register combined source map with chunks

This ensures that a sourcemap is fully generated.

* Do not minimize combined map inputs
2017-10-30 15:57:35 +01:00
Kevin Decker 1e15105837 Output webpack build stats as webpack-stats.json (#2828) 2017-10-30 15:55:44 +01:00
Remy Sharp 4c18678d54 Create example of activeClassLink using withRouter (#3188) 2017-10-30 15:24:31 +01:00
Tim Neutkens c927c4f1ce Release 4.1.4 2017-10-29 01:00:16 +02:00
Tim Neutkens 0bdcb8ddc2 Add note about NODE_ENV being set automatically 2017-10-29 00:58:18 +02:00
Tim Neutkens 01780fe789 Make sure NODE_ENV is production for react-dom to optimize 2017-10-29 00:58:17 +02:00
Ismael Martínez 015d06a331 Upgrade React for examples with next@latest (#3196) 2017-10-29 00:58:17 +02:00
Remy Sharp 8578038daa Change _error.js example to use err prop (#3197)
The `jsonPageRes` isn't always there, whereas `err` is, and when used,
provides a consistent statusCode in the client when compared to the
server.
2017-10-29 00:58:17 +02:00
Sebastian 741f211331 with-apollo example using Apollo 2 (#3180)
* Updated dependencies related to Apollo and React.

* Updated libs with Apollo 2 new set of modules.

* Updated to Apollo 2 react integration modules.

* Updated withData to separate apollo state from the app's state.
2017-10-29 00:58:17 +02:00
m-allanson b937ed3644 Remove extra word (#3193) 2017-10-29 00:58:17 +02:00
Wes Bos 4314802422 Update styled components for React 16 (#3187)
Next 4 only works with React 16, so for this example to work we need an update.
2017-10-29 00:58:17 +02:00
Tim Neutkens 436a2ac73b Release 4.1.4-canary.2 2017-10-29 00:58:17 +02:00
Tim Neutkens 1f899d6b60 Update deploy keys 2017-10-29 00:58:17 +02:00
Tim Neutkens cd7bfe890d Release 4.1.4-canary.1 2017-10-29 00:58:17 +02:00
Arunoda Susiripala a9ccf1e147 Make sure benchmark runs in the production mode. 2017-10-29 04:25:32 +05:30
Tim Neutkens 72827d25cb Add note about NODE_ENV being set automatically 2017-10-29 00:39:45 +02:00
Tim Neutkens 152c2c2af3 Make sure NODE_ENV is production for react-dom to optimize 2017-10-29 00:19:59 +02:00
Ismael Martínez 78aa068a12 Upgrade React for examples with next@latest (#3196) 2017-10-28 09:26:00 +02:00
Remy Sharp 98b48fb3ec Change _error.js example to use err prop (#3197)
The `jsonPageRes` isn't always there, whereas `err` is, and when used,
provides a consistent statusCode in the client when compared to the
server.
2017-10-28 09:23:15 +02:00
Sebastian c0eca35810 with-apollo example using Apollo 2 (#3180)
* Updated dependencies related to Apollo and React.

* Updated libs with Apollo 2 new set of modules.

* Updated to Apollo 2 react integration modules.

* Updated withData to separate apollo state from the app's state.
2017-10-28 09:19:56 +02:00
m-allanson 814b1821e6 Remove extra word (#3193) 2017-10-27 13:19:30 +02:00
Wes Bos 2d3192e4b8 Update styled components for React 16 (#3187)
Next 4 only works with React 16, so for this example to work we need an update.
2017-10-26 21:29:53 +02:00
Tim Neutkens 2ec397b356 Release 4.1.4-canary.2 2017-10-23 22:15:26 +02:00