- 21 6月, 2020 2 次提交
-
-
由 Tim Neutkens 提交于
Updates the way filenames are generated for browser compilation. Notably: - All entry bundles now have hashes in production, this includes pages (previously pages used a buildId in the path) - The AmpFiles no longer depends on hardcoded bundle names, it uses the buildManifest instead (internals) - All cases where we match the page name from the chunk/entrypoint name now use the same function `getRouteFromEntrypoint` (internals) - In development we no longer include the "faked" `buildId` set to `development` for page files, instead we just use the `/_next/static/pages` path (was `/_next/static/development/pages`). This was changed as it caused unneeded complexity and makes generating the bundles easier (internals) - Updated tons of tests to be more resilient to these changes by relying on the buildManifest instead of hardcoded paths (internals) Follow up of these PRs: https://github.com/vercel/next.js/pull/13759 https://github.com/vercel/next.js/pull/13870 https://github.com/vercel/next.js/pull/13937 https://github.com/vercel/next.js/pull/14130 https://github.com/vercel/next.js/pull/14176 https://github.com/vercel/next.js/pull/14268 Fixes #6303 Fixes #12087 Fixes #1948 Fixes #4368 Fixes #4255 Fixes #2548
-
由 Sebastian Sycz 提交于
Today the https://github.com/nearform/graphql-hooks/commit/cd4178b53ed20d220fa0e01ba498af6b86bfca35 of graphl-hooks and graphl-hooks-memcache has been released, which fixes the problem with Safari.
-
- 20 6月, 2020 2 次提交
-
-
由 Todor Totev 提交于
* Remove getInitialProps * added swr * Update examples/with-cookie-auth-fauna/pages/profile.js Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-cookie-auth-fauna/pages/profile.js Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * no longer needed * new .env support * redirect if not found * always use latest next version * no longer needed * Updated readme * Updated profile page * Fixed readme and added deploy button Co-authored-by: NLuis Alvarez D. <luis@vercel.com>
-
由 JJ Kasper 提交于
This corrects the `/_next/data` path generated when using `basePath` with `getStaticProps` in a `pages/index.js` file which was previously stripping the `basePath` without checking if `/index` needed to be appended after stripping. This also adds additional checks to the `basePath` test suite to prevent regressing x-ref: https://github.com/vercel/next.js/pull/9872#issuecomment-646841260
-
- 19 6月, 2020 3 次提交
-
-
由 Ty Mick 提交于
Just a quick typo fix for some test names.
-
由 Bing Quan 提交于
* Update Algolio's Instant Search Example - Moved from `getInitialProps` to `getServerSideProps` - Update Algolio libraries Co-authored-by: NArsalan Khattak <akkhattak65@gmail.com> * Shift from SSR to CSR Co-authored-by: NArsalan Khattak <akkhattak65@gmail.com>
-
由 Thor 雷神 提交于
r? @lfades cc @timothyis @dayhaysoos @ChrisBrownie55 * Add [use-shopping-cart](https://github.com/dayhaysoos/use-shopping-cart) example to stripe sample * Refactor how we instantiate Stripe across the different pages with a `getStripe` singleton pattern.
-
- 18 6月, 2020 6 次提交
-
-
由 JJ Kasper 提交于
This moves the experimental `basePath` config out of the `experimental` section to prepare it for being stable
-
由 stefanprobst 提交于
this updates some links to the docs site to their new location
-
由 Darsh Patel 提交于
Added proper content security policies in the dev environment fixes: #14221
-
由 Balázs Orbán 提交于
-
由 Shu Uesugi 提交于
Fixes #14291
-
由 Joe Haddad 提交于
Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-
- 17 6月, 2020 9 次提交
-
-
由 Tim Neutkens 提交于
Tweaked the config that can already be updated a bit.
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
This toggles the separate Windows `devtool` setting for WSL. We cannot test this as we do not have access to WSL in our current test setup suite, however, this is a temporary patch that should be fixed with the webpack 5 upgrade, so I do not feel strongly about testing it. --- Fixes #14253
-
由 Joe Haddad 提交于
This makes Next.js render a better error message when `undefined` (or null) is returned from `getStaticProps` or `getServerSideProps`. --- Fixes #11139
-
由 Vorathep Sumetphong 提交于
Crashes the site This change fixes the example examples/with-cookie-auth-fauna/pages/profile.js
-
由 Bowen 提交于
It is an English grammar fix for the sentence, so that the user can better understand the documentation.
-
由 JJ Kasper 提交于
Updates to not build the path from scratch here and relies on `getPagePath` instead Closes: https://github.com/vercel/next.js/issues/14223
-
由 Gourav Goyal 提交于
Added missing .env.local.example file for with example firebase-authentication-app. I've tested it personally and it is working fine.
-
由 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
-