- 10 6月, 2020 10 次提交
-
-
由 Luis Alvarez D 提交于
Related to https://github.com/vercel/next.js/issues/11014 The authentication method has been replaced with an improved version of the passport example.
-
由 James Mosier 提交于
Sorry for the super trivial PR. I noticed this while working with the example and figured it might be worth fixing.
-
由 James Mosier 提交于
If a user does not specify `--example` when using create-next-app then just spin up the default template and only prompt them for the name of their project. if a user does specify `--example` (with no string after it) then show them the example picker. Closes #13960
-
-
由 JJ Kasper 提交于
This adds scroll restoration handling to make sure the correct scroll position is restored after navigating back/forward to a page and the rendering hasn't completed by the time the default browser scroll restoration has taken place. An initial failing test case was added which is working with the changes in this PR, if there are any other cases that should be added let me know and I can make sure we have them to ensure we don't regress on this behavior --- Fixes #12530
-
由 Jason Miller 提交于
This adds [prefresh](https://github.com/JoviDeCroock/prefresh) and [preact/debug + DevTools](https://preactjs.com/guide/v10/debugging/) during development. It also fixes the chunking/splitting configuration for production builds by creating a `preact` chunk based on the existing framework chunk. I'm still considering publishing the config here as a plugin, since I worry about the copy-paste effect on this much regex-foo. /cc @jovidecroock
-
由 Jan Potoms 提交于
Extracted from https://github.com/vercel/next.js/pull/13333, the same exact code lives in that PR as well, but we can merge this separately if it makes reviewing https://github.com/vercel/next.js/pull/13333 easier This PR does 3 things - deduplicate code from build and next-dev-server that loads custom routes from next.config.js (`loadCustomRoutes`) - in `loadCustomRoutes`, load these rewrites, headers and redirects configs concurrently instead of sequentially. - in next-server, make `this.customRoutes` always defined, this allows us to remove the big `if` around its initialization code in `generateRoutes`, which in turn makes it possible to reuse this code for other routing than user defined routes, which is how https://github.com/vercel/next.js/pull/13333 adds its redirects.
-
由 Joe Haddad 提交于
Fixes #13972
-
由 JJ Kasper 提交于
As noticed in https://github.com/vercel/next.js/pull/13506 when a build or export command fails the tests can just stall. This attempts to address that by rejecting when the command doesn't exit correctly and `stdout` and `stderr` aren't being looked at
-
由 Jayden Seric 提交于
- Removed the manual `fetch` polyfill as that is handled automatically by Next.js now. - Updated dependencies, including [`graphql-react`](https://github.com/jaydenseric/graphql-react) and [`next-graphql-react`](https://github.com/jaydenseric/next-graphql-react). - Removed `next.config.js` as it’s no longer required for [`next-graphql-react`](https://github.com/jaydenseric/next-graphql-react). - Renamed the index page component from `Home` to `IndexPage`. - Tweaked the [`graphql-react`](https://github.com/jaydenseric/graphql-react) bundle size mentioned in the readme.
-
- 09 6月, 2020 9 次提交
-
-
由 Sebastian Benz 提交于
Most notable new feature: automated hero image preloading. Release notes: https://github.com/ampproject/amp-toolbox/releases/tag/v2.5.1
-
由 Wilbert Abreu 提交于
Co-authored-by: NWilbert Abreu <wilbert.a.abreu@aexp.com> Co-authored-by: NLuis Alvarez <luis@vercel.com> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Todor Totev 提交于
Co-authored-by: NLuis Alvarez D <luis@vercel.com> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Tim Neutkens 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Shyam Gupta 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Luis Alvarez D 提交于
Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Joe Haddad 提交于
-
由 Tim Neutkens 提交于
Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
-
由 Luis Alvarez D 提交于
Related to https://github.com/vercel/next.js/issues/11014 The setup is very similar to the one used for Apollo examples. @Joezo I've removed the demo example that you added to the readme (https://github.com/vercel/next.js/pull/6482) as it will be outdated after this PR is merged.
-
- 08 6月, 2020 8 次提交
-
-
由 JJ Kasper 提交于
As discussed, this streamlines the handling for `basePath` to not automatically strip and add the `basePath` when provided to `next/link` or `router.push/replace` and only automatically adds the `basePath` and when it is manually provided it will cause a 404 which ensures `href` still matches to the pages directory 1-to-1. This also adds additional test cases that we discussed to ensure this behavior is working as intended --- Fixes #13902
-
由 Luis Alvarez D 提交于
Related to https://github.com/vercel/next.js/issues/11014
-
由 Todor Totev 提交于
* initial * Update tests Co-authored-by: NJoe Haddad <joe.haddad@zeit.co> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Jan Potoms 提交于
-
由 Akindolie Oluwatayo 提交于
Few text corrections.
-
由 not 提交于
-
由 Simon Goldin 提交于
Updating snapshot for https://github.com/vercel/next.js/pull/13732 where the `toMatchSnapshot` expectation moved to another test.
-
由 Jan Potoms 提交于
Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
-
- 07 6月, 2020 3 次提交
-
-
由 Tim Neutkens 提交于
Went through and removed a bunch of internal options which are just pass-through values of buildManifest Closes #13851
-
由 Rafael Almeida 提交于
I added a FAQ section to answer questions I see frequently. Motivation: https://github.com/vercel/next.js/discussions/13625#discussioncomment-23186
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014)
-
- 06 6月, 2020 9 次提交
-
-
由 matamatanot 提交于
**add-comment.js** `writeFile` is not unique to `fs-extra`. **lib/find-page-file.ts** ref: #12026
-
-
由 Shu Uesugi 提交于
[ch579] Some README files in `examples/cms-*` were linking to a documentation markdown file inside the repo (e.g. `/docs/basic-features/pages.md`) instead of the documentation website. We should always link to the documentation website from an example README file because (1) the website has better UX and (2) as we’re creating the examples pages on `next-site` (https://github.com/vercel/next-site/pull/672), we’d like to avoid extra processing of markdown content.
-
由 Rafael Almeida 提交于
I added the commented code with the `AppContext` type to match the example from the [Custom App](https://nextjs.org/docs/advanced-features/custom-app) page. But since this is the TS page I think we could remove these comments and use a clean example, what do you think?
🤔 -
由 Ty Mick 提交于
So I can't *entirely* explain why, but I believe this fixes #13132.
🙈 I basically ended up looking around at other `_next` URLs (are those asset URLs?) around the project and seeing that they tended to use `delBasePath()` to remove the base path from the current page's path whenever it was used. When testing locally with the [repo submitted with the issue](https://github.com/robertovg/next-base-path-example), I no longer experience the constant page-reloading in dev mode when adding a query string to the URL. -
由 Joe Haddad 提交于
Fixes failure seen here: https://github.com/vercel/next.js/pull/13782#issuecomment-639563107
-
由 Dan Williams 提交于
- Fixes the Next.js `with-graphql-hooks` example so that data is prefetched during SSR: - The example was using an old version of `graphql-hooks` where SSR was broken - It had a bug where the `graphql-hooks` client passed in to the `AppTree` as a prop was not being used (instead was creating a new client every time) This resolves https://github.com/nearform/graphql-hooks/issues/439 for `graphql-hooks`.
-
由 Todor Totev 提交于
Related to [this](https://github.com/facebook/create-react-app/pull/8177). Let me know if you want me to change something.
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014). Removed getInitialProps in favor of getStaticProps and getServerSideProps. Refactored one of the components from class to functional. Removed redundant imports. Removed React.FC/FunctionComponent. Added two build files to gitignore. Let me know if you want something to be changed.
-
- 05 6月, 2020 1 次提交
-
-
由 Luis Alvarez D 提交于
Based on https://github.com/vercel/next.js/pull/13607 - I created a new PR as I can't push changes to the initial PR. Migrated the Apollo client to use SSG, also removed the link to the live demo because I don't know who the owner is or how to update the deployment. The implementation is pretty simple and will be added to all the other Apollo examples
-