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

32 commits

Author SHA1 Message Date
Ives van Hoorne 5ab7463b93 Exploration of different config + expose webpack config (#222)
* Use next.config.js instead of package.json

* Remove irrelevant comment

* Integrate with custom webpack config

* Include hotReload option

* Remove async/await for getConfig

* Read package.json, show warning when webpack in config is defined

* Prepend warning message with WARNING

* Update log statements

* Documentation

* Restart server on change of config

* Fix process handling and cases where there is no config

* Also restart server when config file gets deleted

* Changed second parameter of webpack to config

* Support for returning Promise

* Update documentation, fix bug with webpack config

* Remove package.json, cdn and hotReload from config
2016-12-17 10:38:11 -08:00
Guillermo Rauch 289feeda43 Update README.md 2016-12-16 12:23:32 -08:00
Guillermo Rauch 8abcb81ec3 warn about master README 2016-12-16 12:22:55 -08:00
Arunoda Susiripala 36abdc77c5 Prefetch pages with Service Workers (#375)
* Register the service worker.

* Update prefetcher code to do prefetching.

* Implement the core prefetching API.
support "import <Link>, { prefetch } from 'next/prefetch'"

* Implement a better communication system with the service worker.

* Add a separate example for prefetching

* Fix some typos.

* Initiate service worker support even prefetching is not used.
This is pretty important since initiating will reset the cache.
If we don't do this, it's possible to have old cached resources
after the user decided to remove all of the prefetching logic.
In this case, even the page didn't prefetch it'll use the
previously cached pages. That because of there might be a already running
service worker.

* Use url module to get pathname.

* Move prefetcher code to the client from pages
Now we also do a webpack build for the prefetcher code.

* Add prefetching docs to the README.md

* Fix some typo.

* Register service worker only if asked to prefetch
We also clean the cache always, even we initialize
the service worker or not.
2016-12-15 11:13:40 -08:00
Chris 204d335273 update example with correct syntax (#383)
- was using `]` instead of `}`
2016-12-13 14:36:20 +09:00
Guillermo Rauch 0923a0bd83 Update README.md 2016-12-08 09:16:05 -08:00
Leo Lamprecht 51fe1991c0
Empty line after imports 2016-12-06 21:41:33 +01:00
Matheus Fernandes 982a01cd60 Update Future directions (#332) 2016-12-03 09:13:40 +09:00
Sébastien Dubois 9950ee73a3 Remove line break between badges (#330) 2016-12-02 23:38:02 +09:00
nkzawa 6ad1e23167 Merge branch 'master' into pr/259 2016-12-02 10:35:07 +09:00
Naoyuki Kanezawa c7ba914f52 Handle runtime errors (#268)
* display runtime errors by error-debug

* server: fix status

* render Error component on client error

* server: render runtime errors of error template

* server: handle errors of error template on render404

* server: add a comment

* server: refactor renderJSON

* recover from runtime errors

* _error: check if xhr exists

* _error: improve client error

* _error: improve error message
2016-11-24 23:03:16 +09:00
Benjamin Coe c56fde89c3
chore: add test coverage 2016-11-22 10:11:23 -08:00
Ivan Storck 3af5a0188a Instructions for images and static assets (#235)
* Instructions for images and static assets

Helpful pointer in the README about `/static` directory

* Update README.md

* remove reference to components directory

* Update README.md
2016-11-17 08:03:04 -08:00
Guillermo Rauch 03db7d78a6 Update README.md 2016-11-13 08:50:10 -08:00
nkzawa fe9e72ac16 README: add travis badge 2016-11-06 03:21:32 +09:00
nkzawa 060480f212 Merge branch 'patch-3' of https://github.com/timoxley/next.js into timoxley-patch-3 2016-11-04 20:37:36 +09:00
Naoyuki Kanezawa d1a0309af9 Add pathname and query to the argument of getInitialProps (#194)
* pass pathname and query to getInitialProps on both server and client

* README: describe about the contet object of getInitialProps
2016-11-04 01:05:03 -07:00
Tim Oxley d8cf0ba7c4 Readme: Explain where & when getInitialProps executes 2016-11-02 13:42:06 -07:00
Sébastien Dubois c4d626108e Slack badge (#176) 2016-11-02 12:02:56 -07:00
Guillermo Rauch c3ae04b69a Update README.md 2016-10-31 18:13:42 -07:00
Guillermo Rauch 07dbf2a20c Update README.md 2016-10-31 18:13:13 -07:00
Brandon Bayer 47d0571341 README: add more help on using Glamor (#165) 2016-10-31 16:32:51 +09:00
nkzawa dbc125f7e3 README: fix instruction 2016-10-27 08:07:33 +09:00
Nathan Agrin 06b8e5e676 Fix userAgent reference in getInitialProps example (#81)
The getInitialProps example references `req.header.userAgent`, which does not exist. `req.headers['user-agent']` does.
2016-10-26 19:19:28 +09:00
nkzawa eb74ff4bf9 README: fix missing links 2016-10-26 19:04:01 +09:00
Jeff Bowen 844b62f57e README: Typo & grammar suggestion (#69)
* Replace _specially_ with _especially_
* Parens around that clause
2016-10-26 18:49:48 +09:00
Andrew Van Slaars 1602a45b11 Updated readme to reflect proper name of url.pathname property (#66) 2016-10-26 18:49:05 +09:00
nkzawa b287d70fd1 README: grammer fix 2016-10-26 18:47:41 +09:00
nkzawa 5558aa45f5 README: fix a link 2016-10-26 18:42:39 +09:00
Pascal Borreli b5f8f5054f Fixed typos (#74) 2016-10-26 09:19:05 +02:00
nkzawa d9ea4ce312 readme: fix the instruction of running next 2016-10-26 10:46:58 +09:00
Leo Lamprecht 6482e8f7b2
Capitalized important files 2016-10-25 20:43:56 +02:00
Renamed from Readme.md (Browse further)