AlbertGao
48e6decc2d
Fix #3700 Added examples for next-sass ( #3729 )
...
* #3700 Add examples for next-sass
* #3700 Use React.Fragments and more
* Fix #3700 remove some keys to make more clear
* Fix #3700 , change to without-css-modules
* Replace PageWrapper with _document for more concise code. #3700
2018-02-16 10:51:13 +01:00
Fumihiro Xue
972db9ba43
Fix #3814 ( #3815 )
...
* fix: module name typo
* fix: issue #3814
2018-02-16 10:49:25 +01:00
Kye Hohenberger
523b61569b
with emotion example - hoist styles out of the index page component ( #3821 )
2018-02-16 08:48:21 +01:00
Juan Caicedo
a7741341cb
Fix links for next css ( #3820 )
2018-02-16 08:41:40 +01:00
Arunoda Susiripala
30b0be1aaf
Add a test for reloading the page on page script error with prefetch ( #3811 )
...
* Add a test for reloading the page on page script error with prefetch.
* Click the correct link.
2018-02-15 11:22:11 +01:00
Brent Clark
24d862cd6b
Remove console.log derp ( #3810 )
...
* fix copy pasta issue
* remove console.log derp
* resolve merge conflicts
2018-02-15 11:02:33 +01:00
Jerome Fitzgerald
a0798fd9ad
[chore] react-hot-loader@4.0.0-beta.22 (patch) ( #3808 )
2018-02-14 23:58:44 +01:00
thom
ebe39a63e6
Display errors when using glamor/server in a custom document ( #3804 )
2018-02-14 18:05:02 +01:00
Jerome Fitzgerald
c92bc858f7
[refactor] poweredByHeader ( #3716 ) ( #3807 )
...
This reverts `fb7c862` per @timneutkens
- Removes the errors/*.md associated
- Puts back `poweredByHeader` for `next.config.js`
- Reincorporates test:
X-Powered-By header
✓ should set it by default (3ms)
✓ should not set it when poweredByHeader==false (5ms)
Also tested with `yarn link` and verified.
2018-02-14 18:02:48 +01:00
Tim Neutkens
6ac25b02dc
Release 5.0.1-canary.5
2018-02-14 17:53:14 +01:00
Tim Neutkens
340b49c571
Document pageExtensions
2018-02-14 17:52:11 +01:00
Tim Neutkens
903f15acc4
Make pageExtensions configurable ( #3787 )
...
* Make page require faster
* Add windows search/replace
* Use normalize instead of resolve
* Add remaining tests
* Use sep instead of /
* Add test files
* Make component require faster
* Add console.error
* Make pageExtensions configurable
* Remove resolve.js
* Add test for `.jsx`
* Also resolve `/nav/index` and the likes
* Normalize page paths
* Use config passed off by webpack
2018-02-14 20:50:41 +05:30
Tim Neutkens
64379ee342
Get config from one location ( #3801 )
...
* Remove obsolete clean.js
* Remove unused root-module-relative-path
* Single source of configuration
* Fix next export
2018-02-14 20:47:41 +05:30
David Calhoun
4469bd056c
Fix react-native-web example typo ( #3802 )
2018-02-14 15:34:35 +01:00
Arunoda Susiripala
9a4226c1ec
Add test case for reloading the page on page script error ( #3798 )
...
* Add a test for reloading the page on page script error.
* Add a comment.
2018-02-14 11:13:32 +01:00
Sitian Liu
6de3ff9d78
Remove redux comment ( #3792 )
...
Apollo client 2.0 is no longer implemented with redux
2018-02-13 23:20:22 +01:00
David Calhoun
8b1458af4f
Add with-react-native-web example ( #3781 )
...
* Add with-react-native-web example
Showcase the required work to use
[react-native-web](https://github.com/necolas/react-native-web ) with
Next.js.
* Repair lint warnings
2018-02-13 17:42:31 +01:00
Arunoda Susiripala
fc3b3a4101
Implement proper error handling ( #3749 )
...
* Render error on the client without fetching additional scripts.
* Fix test cases.
* Remove unused '_document' page in ensurePage logic
* Remove console.error when page is not found
2018-02-13 16:13:22 +01:00
Kelly Burke
68f7e20477
Add example to #recipes ( #3789 )
2018-02-13 15:20:54 +01:00
Tim Neutkens
c8da345765
Make page require faster ( #3776 )
...
* Make page require faster
* Add windows search/replace
* Use normalize instead of resolve
* Add remaining tests
* Use sep instead of /
* Add test files
* Make component require faster
* Add console.error
2018-02-13 14:27:52 +01:00
Abel Tamayo
024d0c70ff
Update README.md ( #3784 )
...
Detailed instructions for configuring authentication.
2018-02-13 13:20:16 +01:00
vuldin
74866edc40
fix setInterval usage in mobx examples to work in firefox ( #3769 )
2018-02-12 11:02:05 +01:00
Brent Clark
a8d07af355
use null instead of empty string for coerced className ( #3771 )
2018-02-12 10:10:01 +01:00
Fabrício Matté
e3079187fd
Fix with-redux-saga server rendered clock, fixes #3760 ( #3762 )
...
Also updated the tick interval to one second, the clock works better this way and this is how the with-redux example is currently implemented as well.
2018-02-11 19:55:16 +01:00
Shogun Sea
7d7deca1b3
With redux example clock interval fix ( #3756 )
2018-02-11 13:36:33 +01:00
Zoltan Kochan
5daf3830db
fix: add missing dependency to package.json ( #3753 )
...
webpack-sources is used in code but not declared in package.json
ref https://github.com/pnpm/pnpm/issues/891
2018-02-11 17:39:06 +05:30
Tim Neutkens
53cb345d4c
Don’t quote automatically quoted string
2018-02-09 22:19:08 +01:00
Tim Neutkens
ab43e9efc5
Load pathname correctly
2018-02-09 21:51:57 +01:00
Tim Neutkens
b615564c2a
Release 5.0.1-canary.4
2018-02-09 21:25:37 +01:00
Tim Neutkens
856700d576
Register the right path
2018-02-09 21:24:50 +01:00
Tim Neutkens
90db1c2545
Release 5.0.1-canary.3
2018-02-09 21:00:04 +01:00
Tim Neutkens
9a10461150
Don’t include script that we know is going to error ( #3747 )
...
* Don’t include script that we know is going to error
* Add check to make sure page script is not included
* Loop over script tags, cheerio fails on /
2018-02-09 21:25:45 +05:30
Ángel M
2ba6a9aff7
Fix svg-components example and improve babel example file ( #3746 )
2018-02-09 15:41:09 +01:00
astenmies
b8076a84a0
With DraftJS example ( #3736 )
2018-02-09 09:40:32 +01:00
Tim Teeling
1b473e478d
Fix with-polyfills example for Next 5 ( #3740 )
2018-02-09 09:31:30 +01:00
Yevhen Uzhva
73bf0ab162
[Fix] with-global-stylesheet example ( #3741 )
2018-02-09 09:29:10 +01:00
Tim Neutkens
34670bbd3d
Upgrade react-hot-loader ( #3733 )
2018-02-08 16:05:06 +05:30
Arunoda Susiripala
882efbbac3
Release 5.0.1-canary.2
2018-02-08 14:23:41 +05:30
Arunoda Susiripala
efe9afb2be
Remove aliasing of react and react-dom ( #3731 )
...
* Remove aliasing of react and react-dom
We need that functionality, but React does it automatically.
So, we don't need to do that.
This also fixes #3711 otherwise we need to add a few more aliases.
* Revert "Remove aliasing of react and react-dom"
This reverts commit 929d9567bbdc3f369f13888e846e848a25c9c261.
* Allow to import modules like 'react-dom/server'.
We do this by doing an extact match for 'react' and 'react-dom'
2018-02-08 14:21:01 +05:30
Tim Neutkens
d7941438dd
Release 5.0.1-canary.1
2018-02-07 22:28:19 +01:00
Tim Neutkens
3e1a70a30a
Upgrade styled-jsx ( #3725 )
2018-02-07 17:08:20 +01:00
Scott Polhemus
d015bac65f
Copy static assets from .next folder when exporting ( #3719 )
...
* Copy .next/static directory when exporting
* Use nextDir
2018-02-07 16:24:07 +05:30
Martin Groen
955cc82736
Serve static /_next/static/*
relative from dir
directory ( #3722 )
2018-02-07 14:05:35 +05:30
Björn Tegelund
de6741f886
Fix typo in withRouter ( #3723 )
2018-02-07 13:39:23 +05:30
Bonggyun Lee
87ab61eba5
example/with-typescript ( #3698 )
...
* example/with-typescript2
* apply standard js style
* remove unnecessary file & code
* fix link url
* replace with-typescript
2018-02-06 11:06:48 -05:00
Olivier Tassinari
9404beb12f
Use latest instead of zones for with-zones example ( #3710 )
2018-02-06 10:09:01 -05:00
Romain Quellec
2a845a61b7
Correct url to blog post ( #3709 )
2018-02-06 15:22:32 +01:00
Olivier Tassinari
2473b55871
[ssr-caching] Only cache 200 status requests ( #3708 )
...
* [ssr-caching] Only cache 200 requests
I'm assuming caching an error page is a bad pattern.
* Update server.js
2018-02-06 17:51:49 +05:30
Tim Neutkens
f9b52cfcb6
Include next/dist/pages instead of exclude (patch) ( #3704 )
...
* Move security related test cases into a its own file.
* Removes the unused renderScript function
* Add a nerv example. (#3573 )
* Add a nerv example.
* Fix for indentation/style
* Fix for name
* Release 5.0.0
* Add multi-zones docs. (#3688 )
* Include next/dist/pages
* Fix linting
2018-02-06 17:39:41 +05:30
Bertrand Marron
8942d20b8c
Move react{-dom,} to the common chunk in production too ( #3690 )
...
Without this, react-dom gets included in multiple pages.
2018-02-06 14:38:53 +05:30