Commit graph

1219 commits

Author SHA1 Message Date
Sandrino Di Mattia
d0424d201d Update auth0 sample: bump dependencies and improve config management (#9778)
* Update auth0 sample: bump dependencies and improve config management

* Fixed linter

* Fix symlink
2019-12-18 14:16:00 -05:00
James Russo
a7e96706fc Update with-sentry example to not use sentry-testkit (#9777)
With an update to sentry-testkit to depend on native node modules
this example no longer works in the browser. Sentry-testkit is made
for a node server not to work in the browser. However, with this
change we no longer require sentry-testkit in our setup for sentry.
Before this change with the update of sentry-testkit to 3.1 we were
encountering errors when trying to run the next.js local development
server because it was trying to load sentry-testkit in the browser.

Thank you to @ohana54 for his example found here https://github.com/wix/sentry-testkit/issues/43
this will now close this issue https://github.com/zeit/next.js/issues/9768
as well.
2019-12-18 17:51:46 +01:00
Lar Van Der Jagt
c4567a1a81 Fix TypeError in with-graphql-hooks example (#9658)
Reported at https://github.com/zeit/next.js/issues/9617

Use `AppTree` so that `withRouter` works correctly.
2019-12-12 04:12:04 -05:00
Henrik Wenz
8a04353bbd Update example/with-dynamic-import (#9667)
* Migrate to functional components

* Remove deprecated modules syntax

* Remove description

* Remove Counter
2019-12-09 00:22:51 -05:00
Andreas Opferkuch
d892229623 Simplify config in with-jest-typescript example (#9664)
jest didn't include TS extensions by default, now it does.
Plus some minor adjustments.
2019-12-08 18:12:21 +01:00
Qurage
f9e4f18691 Update example analyze bundles (#9645)
* Update analyze-bundles example

* follow these updates:
  1. `server` and `browser` options
    * 9ecca7b492/packages/next-bundle-analyzer/index.js
  2. "Deprecate next-bundle-analyzer"
    * e453804d07 (diff-5cea9b17189292d8fedc98eeda86bb0b)
  3. "Move next-bundle-analyzer to Next.js repo"
    * 42cff0a09c (diff-4e57124572a8e05f52d373c300523f6a)
    * "Remove options from bundle-analyzer"

* Support Windows in analyze bundles example

* Remove empty webpack config from analyze bundle example

* 4943d844cc (r354844766)
2019-12-07 15:33:08 +01:00
Lar Van Der Jagt
926a4e5abc Fix instructions for with-netlify-cms example (#9637)
Looks like the directory name was missed after a copy/paste from another example.
2019-12-05 11:23:20 -06:00
Dave Brudner
442fbfaa4d Update with-socket.io example (#9583)
* Using custom hook instead of `_app.js` to interface with
`socket.io-client`
2019-12-05 11:08:09 -05:00
Paul-Emile
b6bdab57c9 Add babel-plugin-graphql-tag to the with-apollo example (#9635) 2019-12-05 10:50:20 -05:00
Natalie Marleny
cbacc8a43c Enhancement: Remove caret range for node-sass (#9630)
- In with-next-sass example package
- Do not want example to use version 4.13.0 of node-sass
2019-12-04 18:34:41 -05:00
Natalie Marleny
3094b15c54 Enhancement: Upgrade css-loader version to 1.0.0 (#9629)
- For with-algolia-react-instantsearch example
2019-12-04 18:33:29 -05:00
Prabusah
743248f177 with-material-ui example linked to mui-org/material-ui (#9605) (#9616) 2019-12-04 11:47:51 +01:00
C. T. Lin
0e1f2f36a3 Move cross-env from devDependencies to dependencies (#9580) 2019-12-01 10:36:27 +01:00
Luis Alvarez D
7edf0da0c4 Add the deploy button to compatible examples (#9547) 2019-11-27 11:40:58 -05:00
Jayden Seric
547b4acbd8 Update the graphql-react example. (#9550)
- Updated dependencies.
- For compatibility with the current next-graphql-react API, added next.config.js using the `withGraphQLConfig` decorator.
- For compatibility with the current graphql-react API, updated the options used with `useGraphQL`.
- Updated the readme to align with the current graphql-react and next-graphql-react APIs.
- Minor destructuring refactor for clarity.
- Converted the custom App to a functional component.
2019-11-27 10:50:20 +01:00
Alejandro Garcia Anglada
8e4e07bfe2 Fixed next-offline example to serve service worker (#9531)
* Fixed next-offline example to serve service worker

* replaced custom server with rewrites
2019-11-26 21:03:09 -05:00
Mаартен - Maarten
8357f46413 Update progressive enhancement example (#9507)
* no ssr component which uses useEffect hook

This library used wasn't updated for 4 years. I tried to contact the owner, which failed, and decided to create my own. So if you see this PR as a shameless plugin for my own component you can delete it. Just wanted to make this example more up to date.

* Update index.js

* fix linting

* Update index.js

* Update example
2019-11-25 16:32:35 -05:00
Joe Haddad
2cbe4d3560
Remove Broken Example (with-apollo-auth) (#9516) 2019-11-25 14:49:46 -05:00
Alejandro Garcia Anglada
874d3fdbb9 Updated with-jest example to latest versions (#9490)
* Updated with-jest example to latest versions

* Fix linting issue

* Updating snapshots

* Rollback snapshots change
2019-11-23 02:09:50 +01:00
Luis Alvarez D
ca730d7fa7
[Example] Fix typo in with-rbx-bulma-pro (#9494)
Requested [here](https://github.com/zeit/next.js/pull/7728#issuecomment-555695290)
2019-11-22 00:41:39 -05:00
Sebastian Benz
29fdea6d31 Fix typos (#9488)
See https://github.com/zeit/next.js/pull/9109#issuecomment-557139022
2019-11-22 00:35:43 +01:00
Glen Ihrig
625190d06d Update purgecss search path (#9432)
* Update purgecss search string to include typescript files - closes #9415

* fix minor formatting issue
2019-11-20 14:13:45 -05:00
Serhii
6d50b95b7f Typo in with-next-offline example manifest.json (#9472) 2019-11-20 10:39:30 -06:00
Luis Alvarez D
8e2097997e
Remove getInitialProps from the faunadb example (#9427)
* Remove the global fetch

* Update API methods

* Remove getInitialProps from the page

* Add client side fetching
2019-11-15 13:21:08 -05:00
Joe Haddad
34a38d2e40
Linting should be strict (#9418)
This configures our linting to exit without a success status code when warnings are found
2019-11-14 23:01:36 -08:00
James Mosier
5e6f79117f Fix(9312) - Fix redirect logic for with-cookie-auth (#9413)
* Fix redirect logic for unauthenticated flows

* check for lack of existence of window for server code

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

* remove comment

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

* remove comment

Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
2019-11-14 10:58:22 -05:00
Luis Alvarez D
f910a92f18
Updated readme (#9405) 2019-11-13 16:26:08 -05:00
fauna-brecht
581e338614 with-graphql-faunadb (#9387)
* with-graphql-faunadb

* Use latest next

* Use node-fetch

* removed import to next/config

* Updated titles

* Lint fix

* Link to the schema
2019-11-13 13:15:27 -05:00
Sebastian Benz
4c2c45338a amp-first example: fix broken inline script (#9389)
* amp-first example: fix broken inline script

* Apply lint-fix
2019-11-12 18:56:24 -08:00
Sebastian Benz
79e717a76b Add AMP First example (#9109)
* Add AMP First example

The sample demonstrates how to build an AMP First Site with AMP. If
follows all the best-practices recommended by Lighthouse and will
result in a fully-qualified PWA.

Live demo of the page: https://my-next-app.sebastianbenz.now.sh/#development=1

* small improvements to AmpScript and AmpState

* remove gitignore

* Update example

* Move styles down in Layout

* Apply lint fix and tweak prop-types

* Add warning for host header usage
2019-11-10 21:30:36 -08:00
Joe Haddad
6bf87b356d
Check formatting on build (#9375) 2019-11-10 20:29:49 -08:00
francismarcus
f3bda83ecc Update dotenv example (#9372)
* Update next.config.js

* Update .env

* Update next.config.js

* Update package.json

* Apply lint-fix

* Update env var name
2019-11-10 19:45:12 -08:00
Joe Haddad
18a9c7e371
Improve linting rules to catch more errors (#9374)
* Update `packages/`

* Update examples

* Update tests

* Update bench

* Update top level files

* Fix build

* trigger
2019-11-10 19:24:53 -08:00
Raymond
d5486e5b9a Add full-icu package (#9286)
As long as node does not ship with fill-icu this will do the trick making FormattedRelativeTime work on nodejs.
Other polyfill like @formatjs/intl-relativetimeformat/polyfill did not work on nodejs and thus giving an error that client did not match server.
2019-11-09 13:04:38 -08:00
Luis Alvarez D
c8c4efba6c Remove the parameterized-routing example (#9297)
* Remove the example

* Include readme with link to alternative
2019-11-07 10:06:35 -08:00
JJ Kasper
b9c71d373c Revert experimental plugins code from sentry example (#9317) 2019-11-06 12:32:28 -05:00
Tom Wieland
bc176b3b74 [with-firebase] Update to Node v10 and fix lint errors (#9318)
* Changed the version of node from 8 to 10

* fix lint errors
2019-11-05 12:19:34 -05:00
Mikhail Guskov
e9e06099cd update with-jest-react-testing-library (#9307) 2019-11-05 11:19:13 -05:00
Joe Haddad
bbf705f262
Simplify Build Output (#9281)
* Simplify Build Output

* Remove noop tests

* Drop 

* Remove bolding
2019-11-04 11:14:04 -05:00
Daniel Reinoso
d21ad2b44f Add Patternfly example (#9251)
* Add Patternfly example

* Fix lint

* Add missing space

* Remove trailing comma
2019-11-01 22:56:19 -04:00
Tim Neutkens
7c80febcf7 Initial plugins implementation (#9139)
* Add initial bit for plugins

* Add checks for needed metadata values

* Add test

* Initial plugins changes

* Add handling for _app middleware

* Add loading of _document middleware and
handling of multiple default export syntaxes

* Fix insert order for middleware member expression

* Remove early return from middleware plugin from testing

* Add tests for current plugin middlewares

* Update test plugin package.json

* Update handling for class default export

* Update to use webpack loader instead of babel
plugin, remove redundant middleware naming, and add field for required env for plugins

* Add middleware to support material-ui use case
and example material-ui plugin

* Update tests and remove tests stuff from google analytics plugin

* Remove old plugin suite

* Add init-server middleware

* Exit hard without stack trace when error in collecting plugins

* Add on-error-client and on-error-server and update
to run init-server with next-start in serverless mode

* Update init-client for google analytics plugin

* Add example Sentry plugin and update with-sentry-simple

* Remove middleware field/folder and use src dir for plugins

* Add post-hydration middleware and update
material-ui plugin

* Put plugins code behind flag

* Update chromedriver

* Revert "Update chromedriver"

This reverts commit 1461e978e677f7da05e29e0415ec614a04bf65f9.

* Update lock file

* Remove un-needed _app for sentry example

* Add auto loading of scoped packages, add plugins
config for manually listing plugins, and update
to only collect plugins once

* Update example plugins

* Expose plugins' config

* Rename plugin lifecycles and add babel-preset-build

* Rename other methods with unstable

* Update log when plugin config overrides auto-detecting
2019-11-01 14:13:13 -05:00
Martin Grubinger
81066a396c Fix example active-class-anme: Add support for children of ActiveLink without a className. (#9271)
* Fix example active-class-anme: Add support for children of ActiveLink without a className.

* Update examples/active-class-name/components/ActiveLink.js

Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
2019-10-31 14:05:12 -05:00
Henrik Wenz
e09eb8d415 Update with-apollo-and-redux example (#9270)
close #8830
2019-10-31 10:40:34 -04:00
Tim Neutkens
4c6e294ca2 Add experimental example of next-news (#9249)
* Add next-news example

* Update components

* Use getStaticProps

* Move directory
2019-10-30 09:05:45 -04:00
Joe Haddad
6b54e9ed66 Fix Prettier Commit Hook (#9245)
* Apply format to webpack config

* hit all files
2019-10-30 12:35:51 +01:00
Nate Moore
61a9cfb317 Add Framer Motion example (#9185)
* Add example for Framer Motion

* Prevent scroll on route change

* Replace hook with more robust useId hook

* Improve scroll behavior

* Remove custom hook in favor of gitInitialProps

* Update framer-motion, react

* Update readme

* Fix lint errors
2019-10-29 23:21:03 -04:00
Nataliya Karatkova
a25085f37e Update static export example: clean up an extra query param (#9239) 2019-10-29 16:36:04 -05:00
Nataliya Karatkova
07b46d7f9a Update examples: static export using dynamic routes instead exp… (#9237) 2019-10-29 17:17:48 +01:00
Juan Miguel
d40f010df3 Delete _document.js (#9236)
After https://github.com/zeit/next.js/pull/5887, _document.js file is not needed anymore
2019-10-29 15:36:18 +01:00
Nataliya Karatkova
4584ea47f6 Fix examples #9064: bumps next-redux-wrapper package version that contains babel runtime fix (#9214) 2019-10-27 22:31:39 +01:00
Brandon Bayer
1c11ffd1f7 Fix react-native-web example by adding babel plugin (#9078)
* fix react-native-web example by adding babel plugin

* changes
2019-10-27 11:52:52 +01:00
LadiesMan217
94e81c02b9 Update with-react-intl example (#9180) 2019-10-26 16:11:30 +02:00
Jason Dreyzehner
a964dc825e update with-mdx example to latest packages (#9186) 2019-10-24 08:52:30 +02:00
Zack Krida
9581d8a626 Fix with-tailwindcss build issues (#9179) 2019-10-23 11:06:33 -04:00
Taylor Bryant
b96f1ae285 Add Purgecss to with-tailwindcss example (#9145)
* Add Purgecss

* Remove trailing comma

* Fix linting errors

* Update README.md

* Add cssnano to PostCSS plugins

* Use single quotes
2019-10-22 22:53:33 -04:00
none23
cd8429d15c fix apollo server initialization in api-routes-apollo-server-and-client example (#9137) 2019-10-21 16:20:11 -05:00
Józef Piecyk
d94d2700f9 Netlify cms example (#8949)
* add netlifycms example

* Updated everything

* Moved the layout out of _app

* Updated next to latest

* applied prettier and linter

* Removed unrequired files

* Moved to with-netlify-cms

* updated readme to reflect the new name

* Added license field
2019-10-19 18:46:49 -05:00
Henrik Wenz
fd0ba93faa Refactor with-context-api example to use functional components (#9092) 2019-10-18 02:00:23 -04:00
Henrik Wenz
2874a3e0f1 Refactor with-modal example (#9097)
## Changelog

- Use functional components instead of class components
- Use default exports like in all other examples
- Rename `Portal` component to `ClientOnlyPortal`.
2019-10-18 01:50:10 -04:00
Henrik Wenz
16e0ff9d65 Update with-prefetching example (#9101)
## Changelog

- Remove `getInitialProps`
- Explain variants
- Reflect latest changes in the prefetch api
- Update UI
2019-10-18 01:31:39 -04:00
Rafael Almeida
8b48508ce8 Remove inferno example (#9108) 2019-10-17 00:08:03 -05:00
First Kanisorn Sutham
ff5dcacc2e Add the example of Tailwind CSS with emotion (#8931)
* Add the example of tailwindcss with emotion

* Add README.md

* Fix Unexpected trailing comma.

* Update the readme, and use latest Next.js version
2019-10-16 22:51:53 -05:00
Resi Respati
42bf21091e [with-typescript] Updated TypeScript example to use API routes (#9073)
* [with-typescript] Updated TypeScript example to use API routes

Next.js 9.0.0 has been out for a while, which supports API routes, but
the examples were never updated to make use of it. This PR adds a simple
example of an API route which also makes use of dynamic routing.

A simple `fetch()` wrapper is also added for example purposes, and the
pages structure have also been updated to dynamic routing.

* Properly link to the dynamic page
2019-10-16 13:38:14 -05:00
Rafael Almeida
52023fe2a4 [using-inferno] Update inferno to v7.3, fix missing React.createContext function (#9038)
* Update inferno examples to v7.3

* Add polyfill for React.createContext

* Alias react and react-dom with inferno-compat

* Fix linter errors

* Add warning about hooks and suspense support
2019-10-16 12:38:19 -05:00
Ismael Martínez
ff5d5c501c Update with-react-toolbox example to use /public (#9099) 2019-10-16 14:58:04 +02:00
Henrik Wenz
02e75cfdd1 Simplify with-noscript example (#9094)
## Changelog

- Removed react-lazyload
- Removed images
- Removed ReactDOMServer from Client
- Removed next.config.js

## Notes

**CommonJS vs ESM:** In the future we might be able to use top level `await` in order to import only on the server (e.g.: `await import(“react-dom/server”)`)

Until then we need to mix CommonJS and ESM in favor of messing with the webpack config.
2019-10-16 12:36:40 +02:00
Andreas Opferkuch
b6be95ba32 Fix language fallback in with-react-intl example (#8894)
The call to `accept.languages()` made the fallback not work.
When called e.g. with `Accept-Language: es-ES,es;q=0.9`, `locale` would contain `[ 'es-ES', 'es' ]` instead of `en`.

(See also: https://www.npmjs.com/package/accepts#languagelanguages )
2019-10-16 01:52:49 -04:00
Rafael Almeida
4dd4df1086 [using-preact] Update example to Preact X (#9079)
* Update preact example with Preact X

* Update README
2019-10-16 01:39:33 -04:00
Joe Haddad
7d1f18799b Fix import in @zeit/fetch example (#9074) 2019-10-14 13:11:33 -05:00
Bauyrzhan
000f385b6e Fix a minor typo in link (#9049) 2019-10-12 00:29:08 -05:00
Serhii
a3b990a52a Update README.md (#9040) 2019-10-11 14:14:17 +02:00
Rafael Almeida
9b0ec37f24 Update storybook example to v5.2 with CSF (#9036)
* Update storybook example to v5.2 with CSF

* Fix linter errors
2019-10-11 11:57:33 +02:00
Luis Alvarez D
6c9fa8662c Updated multiple examples to use /public (#9033) 2019-10-11 11:50:06 +02:00
Luis Alvarez D
f10f3304fe Replace the deprecated Create Next App URL (#9032) 2019-10-10 23:34:14 -04:00
Tim Neutkens
9ff7339e0d
Add @zeit/fetch example (#9029) 2019-10-10 20:30:04 +02:00
armspkt
ec40d51dc4 Next offline (#9010)
* example: add next-offline example

* fix: fix readme

* fix: lint standard
2019-10-10 12:05:29 +02:00
Sandrino Di Mattia
c6609e5bd5 Update Auth0 example with new version (#9020) 2019-10-10 11:31:51 +02:00
Ismael Martínez
6ce6b96dfa Change to public folder in with-loading example (#9016) 2019-10-09 17:28:06 -05:00
Karl Horky
898c131f0a Remove pass-server-data example (#8992)
Ref: https://github.com/zeit/next.js/issues/8976
2019-10-08 09:43:56 -04:00
Kyle Richelhoff
6685d633e1 Fix Custom Webpack Config in Inferno Example (#8987) 2019-10-07 23:13:29 -04:00
Arya Sadeghi
1b518f065f with quilljs example (#8904)
* quill js with nextjs

* remove  spaces and blank line

* fix  code  lints

* imporve lin

* fix lint  error

* trying to fix lint

* Update examples/with-quill-js/README.md

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

* Update examples/with-quill-js/README.md

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

* update readme

* Update example
2019-10-07 17:17:06 -05:00
JJ Kasper
3f1e19e64a Migrate AMP story example into Next.js repo (#8972) 2019-10-05 11:46:08 +02:00
JJ Kasper
a73fb5d04a Migrate auth0 example into Next.js repo (#8802)
* Add auth0 example

* Apply suggestions from code review

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>

* Remove LICENSE

* Add create next-app section

* Update to latest @auth0/nextjs-auth0

* Update user handling

* Update profile link to use <Link>

* Update .env template to reflect guides

* Simplify example

* Update example to prefer API call (temporary hardcoded url)

* Simplify state and ensure rerenders don’t race

* Clear up import being commented

* Make code style consistent

* Update pages to reflect required auth on the client-side

* Memoize the user on window

* Update now.json instruction

* Remove meta fields

* Update docs with explanation

* Update UI for auth0 example
2019-10-01 23:19:04 +02:00
Henrik Wenz
b5da739f56 Simplify with-redux example (#8875)
## Changes

- [x] Remove _app.js usage
- [x] Migrate withRedux HOC to functional component
- [x] Add correct display name
- [x] Remove abstractions/boilerplate from example
- [x] Add useInterval HOC from Dan
2019-10-01 12:11:20 -05:00
takehiro-takahashi
0410a43d5a update package (#8906) 2019-09-29 20:39:32 +02:00
fabienheureux
297d1466e7 Fix typo and wording in README.md (#8867)
The first corrected sentence did not feel very natural.
The second one contained a typo.
2019-09-26 17:44:49 +02:00
JJ Kasper
a8e3b02236 Add src directory support (#8735)
* Add find-pages-dir

* Add support for src directory

* Add test for pages dir preference

* Update comment
2019-09-24 17:15:14 +02:00
Henrik Wenz
ba246446ef Remove useMemo from apollo examples (#8815)
We don’t need useMemo here since its functionality is already covered by initApolloClient.

Thanks to @mpoisot

closes #8810
2019-09-21 13:17:21 +02:00
hanneslund
6025c2eedd Update README.md (#8780)
api-routes -> with-aws-amplify-typescript
2019-09-18 10:37:18 +02:00
Weston Thayer
dc28e5b706 Example update: with-sentry-simple (#8684)
* Update to capture server exceptions and more

- Adds test cases for several server and client-side exceptions
- Allows capturing more server-side exceptions by overriding _error.js and using Sentry.captureException() within
- Use @sentry/node on the server
- Rely on Next.js's React Error Boundary instead of creating our own in _app.js

* Update test notes

Found some differences while testing in production

* Remove accidental mount throw on test 8

* Add note about server-side source maps

* Linting fixes
2019-09-17 11:43:51 +02:00
Tommy Ljungberg
960906553b fix(examples): use hooks in with-cookie-auth example (#8729) 2019-09-16 19:57:15 +02:00
Lukáš Huvar
7863b60ef6 Prettier fix (#8754) 2019-09-16 15:24:42 +02:00
Henrik Wenz
1045cd4c5a Refactor api-routes-apollo-server-and-client example (#8673)
* Remove connectToDevTools in favour of better default

Disabled devtools in production

* Refactor api-routes-apollo-server-and-client example
2019-09-12 10:44:53 -05:00
Joe Haddad
53f4f82e4c
Catch all requests in custom server (#8704)
Some users aren't aware they need to edit their custom server to support various HTTP Methods (e.g. POST for API Routes).

Instead, we should just handle all HTTP Methods out-of-the-box.

---

Closes #8237
2019-09-11 10:23:41 -04:00
Michael Lustig
a809368e59 Fix login popup not working (#8700) 2019-09-10 22:16:20 -04:00
Jakub Karabuła-Stysiak
5496e0f8b3 Add electron typescript example (#8682)
* Add initial Electron-Typescript-Next example

* Move and add types

* Update readme

* Update renderer

* remove config
2019-09-10 14:22:00 -05:00
Diogo Dutra
af7d021d48 Fix relay modern server express example (#8683) 2019-09-10 09:01:59 +02:00
Lukáš Huvar
0c6c1f9e07 Fix yarn workspaces example (#8631)
* Add now.json to fix deploy

* Adjust now.json

* Fix next.config.js

* Update next.config.js

* Update examples/with-yarn-workspaces/now.json

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
2019-09-06 13:44:39 +02:00
Aaron Reisman
6c01bbd6df Add Apollo Server and Client Example App (#8195)
* Add Apollo Server and Client Example

* Update Apollo Client to use previous example setup
2019-09-05 18:42:32 -05:00
Henrik Wenz
62aa5c8772 Improve with-apollo-auth example (#8633)
* Remove connectToDevTools in favour of better default

* Remove redirect code from client

* Simplify function

* Remove apollo-boost

This package is optimized for client usage only.
We actually never used it. We only usered its reexports.

More info:
https://www.apollographql.com/docs/react/v2.5/recipes/authentication/#header

* Remove stopPropagation

We actually don’t need it.

* Refactor getToken method

We want to show how to get the token.
This can be from a cookie or some other isomorph store.
We are not interested in the cookie abstraction in this example.

* Secure cookie

not perfect but better than before….

* Add ssr config option

This was documented but not implemented
2019-09-05 11:09:32 -05:00