Commit graph

2249 commits

Author SHA1 Message Date
Artur Parkhisenko
37d1100825
Change using-preact example dependencies and docs (#30394)
* change use-preact dependencies

* change stackblitz url to use https protocol

* change deprecated thing from the webpack5 doc
2021-12-11 15:19:49 +01:00
Jordan Pittman
4d4f309301
Update example for Tailwind v3 (#32339)
# Update example for Tailwind v3

I updated the example used by the [official docs](https://tailwindcss.com/docs/guides/nextjs) to reference Tailwind v3 with the necessary changes. I _did not_ update the emotion example because it's using the xwind package which will likely need to be updated first.

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
2021-12-09 22:42:42 +00:00
Delba de Oliveira
602907afd0
Update Next.js version in api rate limits example (#32326)
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-12-09 16:19:48 +00:00
Harsh Joshi
b54cbcca82
Fix issue in auth0 example (#32293)
## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-12-08 15:28:29 +00:00
Rasmus John Pedersen
ecf9f8775c
Add Umbraco Heartcore blog example (#21409)
Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-07 16:38:55 +01:00
joperron
1fe014ce17
fix cms-sanity example (#32182)
## Bug

- fixes #31474
2021-12-06 19:32:09 +00:00
keji
a016713c9e
grammatical error in alert.js (#32062)
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-12-02 20:26:34 +00:00
Kim, Harim
b290a3dc38
Fix with-mongo example by removing deprecated function (#30675)
* Remove deprecated function

* Remove useless change

* lint-fix

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-11-30 15:50:50 -06:00
Delba de Oliveira
306c467c3b
Update Jest examples and docs (#31633)
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: stefanprobst <stefan.probst@univie.ac.at>
Co-authored-by: Rich Haines <hello@richardhaines.dev>
2021-11-30 15:10:40 -06:00
Katie Byers
c03fa72c99
Add tracing to with-sentry example for Next.js 11 (#30401) 2021-11-29 17:02:00 -06:00
Vincent Voyer
127b92b102
docs(examples): add secure flag explanation to with-iron-session (#31896)
Following comment on the project here: https://github.com/vvo/iron-session/issues/425
2021-11-28 18:35:39 -06:00
Luis Alvarez D
77150dac79
Include submodules in exported type definition (#28316) 2021-11-26 14:46:56 +01:00
Heyang Zhou
809d0155ff
Add support for removing React properties. (#31606) 2021-11-26 14:45:03 +01:00
wendell
226944d3d3
Fix pwa demo (#31734)
* Fix pwa demo

* Revert unnecessary change
2021-11-23 11:17:56 -05:00
Francisco Moretti
b4699b860e
'imgix.cosmicjs.com' image domain in cms-cosmic example (#31703)
## Bug-fix: 'imgix.cosmicjs.com' image domain is needed for the cms-cosmic example

- Fixes #31702
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

### Solution 
As suggested by the output I got while running the exapmle, I've added the domain to `next.config.js`
```
event - compiled successfully in 129 ms (552 modules)
error - node_modules\next\dist\client\image.js (660:33) @ defaultLoader
Error: Invalid src prop (https://imgix.cosmicjs.com/8efcc570-9a21-11ea-bf2a-2b6ff88d4f06-e73aee30-1db0-11ea-a594-a170ead8b2cb-12.jpg?auto=format,compress,enhance&w=100&h=100) on `next/image`, hostname "imgix.cosmicjs.com" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
null
```


## Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-11-22 22:52:44 +00:00
Francisco Moretti
075fd44ab7
Update README of cms-cosmic example (#31701)
## Documentation / Examples - Update COSMIC_BUCKET_SLUG location in cms-cosmic example
While trying the cms-cosmic example I realized that COSMIC_BUCKET_SLUG  is actually in the **API Access** menu and it's not in the **Basic Settings** menu.
### Screenshots
Here are some screenshots from the two sections:
#### Basic Settings
![basic_settings](https://user-images.githubusercontent.com/16997807/142915282-49fb8321-a01e-4478-9047-29274da36852.png)
#### API Access
![API_access](https://user-images.githubusercontent.com/16997807/142915289-74967622-adbb-405c-a1c8-5c02c2249675.png)

### Testing
I've tried the example using the COSMIC_BUCKET_SLUG from API Access and it worked without issues.
2021-11-22 22:40:16 +00:00
fabienheureux
7b22bb559b
Replace old static path by public | typo (#31573)
An issue in the path of the public directory

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-11-18 12:16:45 +00:00
Gonzalo Pozzo
d550b13b8d
Script examples (#31181)
* Add script component examples

* Update script examples

* Refactor code

* Remove unused files

* Fix linter

* Fix lint error

* Fix prettier
2021-11-16 11:47:12 -05:00
Heyang Zhou
a39a8969d3
Add a swc transform for removal of console.* calls. (#31449) 2021-11-16 10:18:05 +01:00
Jiachi Liu
0afc1d2b5a
Fix storybook styled-jsx example with styled-jsx 5 (#31357)
## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`

x-ref: https://github.com/vercel/styled-jsx/issues/761

Since next.js is using styled-jsx v5 beta now, it requires wrapping a `StyleRegistry` component on the root top.
ref: [styled-jsx doc](https://github.com/vercel/styled-jsx/tree/beta#server-side-rendering)
2021-11-15 11:01:49 +00:00
Max Schmitt
b7f8025c66
examples: Add Playwright testing example (#29426) 2021-11-14 14:17:59 -06:00
Alessandro Ursino
312572d020
examples: fix README with google analytics (#31384) 2021-11-14 14:13:53 -06:00
Rishabh Poddar
f6c62d3b89
Updates with-supertokens example to add sign in with apple (#31200)
Co-authored-by: Lee Robinson <me@leerob.io>
2021-11-12 19:54:28 -06:00
Steve Jarvis
5014362a7a
Fix Auth0 Example (#31284)
Fixes #31286

I was going through the [Auth0 example](https://github.com/vercel/next.js/tree/canary/examples/auth0) and hit the following issue (screencap):

<img width="964" alt="Screen Shot 2021-11-10 at 12 57 41 PM" src="https://user-images.githubusercontent.com/2515575/141226775-08e5e1d3-618c-4fae-a133-70685c7b3ad2.png">

This just updates the call there to pass `res`, which matches the signature documented here: https://auth0.github.io/nextjs-auth0/modules/session_get_session.html

With this fix, the rest of the example worked wonderfully 👍.

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added (NA?)
- [x] Errors have helpful link attached, see `contributing.md`
2021-11-11 03:16:31 +00:00
Vincent Voyer
942c15129c
docs(examples): Update with-iron-session to latest iron-session API (#30956)
Co-authored-by: Lee Robinson <me@leerob.io>
2021-11-09 09:30:15 -06:00
Konstantin Popov
5f38b18b10
Fix minor typos (#31161)
Hello,
I've found some minor typos in the documentation, solved with this PR.
2021-11-08 11:24:53 -06:00
chemicalkosek
9e339fdd1f
Update remark and remark-html dependencies (#31051)
That example errors out on 
```
TypeError: (0 , remark__WEBPACK_IMPORTED_MODULE_0__.remark) is not a function
```
Updating those dependencies fixes the problem.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-11-06 05:55:55 +00:00
Rishabh Poddar
155aaa3153
Optimise bundle size for with-supertokens example (#31040)
This PR optimises the bundle size sent to the frontend for nextJS apps by lazy loading the SuperTokens backend SDK only when it's needed.
2021-11-06 05:28:38 +00:00
Rishabh Poddar
597594d429
Updates dependencies for with-supertokens example (#30162) 2021-11-01 19:07:03 -05:00
stef
5abfea3765
Recommend using next CLI for Docker entrypoint and not yarn (#29024)
Fixes #29023 

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes
2021-11-01 20:26:14 +00:00
Vadym Shymko
bcdfb99e5a
Fix link to Elasticsearch products page (#30752)
Small typo fix in `with-elasticsearch` example

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
2021-11-01 19:22:29 +00:00
Pierre de la Martinière
46ddd8cf60
Update next-transpile-modules to 9.0.0 across examples (#30418)
## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`

It's this time of the year again :^) congrats to the Next.js team for the amazing release!
2021-10-27 09:48:28 +00:00
Steven
9101df75e1
Update image component example to use AVIF (#30294) 2021-10-25 23:28:58 -04:00
Steven
dda14e7f4b
Add image example with background color using blurDataURL (#30111)
Demo: https://nextjs-examples-image-component-igy6n5cs1.vercel.sh/
2021-10-20 19:05:54 +00:00
Katie Byers
8fa5f34186
[examples] Fix deploy button URL in with-sentry example (#30112)
This updates the URL behind the "Deploy to Vercel" button in the readme of the `with-sentry` example. Changes which have been made:

- Addition of a required integration
- Removal of the required env var, as it's set by the integration

- [x] Make sure the linting passes
2021-10-20 18:21:12 +00:00
Rishabh Poddar
6852efff45
Updating with-supertokens example (#29876)
Updating dependency of supertokens-node and providing development OAuth keys for google and github for quicker setup.
2021-10-20 07:00:16 +00:00
George Gach
ac287e67c1
Fixed Favicons URL mismatch across the project in [examples/blog-starter] (#29990)
## Bug
There is URL mismatch about the destination of favicons across the project in [examples/blog-starter](https://github.com/vercel/next.js/tree/canary/examples/blog-starter) i.e. `site.webmanifest` and `meta.js` are in a disagreement, triggering web app manifest initialization errors in Application tab of dev tools. ([relevant file](5edfbf276e/examples/blog-starter/public/favicon/site.webmanifest))

## Fix
This PR: 
1. Renames folder to plural `favicons`
2. Adjusts `favicons/*.png` urls in  `meta.js`
2021-10-19 03:37:44 +00:00
Pedro Rodrigues
00c68f3870
Update mongoose and swr and remove no longer needed connection options (#29934)
I've been playing around with `examples/with-mongodb-mongoose` and this PR updates mongoose and swr which are severely outdated to their most recent major releases.

This PR also removes two options that are no longer needed in the connection configuration when using mongoose 6: `useNewUrlParser` and `useUnifiedTopology`. See [Migrating from 5.x to 6.x - No More Deprecation Warning Options](https://mongoosejs.com/docs/migrating_to_6.html#no-more-deprecation-warning-options).

## Documentation / Examples

- [x] Make sure the linting passes
2021-10-16 06:33:06 +00:00
Mike Osterhout
3910c3890e
Update typescript version (#29854)
Resolves  message using `yarn dev` 

```
warn  - Minimum recommended TypeScript version is v4.3.2, older versions can potentially be incompatible with Next.js. Detected: 4.0.8
```

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2021-10-13 03:52:55 +00:00
Steven
cc1f3b8a38
Add support for AVIF to next/image (#29683)
Add support for AVIF to `next/image`

- Fixes #27882 
- Closes #27432 

## Feature

- [x] Implements an existing feature request
- [x] Related issues linked
- [x] Integration tests added
- [x] Documentation added
- [x] Update manifest output
- [x] Warn when `sharp` is outdated
- [x] Errors & Warnings have helpful link attached
- [ ] Remove `image-size` in favor of `squoosh`/`sharp` (optional, need to benchmark)
2021-10-11 23:17:47 +00:00
Aryan Beezadhur
8eec49208f
Rename utils to lib (#29651)
Rename all instances of `utils` to `lib` in this example to maintain consistency with other examples.
2021-10-05 20:24:19 +00:00
Cole
aeafca2b64
Adding Formspree contact-form example (#29314)
* adding formspree contact-form example

* tweaks to package.json
2021-10-05 15:13:23 -05:00
@whitep4nth3r
9d28142139
Update examples/cms-contentful (#29641)
* Use custom image loader and update deps

* Revert contentful-import downgrade

* bump
2021-10-05 10:34:55 -05:00
Rishabh Poddar
ee900a87ad
Updates supertokens-auth-react dependency version (#29547)
updates supertokens-auth-react dependency version
2021-10-01 09:38:03 -05:00
neb
7cdce8fddd
Add id to inline gtag script (#29530)
## Documentation / Examples

- [x] Make sure the linting passes
2021-09-30 18:12:55 +00:00
Ben Kweon
26633cede2
Fixed MongoParseError (#29277)
I got "MongoParseError: options buffermaxentries, usefindandmodify, usecreateindex are not supported" and fixed it.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes
2021-09-28 17:34:01 +00:00
Aryan Beezadhur
bb8434c17e
Update Prisma example (#29459)
* Correct branch name

* Delete .gitignore

* Update README.md


Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-09-28 11:13:30 -05:00
Reza Baharvand
797dca5913
fix: cover image redirect to undefined (#29311)
fixes #29310

## Bug

- [x] Related issues linked using `fixes #29310`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes
2021-09-22 23:07:12 +00:00
Janicklas Ralph
92d87870af
Update with-segment-analytics example to use next/script component (#29282)
Update with-segment-analytics example to use next/script component
2021-09-22 13:33:37 +00:00
Damian Dzieduch
d105a2689e
switch to Script component on the facebook pixel example (#29192)
## Documentation / Examples

- [x] Make sure the linting passes
2021-09-20 14:24:19 +00:00