Luis Alvarez D
82596124c6
Add cors example and update API routes docs ( #12390 )
2020-05-02 00:06:23 -04:00
Vincent Voyer
9590a8a977
docs(examples): upgrade next-iron-session to v4 ( #12398 )
2020-05-02 00:04:03 -04:00
Amandeep Singh
6dc28cff6d
Rectified typo ( #12366 )
2020-05-01 10:52:07 +02:00
Joe Haddad
fbea795ad9
[Fast Refresh] Redesigned Runtime Error Experience ( #12222 )
2020-04-30 10:50:25 -04:00
Taylor Bryant
0050432690
Update with-tailwindcss to use Tailwind CSS v1.4.0's new built-in purge option ( #12327 )
2020-04-30 09:51:37 +02:00
Aemiro Allison
c1aeaa482b
Fix typo ( #12224 )
2020-04-29 15:08:33 -05:00
Luis Alvarez D
1a7a14e5e2
[Examples] add Contentful example ( #12323 )
...
* Added example
* Readme fixes
* Preview mode fix
* Added rich test post content
* Added demo
* Apply suggestions from code review
* Update examples/cms-contentful/README.md
* Apply suggestions from code review
* Apply suggestions from code review
* Now → Vercel
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-29 13:19:49 -05:00
Tim Neutkens
5d8968f64a
Remove launched experimental options ( #12197 )
2020-04-25 21:00:41 +02:00
Arthur Petrie
e97cf15d58
[Example] update with-tailwindcss-emotion to tailwind 1.3.3 and emotion 11 + tailwind-ui plugin ( #11611 )
...
* [Example] update to tailwind 1.2.0 and emotion 11
* fix lint error
* Used different ways to style components
* update @tailwindcssinjs/macro package
remove clear cache script
update component comments
* update tailwindcss package to 1.3.3
* update dependencies
* update dependencies
* Updated readme, package.json, and removed unrequired imports
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-24 18:27:43 -05:00
Johan Nilsson
f3e6545bf5
Remove unnecessary export to make usage clearer. ( #12167 )
...
The method initializeStore is only being used locally by useStore.
By having this exported I initially thought the consumer would have to call this as setup globally and then call useStore as well for each consuming component.
Downloading the sample I saw it's only useStore that is being used by the consuming app and this could be made clear by not exporting initializeStore.
2020-04-24 11:31:03 +02:00
Aleksander
f42055ccb0
Update snapshot in with-jest example ( #12157 )
2020-04-24 11:21:48 +02:00
Shania
c601c9413d
Added a link to the next.config.js docs for the with-env-next-… ( #12153 )
2020-04-24 11:20:13 +02:00
Allen Hai
0c6ee2c760
Add userbase example ( #12150 )
...
* add userbase example
* update readme and add now.json with build.env
* update deploy button import path for testing
* update readme
* update readme with canary tree path for deploy button
* remove prepopulated test username + password
* Apply lint-fix
* add deployed demo link
* remove merge conflict arrows
* fix lint errors
* run yarn lint-fix
* add .env.example and update readme with config steps
* add dotenv and update next.config.js
Co-authored-by: Matthew Sweeney <mail@msweeneydev.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-04-23 19:56:42 -05:00
Sean Li
91adb8661d
Add example with Magic authentication ( #11810 )
...
* Add example with Magic and Passport.js
* Tweaked wording on README
* Fixed lint error
* Fixed prettier error
* Update examples/magic/README.md
Removed Download manually section from README
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Removed dependency on passport and express + cleanup
* Changed ZEIT brand to Vercel
* Updated readme instructions and secrets
* Renamed example
* Changed db comment
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-22 18:15:12 -05:00
Oxicode
7d2ff81207
fix variable ( #12114 )
2020-04-22 20:32:41 +02:00
Vania Kucher
39d9476992
Avoid bugs with native Date class ( #12098 )
2020-04-22 11:43:07 +02:00
dzigg
06f379ffad
Fix typo in example ( #12094 )
...
Line 4: "...special configuration file `next.js.config` and..."
Is it meant to be `next.config.js`?
2020-04-22 01:19:53 -04:00
Dustin Deus
d28ad8805a
Rosetta i18n example ( #11841 )
...
* add rosetta example
* add comment
* add example for ssr
* add debug example, rerender when i18n keys are added
* output active locale, fix interpolation, fix cases for SSR and CSR
* add useful comments
* address pr issues
* update name in readme
* improve wording
* rename folder
* fix prop typo, add redirects
* load specific i18n json file in getStatisProps
Dashboard dont use any ssr technique
* use ext
* improve example
* Updated example
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-21 12:49:18 -05:00
Joe Haddad
3fe4cbc677
Add Experimental React Refresh Example ( #12081 )
...
* Add Experimental React Refresh Example
* add basic readme
2020-04-21 12:28:09 -04:00
David Pike
600b78c098
fix postcss.config.js warnings ( #12070 )
...
* update postcss.config.js to fix warnings
Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.
Related PR: https://github.com/zeit/next.js/pull/11366
* style: correct linting error
2020-04-21 14:51:16 +02:00
Tim Neutkens
483bd3ddda
Rename ZEIT to Vercel ( #12075 )
...
* Find/replace
* Update more URLs
* More rename
* Fix remaining examples
* More updates
* Update create-next-app
* Update remaining text
* Update
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00
James Mosier
dc4e5695aa
(examples) Fix link in with-passport example README ( #12056 )
...
* Fix incorrect link in with-passport example
Closes #11961
* hardcode link for with-passport README
* fix link
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-04-20 20:28:12 +02:00
退之
5592e64c36
Fix with mobx ( #11907 )
...
* fix: with-mobx
* refactor: up link
* refactor: npm run prettier-fix
* refactor: server side render
* Updated store implementation and pages
* Updated readme
Co-authored-by: wangcheng <wangcheng@deepblueai.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-20 13:05:10 -05:00
coktopus
a6beed01eb
bug: error when using transition property in tailwindcss + emo… ( #12027 )
2020-04-20 11:12:13 +02:00
Rounak Agarwal
2c0ed5e80c
[Examples] Update draft-js to v0.11.5 and add editorKey prop i… ( #12011 )
2020-04-20 11:05:09 +02:00
Francisco Pizarro
4b3967fa10
examples/with-react-helmet: upgrade react-helmet to v6.0.0 ( #12000 )
2020-04-18 13:09:10 -05:00
Justin
fe686b30b4
with-iron-session: fix link to next-iron-session ( #11974 )
2020-04-17 17:18:50 -05:00
Luis Alvarez D
42a328f3e4
Improved steps for examples/cms-prismic ( #11935 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-04-16 09:15:43 -05:00
Vincent Voyer
90ffdcc33b
docs(auth): add with-iron-session to the alternatives list ( #11903 )
...
Following https://github.com/zeit/next.js/pull/11865#issuecomment-613663718
2020-04-15 02:01:40 -04:00
Matt Carlotta
ffa4089b18
Update with-redux-thunk example to include HMR ( #11816 )
...
* Update with-redux-thunk example to include HMR
* Update README
* Fix clock component
* Fix example component
* Fix README
2020-04-14 18:36:50 -05:00
Luis Alvarez D
4094dfeff9
Remove with-cookie-auth ( #11865 )
2020-04-14 11:58:26 +02:00
Tim Neutkens
f0422f2119
Revert "minor change in hello-world/package.json" ( #11874 )
...
This reverts commit 287961ed91
.
2020-04-14 10:11:15 +02:00
Luis Alvarez D
20f6429643
Replaced express with next-connect ( #11747 )
2020-04-13 18:11:41 -05:00
Hoang Vo
ee372f472f
feat(example): add CRUD example with next-connect and passport ( #11359 )
...
* Add with-next-connect example
* Update README
* Fix code and lint
* Fix typo
* Run prettier
* Include username
* Rename example
* Match with-passport styling
* Add comments in code
* Run prettier
* Rewrite example
* Add some comments
* Update README.md
* keys -> secret
* Updated package.json and readme
* UX changes
* Securely encrypt cookie with @hapi/iron
* Update README
* Abstract db related actions and update README
* security: add note on password hashing
* remove unused dep
* Updated readme
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-13 18:07:54 -05:00
Yuki Takemoto
65335155d1
chore(example): Update styled-components to v5 in with-typescript-styled-components ( #11766 )
2020-04-13 17:30:17 -05:00
a14m
0ccce7271d
Update sentry example ( #11701 )
...
* Fix the with-sentry-simple example configuration code
This fixes the following issues:
- https://github.com/zeit/next.js/issues/8873
- https://github.com/zeit/next.js/issues/11642
* Update the README with the info about uploading to sentry configurations
* Fix the typo in SENTRY_DNS -> SENTRY_DSN
2020-04-13 14:08:56 -04:00
Fabian Mastenbroek
9e75162a27
[examples/with-react-intl] Fix issues with Intl.js polyfill ( #11806 )
...
* Add workaround for Intl.js RegEx issue
This change adds a workaround for an issue with the Intl.js polyfill
library where it instantiates an invalid regular expression.
Relevant issues:
https://github.com/andyearnshaw/Intl.js/issues/270
https://github.com/andyearnshaw/Intl.js/issues/256
https://github.com/andyearnshaw/Intl.js/issues/306
Until this issue is fixed upstream, we use a workaround in the example.
Fixes : #11777
* Do not load Intl.js polyfill by default on Node
This change updates the `with-react-intl` example to prevent it from
polyfilling `Intl` in a Node environment when it is not needed.
2020-04-13 13:55:30 -04:00
MicrochipQ
ccefab76dd
[examples/custom-server-fastify] Fix ts(2341) ( #11844 )
...
* Fix ts(2341)
Property 'handleRequest' is private and only accessible within class 'Server'.ts(2341)
* Update server.js
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-13 13:41:38 +02:00
Minh Nguyen
ec76d9265c
Rename functional component
-> function component
( #11850 )
...
See the following for context:
- https://reactjs.org/docs/components-and-props.html#function-and-class-components
- https://overreacted.io/how-are-function-components-different-from-classes/
- https://twitter.com/dan_abramov/status/1057625147216220162
- https://twitter.com/kentcdodds/status/1136274289965928448
2020-04-13 11:33:06 +02:00
liulanz
287961ed91
minor change in hello-world/package.json ( #11830 )
2020-04-11 23:19:53 +02:00
liulanz
f1e561b889
Update dependencies ( #11833 )
...
* updated npm dependencies
* updated npm dependencies
* updated npm dependencies
2020-04-11 23:18:40 +02:00
Abdul Rauf
bbe7a52bd2
update dev script in examples/using-preact ( #11805 )
2020-04-10 13:59:17 +02:00
Tim Neutkens
c59d24055d
Add Prismic Example ( #10897 )
...
* Add Prismic Example
* Update package.json
* Update constants
* Remove react-datocms
* Add Preview Mode for Prismic
* Add support for Preview Mode
* Delete author.jpg
* Delete image.jpg
* Fixes and readme updates
* Fixed issues with preview mode
* Updated preview mode steps
* Added more posts
* Updated readme
* Updated readme
* Added demo URL
* Added related examples links
* Added example to docs
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-10 12:41:09 +02:00
Rounak Agarwal
0c2a6d8f48
fix typo ( #11786 )
2020-04-09 12:54:59 -05:00
Stig Kleppe-Jørgensen
28e1be83df
Remove duplicate content ( #11750 )
2020-04-09 10:29:34 +02:00
Yuki Takemoto
a35ae240c4
chore(example): Update styled-components to v5 ( #11765 )
2020-04-08 19:41:06 -05:00
Zack Krida
1d21897982
Update start script in preact example ( #11763 )
...
As far as I understand using preact in Next.js no longer requires a custom server. The current start command `"start": "NODE_ENV=production node server.js"` references a file that no longer exists.
2020-04-08 19:34:54 -05:00
sdhani
7e39079462
Minor with-docker readme grammar fix ( #11760 )
...
* Fix with-docker readme grammar
* Amended with-docker readme grammar fix
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-04-08 19:07:12 -05:00
Luis Alvarez D
282f375189
[Examples] Update with-mobx-state-tree examples ( #11736 )
...
* Updated with-mobx-state-tree
* Updated with-mobx-state-tree-typescript
* minor fix
2020-04-08 09:44:28 +02:00
David Janda
17384fc064
Updated with-xstate ( #11658 )
...
* Replaced getInitialProps with SSG
* Removed getStaticProps
* Apply suggestions from code review
Remove count
Co-authored-by: Luis Alvarez D <luis@zeit.co>
2020-04-07 15:26:05 -05:00