Commit graph

2 commits

Author SHA1 Message Date
david
9d2962cfab
fix with-mqtt-js example. (#23636)
## Documentation / Examples

- [x] Make sure the linting passes

***

Related to #23607

We should use `NEXT_PUBLIC_`  as [stated here](https://nextjs.org/docs/basic-features/environment-variables) to expose environment variables to the browser.

The code was already using the correct variables name.
2021-04-02 16:33:30 +00:00
Sebastian König
5fc8d48732
Added with-mqtt-js example (#17939)
* Added with-mqtt-js example

* Fixed eslint/prettier errors

* Update README.md

* Updated with-mqtt-js to latest next/react versions, WIP: Refactoring useMqtt()

* A2PC

* Working example, unrefactored

* A2PC

* Ran prettier

* Used NEXT_PUBLIC_ prefix instead of keys as props

* Updated readme and added .env.local.example

Co-authored-by: Sebastian König <sebastian_koenig@cotyinc.com>
Co-authored-by: Luis Alvarez D <luis@vercel.com>
2021-01-06 12:06:56 -05:00