Commit graph

1040 commits

Author SHA1 Message Date
Kateryna Pohrebniak
ef13f5cc93 Typo in class name in with-react-esi example (#8414) 2019-08-18 20:00:47 +02:00
matamatak
ab95c6d9a1 Updated with-redux-thunk example using useSelector and useDispatch (#8396)
* use useSelector and useDispatch

* update README

* fix space and trailing comma
2019-08-16 14:50:46 -05:00
Joe Haddad
a04a5f014a
Remove extra DOM method call (#8394) 2019-08-16 12:00:46 -04:00
Evan Bacon
e80bbe4b80 [Expo] Updated React Native example (#8376)
* Created a new example for React Native web

- use the latest `react-native-web`
- remove unused `react-art`
- remove redundant `babel-plugin-module-resolver`
- remove unused `.babelrc`
- add missing `app.json` (standard in React Native)
- added example for rendering an `<a />`
- added header examples

* `yarn lint-fix`
2019-08-15 08:01:09 +02:00
Rafael Almeida
1765007a10 Update with-apollo example with hooks (#8363)
* Add @apollo/react-hooks and @apollo/react-ssr

* Migrate react-apollo to @apollo/react-hooks and Query component

* Migrate direct client mutations to useMutation hook

* Disable submit button when submiting a new post

* Fix Show More button not updating when loading more entries

* All queries with uppercase name

* Remove react-apollo

* Update getDataFromTree links

* Fixed lint issues
2019-08-14 15:00:34 -05:00
Kristoffer K
a7baeb045e fix(examples): correct the path in with-electron (#8370)
* fix(examples): correct path in with-electron

* Update index.js
2019-08-14 20:44:34 +02:00
Tim Neutkens
a90a55545b
Deprecate Container usage (#8327)
* Remove Container from examples

* Update readme to reflect Container removal
2019-08-11 22:02:33 +02:00
Tim Neutkens
6d2539013c
Fix layout example building (#8326) 2019-08-11 20:12:50 +02:00
Junyoung Choi
08b14e49b0 Simplify mobx example (#8269) 2019-08-08 14:09:18 -05:00
Raja Sekar
8c208155cd FIX- #8059 - Update relay version in examples to latest one (#8227) 2019-08-03 12:22:24 +01:00
JJ Kasper
dc9e270898
Update examples for Apollo with AppTree (#8180)
* Update examples for Apollo with AppTree

* Fix apolloClient being overwritten when rendering AppTree
2019-07-31 16:07:14 -04:00
Peter McAree
6c2534362e Fix typo within blog-starter example (#8182) 2019-07-30 16:49:12 -05:00
Rakan Nimer
8f77713028 Add 2 AWS Amplify SSR examples one with JS and one with TS (#8073) 2019-07-29 09:44:05 -05:00
Lachlan Campbell
6f89c36207 Upgrade with-mdx example from mdx 0.16 → 1.1 (#8142) 2019-07-27 19:49:08 +01:00
Oğuz Kılıç
4ff6f5f514 update README.md for with-http2 example (#8131) 2019-07-27 10:39:09 +02:00
Alexey Boklin
f5edfebc82 Docs: Fix comments in with-sentry example (server.js) (#8125) 2019-07-26 14:51:47 -05:00
Thijs Koerselman
8243af2519 Update example with firebase auth (#8127)
* Add sessions folder to prevent errors on first run

* Update readme steps to reflect current firebase ui

* Use default directory for sessions-file-store

* Remove obsolete databaseURL from config
2019-07-26 12:14:14 -05:00
Luis Fernando Alvarez D
a2b2a2a3e8
Auth example with api routes (#8118) 2019-07-25 18:52:41 -05:00
Lukáš Huvar
83a3903fc2 HTTP methods docs and REST example (#8108)
* HTTP methods docs and REST example

* Update packages/next/README.md

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Update examples/api-routes-rest/README.md

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Fix standard
2019-07-25 11:18:38 -04:00
Henrik Wenz
b844a32342 Allow automatic static optimization in with-sentry-simple examp… (#8102) 2019-07-25 12:54:40 +02:00
Chaitanya Reddy K
6421d68e01 Updated "firebase-admin" module and added "firebase-functions-t… (#8078) 2019-07-24 13:10:36 +02:00
Joe Haddad
aac5121466
Apply missing formatting (#8079)
* Reapply missing formatting

* Fix lint
2019-07-23 14:33:49 -04:00
Joe Haddad
1d8ff1d2aa Remove now.json from examples (#8057) 2019-07-22 17:06:48 +02:00
Joe Haddad
eb740c530f Remove public/ file example (#8056) 2019-07-22 09:57:45 -05:00
Joe Haddad
bcd8eb6b78
Update CNA links to examples 2019-07-17 23:27:27 -04:00
dmytro-lymarenko
8f662c44c9 Fix children key in with-typescript-styled-components example (#8003) 2019-07-17 12:26:08 -05:00
Rakan Nimer
f406bd9668
Add .gitignore (#7893) 2019-07-16 12:35:26 -04:00
Eduardo P. Rivero
2c28e12220 feat(web): Passing actual status code instead 200 (#7735) 2019-07-16 13:36:49 +02:00
Lukáš Huvar
be3eab2ad7 Example for API routes with middleware (#7958) 2019-07-15 17:39:16 +02:00
Yuji Kinjo
cdf4f0a20d Fix example with-firebase-hosting-and-typescript (#7971) 2019-07-15 10:04:44 -05:00
RyotArch
728fe74e3c Added example for rbx and bulma-pro (#7728) 2019-07-12 16:45:36 -05:00
Tim Reynolds
c28f467488 Remove with-styled-components Auto Prerendering warning (#7871) 2019-07-10 14:35:50 +02:00
Luis Fernando Alvarez D
8c5209efab Update typescript examples (#7867)
* Updated with-jest-typescript

* Updated the mobx-state-tree-typescript example

* Removed the sitemap with typescript example

* Updated the with css typings example
2019-07-10 12:51:21 +02:00
Junyoung Choi
9c8d34d551 Upgrade next.js version in custom-typescript-server example (#7772)
* Upgrade next.js version of custom-typescript-server example

* Update examples/custom-server-typescript/package.json

Co-Authored-By: Resi Respati <resir014@gmail.com>

* Format package.json
2019-07-09 13:24:14 -04:00
Yuki Takemoto
16f63a8a76 Upgrade with-firebase-hosting-and-typescript example (#7815)
* Upgrade with-firebase-hosting-and-typescript example

* Update package.json
2019-07-08 22:35:29 -04:00
Joe Haddad
f152c745da
Update remaining examples to latest Next.js 2019-07-08 19:37:58 -04:00
Yuki Takemoto
3910b6de39 Upgrade next of with-typescript-styled-components sample (#7788) 2019-07-08 19:32:15 -04:00
Joe Haddad
5205695578
Switch all examples to next@latest (#7806) 2019-07-08 18:41:33 -04:00
Lukáš Huvar
a6c7ab9776
Example for GraphQL server with API routes (#7804)
* Example for GraphQL server with API routes

* Update examples/api-routes-graphql/pages/index.js

Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>
2019-07-09 00:37:51 +02:00
Lukáš Huvar
264fc01969 API routes documentation (#7562)
* API routes examples and documentation

* Update examples/api-routes-micro/README.md

Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>

* Update examples/api-routes/README.md

Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>

* Apply suggestions from code review

Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>

* Update API routes docs

* Improve example to reflect dynamic routes

* Update readme to reflect API routes changes

* Apply suggestions from review
2019-07-07 23:04:04 -07:00
Luis Fernando Alvarez D
c8bd427193 Dynamic routing documentation (#7602)
* Added basic example for dynamic routing

* Added some basic docs for dynamic routing

* Added more docs for dynamic routing

* Used doctoc

* fixed lint issues

* Added useRouter to docs

* Removed getInitialProps examples that are only using router props

* Added useRouter to the navigation

* Small fix

* Updated to the latest dynamic routes implementation

* lint fix

* Update dynamic routing example

* Tweak dynamic routing documentation

* Make basic example basic again

* Adjust dynamic routes section

* Remove query param for dynamic routes example

* Remove old note

* Fix linting
2019-07-02 16:00:58 -04:00
Luis Fernando Alvarez D
87610ccff5 Update with-zones example and Multi Zones documentation (#7513)
* Updated with-zones example to Now V2

* Updated Zones docs

* Update packages/next/README.md

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
2019-07-01 15:21:00 -07:00
Johnboy
ed997b1131 Add back in second line of comment (#7718)
The second line of this comment was removed in the previous commit due to the usage of process.browser.
This meant the comment was incomplete and confusing
c03e94bebd (diff-a15b49cbb3a523d81a74e0fab7f08eb5)
2019-07-01 11:08:55 -04:00
Luis Fernando Alvarez D
7049c3b349 Updated with-now-env example (#7694) 2019-06-28 15:14:56 -07:00
JJ Kasper
5f40306575 Remove coveralls (#7689) 2019-06-28 09:09:27 -04:00
Lukáš Huvar
c156e0c889
Helpers update (#7686)
* Update helper function to invoke only on get

* Tests for body parsing

* Update api-utils.ts

* Update next-server.ts

* Update packages/next-server/server/next-server.ts

Co-Authored-By: JJ Kasper <jj@jjsweb.site>
2019-06-28 11:31:32 +02:00
Lukáš Huvar
830281fecd Update typescript example (#7684) 2019-06-27 13:50:38 +02:00
Eduardo P. Rivero
2259a7ec1f Updating hapijs package name (#7664)
* Updating hapijs package name

Hapi was moved to a new module under the name @hapijs/hapi.

Right now installing just as hapi is giving you this warning:

```bash
npm WARN deprecated hapi@18.1.0: This module has moved and is now available at @hapi/hapi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
```
This change does not affect the integration with next and it continues to work great.

* Update package.json
2019-06-26 09:40:35 +02:00
Joe Haddad
c03e94bebd
Remove usage of process.browser (#7651) 2019-06-24 16:34:10 -04:00
Joe Haddad
353e505172
Fix TypeScript typings (#7648)
* Fix TypeScript typing
This correctly defines `process.browser` instead of `process.env.browser`.

It also removes `process.crossOrigin` because it's not found in our documentation anywhere and is mostly used for internal purposes.

* Make sure `process.browser` doesn't throw a type error

* Split globals from Next.js module

* Allow `test` as a valid NODE_ENV

* Fix type assignment

* Make sure global types get published

* Fix test
2019-06-24 14:26:17 -04:00