- 17 6月, 2020 1 次提交
-
-
由 João Pedro Schmitz 提交于
Hey guys, thanks for the amazing job you are doing
💜 This PR fixes a small error I faced when starting a project with Prismic + Next.js. Since the version on the `cms-prismic` example was fixed to `9.2.3-canary.26` I was having the following error because the example uses the environment variables feature that is for Next.js 9.4+ <img width="1256" alt="Screen Shot 2020-06-16 at 12 13 38" src="https://user-images.githubusercontent.com/26466516/84793626-bc43c000-afcb-11ea-8823-b1dee30dbb00.png"> After updating to the latest version, I could run it successfully. ps: I also realized that the `cms-contentful` example was also not using the `latest` version, so I decided to update it (I have not tested, but the error certainly will happen). ps2: if you want to reproduce the error, just create a project using the example and add dummy data on the environment variables, then start the server and access `http://localhost:3000`.
-
- 16 6月, 2020 7 次提交
-
-
由 James Mosier 提交于
[In this Discussion](https://github.com/vercel/next.js/discussions/14220) it appears that trying to build the `with-react-intl` example with a Windows machine throws an error. So instead of using `execFileSync` to execute the command, I used [`cross-spawn` ](https://www.npmjs.com/package/cross-spawn) for better cross platform compatibility.
-
由 JJ Kasper 提交于
This updates the named regexes output in the `routes-manifest` and the associated `routeKeys` to not use any non-word characters as this breaks the named regexes e.g. `"Invalid regular expression: "^/(?<data\-provider\-id>[^/]+?)(?:/)?$"` x-ref: https://github.com/zeit/now/pull/4355
-
由 Darsh Patel 提交于
The example was using class-based component for custom _app, switched to functional component approach. **Sidenote:** The existing code didn't gave an error when navigated to a new page using the navbar ![Screenshot 2020-06-16 at 2 47 52 PM](https://user-images.githubusercontent.com/11258286/84760988-6cbebd80-afe6-11ea-9b7f-98aca7404895.png)
-
由 Ty Mick 提交于
Fixes #14187, where the [GraphQL Hooks Example](https://github.com/vercel/next.js/tree/canary/examples/with-graphql-hooks), when opened in Safari, doesn't respond to events in production and doesn't load at all in the dev server. This is caused by [a bug in graphql-hooks-memcache@1.3.2](https://github.com/nearform/graphql-hooks/issues/496), which they've fixed but haven't released the fix yet. So this example fix just temporarily downgrades graphql-hooks-memcache by changing its version range to `1.3.1 || ^1.3.3`.
-
由 Arsalan Khattak 提交于
-
由 Prateek Bhatnagar 提交于
- ignores the link tags which do not have literal href e.g. `<link rel="stylesheet" href={props.href} />`
-
由 Jesse 提交于
* added graphcms * Updated readme and environment variables * Removed gitignore * Updated tailwind config * Some fixes in pages * Updated api endpoints * lint fix * Updated readme * Updated og image * Updated cms examples to include this one * Added example to docs * Added preview demo link * Updated step Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
- 15 6月, 2020 5 次提交
-
-
由 Tim Neutkens 提交于
-
由 Darsh Patel 提交于
Updated the `validatePassword` function as mentioned in https://github.com/vercel/next.js/issues/14174#issue-638626374 also fixed the password validation logic in `signIn` function Fixes: https://github.com/vercel/next.js/issues/14174
-
由 stefanprobst 提交于
-
由 Sebastian Benz 提交于
-
由 Todor Totev 提交于
* Remove getInitialProps * update package * Applied requested changes. * thats essential so im bringing it back * make sure getstaticprops doesnt throw * proper versioning * requested changes * Updated readme and package.json * Updated pages Co-authored-by: NLuis Alvarez D <luis@vercel.com>
-
- 14 6月, 2020 2 次提交
-
-
由 Tim Neutkens 提交于
Drops the entrypoint instead of removing the underlying file.
-
由 Robert Valmassoi 提交于
-
- 13 6月, 2020 4 次提交
-
-
由 JJ Kasper 提交于
Noticed a few things that could be updated to make running the stats locally better e.g. if the folder name didn't match the name of the repo in the `stats-config.js` file it would fail to run and the `yarn` cache could break diffing from a cached package being used instead
-
由 Alexej Dyschelmann 提交于
This is probably a pretty subjective change, but one might argue it less complex and may have minimally less overhead.
-
由 Luis Alvarez D 提交于
[ch3235]
-
由 JJ Kasper 提交于
This adds a test case for the `document.title` not being updated by the time `routeChangeComplete` is fired. This should have been made consistent with https://github.com/vercel/next.js/pull/13287 so should be able to be closed now Closes: https://github.com/vercel/next.js/issues/6025
-
- 12 6月, 2020 17 次提交
-
-
由 Tim Neutkens 提交于
-
由 Li Ming 提交于
Example: with-ant-design-pro-layout-less needs TypeScript support. ![image](https://user-images.githubusercontent.com/1228449/84468957-ee4ade80-acba-11ea-9438-e1a0e40493f2.png)
-
由 Shu Uesugi 提交于
This is a quick fix for https://github.com/vercel/next.js/pull/14053 - the deploy buttons on CMS examples should be using `envLink` for the links. ## Before <img width="565" alt="Screen Shot 2020-06-11 at 7 23 58 PM" src="https://user-images.githubusercontent.com/992008/84458119-21d52c80-ac19-11ea-9659-df6830fc7584.png"> ## After <img width="570" alt="Screen Shot 2020-06-11 at 7 23 33 PM" src="https://user-images.githubusercontent.com/992008/84458089-1255e380-ac19-11ea-81ff-bc2b58af3ea4.png">
-
由 Luis Alvarez D 提交于
-
由 Luis Alvarez D 提交于
Fixes readme updates added in https://github.com/vercel/next.js/pull/14100
-
由 Mileta Dulović 提交于
I tried creating CMS with ```Strapi``` by following [this README.MD](https://github.com/M1ck0/next.js/tree/canary/examples/cms-strapi). After configuring everything I noticed that app isn't working. This is error that occured on ```yarn dev``` ![image](https://user-images.githubusercontent.com/19279947/84417177-8d1cff80-ac15-11ea-942a-4acf9b9b8bcb.png) After logging data that is sent to ```<Avatar/>``` component I noticed that ```picture``` is actually an ```Array```. ![image](https://user-images.githubusercontent.com/19279947/84417337-c05f8e80-ac15-11ea-9cf5-a6890bc1744b.png) After modifying code bellow everything works as it should and CMS works properly.
-
由 Matthew Sweeney 提交于
This PR updates the `with-userbase` example with the following changes: - Removes the `vercel.json` file, this is no longer needed with [recent changes](https://vercel.com/docs/v2/build-step#environment-variables). - Changes the URL of the Deploy Button to use `?env`, `?envLink`, and `?envDescription` query strings, these prompt for environment variables upon import. - Updates the instructions to reflect the changes made to the import and deployment process.
-
由 Jason Miller 提交于
Should fix https://github.com/vercel/next.js/pull/13976#issuecomment-641677695 /cc @monsonjeremy - let me know if this work for you.
-
由 Luis Alvarez D 提交于
[ch2502] - Added new import flow to every CMS example, using the deploy button, and removed `vercel.json` - Replaced `dotenv` with the new env support in outdated examples
-
由 Tim Neutkens 提交于
Fixes #9326
-
由 Sebastian Benz 提交于
This addresses the problem of the optimizer postinstall hook causing delayed installs if run behind a proxy. See https://github.com/ampproject/amp-toolbox/issues/832 Fixes #14070
-
由 Joe Haddad 提交于
Fixes #14093
-
由 HYUNSANG HAN 提交于
Links of the example about `custom-server-koa` were wrong, so I fixed them.
-
由 Joe Haddad 提交于
Fixes #14085
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014)
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014)
-
由 JJ Kasper 提交于
This adds a test case to ensure hard navigating when a client bundle fails to load is occurring correctly x-ref: https://github.com/vercel/next.js/issues/13516
-
- 11 6月, 2020 4 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
To make `asPath` consistent with `basePath` handling this makes sure it is always stripped including on the client under the `asPath` value and from `req.url` in the `serverless-loader`. Additional tests have been added for this behavior to ensure we don't regress on this Closes: https://github.com/vercel/next.js/issues/14037 Closes: https://github.com/vercel/next.js/issues/14039
-
由 Tim Neutkens 提交于
-