- 25 7月, 2020 5 次提交
-
-
由 Joe Haddad 提交于
-
由 Robin Tom 提交于
This PR adds example for #15073 > - [ ] `rewrites` For [docs/api-reference/next.config.js/rewrites.md](https://github.com/vercel/next.js/blob/canary/docs/api-reference/next.config.js/rewrites.md)
-
由 Jan Potoms 提交于
- Reduce jest retries to 2 for a total of 3 attempts - Disable retries in `invalid-href` test. I noticed jest retries don't help when this test fails (see log output of https://github.com/vercel/next.js/runs/904147534).
-
由 Tim Neutkens 提交于
Forces all Next.js users to have this patch installed: https://twitter.com/timneutkens/status/1282129714627448832 Huge thanks to @paulmillr and @sokra
🙏 -
由 Arsalan Khattak 提交于
* Add with-sitemap Example * Update README * Update examples/with-sitemap/scripts/generate-sitemap.js Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-sitemap/package.json Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-sitemap/public/sitemap.xml Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update README * Add .env Info to README * Update examples/with-sitemap/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-sitemap/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-sitemap/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-sitemap/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> Co-authored-by: NLuis Alvarez D. <luis@vercel.com>
-
- 24 7月, 2020 3 次提交
-
-
由 Luis Alvarez D 提交于
-
由 Mehedi Hassan 提交于
* More helpful README Updated to include more details about Next.js, link to the interactive tutorial, showcase, etc. Content mostly based on the official Next.js site. * create-next-app readme An updated readme with more details on options, benefits, etc. * Apply edits from code review Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Remove redundant intro * Update packages/create-next-app/README.md * Remove introduction and list in showcase * Apply suggestions from code review * Update packages/next/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Colleen O'Rourke 提交于
* Update Sentry example for use with Sentry/Vercel integration * update linting * Update link in readme * Update readme, add comment * Add step about commit SHA * Updated readme * Use if * dont call sentry webpack plugin w/o a commit sha present * Update examples/with-sentry/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * update release value * prettier readme * Updated note Co-authored-by: NLuis Alvarez <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 23 7月, 2020 2 次提交
-
-
由 Jan Potoms 提交于
-
由 Ado Kukic 提交于
* MongoDB Example * Apply suggestions from code review * Add changes based on feedback. * clean up code with more descriptive props * Use MongoDB in ServerSideProps instead of separate API route * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> * Update examples/with-mongodb/README.md Co-authored-by: NLuis Alvarez D. <luis@vercel.com> Co-authored-by: NLuis Alvarez D <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 22 7月, 2020 4 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Fixes #15342
-
由 Jan Potoms 提交于
-
由 Bruno Bernardino 提交于
-
- 21 7月, 2020 12 次提交
-
-
由 Darsh Patel 提交于
-
由 Tony Spiro 提交于
Co-authored-by: NLuis Alvarez D <luis@vercel.com>
-
-
由 Luis Alvarez D 提交于
The statement is not true, we provide mocks for `req` and `res`.
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 Jan Potoms 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Obed Marquez Parlapiano 提交于
-
由 Joe Haddad 提交于
-
由 Tim Neutkens 提交于
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Closes #15330
-
- 20 7月, 2020 8 次提交
-
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Bogdan Chadkin 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Darsh Patel 提交于
Low hanging fruit
🍎 Resolves: #15321 `https://react-md.mlaursen.com/` -> `https://react-md.dev/` -
由 Joe Haddad 提交于
-
由 Tim Neutkens 提交于
This particular variable was not being read correctly. Added a test for the behavior. Fixes #15261
-
由 Joe Haddad 提交于
* Do not duplicate compilation errors * Add tests * Attempt to fix test * Fix test
-
- 19 7月, 2020 6 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 Ayush 提交于
-
由 Jan Potoms 提交于
Fixes https://github.com/vercel/next.js/issues/15188 `parseRelativeUrl` was used on urls that weren't always relative. It was used to generate a cache key, but we actually don't need these cache keys to be relative if the urls aren't relative. Also took a look at the overall static data fetching logic and found a few things: - [x] cache key is unnecessarily transformed through `prepareRoute`, we can just cache by resolved `dataHref` and remove that function. Pretty sure that `prepareRoute` was also introducing edge cases with `assetPath` and `delBasePath` - [x] there is [a bug in the caching logic](https://github.com/vercel/next.js/blob/ebdfa2e7a3f8e22e03b94dfb5f00481bf06254b6/packages/next/next-server/lib/router/router.ts#L898) that made it fail on the second visit: it should be `Promise.resolve(this.sdc[pathname])` instead of `Promise.resolve(this.sdc[dataHref])`. Also added a test for this - [x] ~converted to async await to improve stacktraces and readability.~ I assumed this was fine since I saw some async/awaits in that file already but it seems to just blow up the size of the non-modern bundle. - [x] extracted nested `getResponse` function and define it top level. this should improve runtime performance - [x] convert `_getStaticData` and `_getServerData` to class methods instead of properties. Not sure why they were defined as properties but I think they belong on the prototype instead. - [x] remove `cb` property from `fetchNextData`, it's unnecessary and makes the async flow hard to understand. The exact same logic can go in the `.then` instead. - [ ] data fetching logic [retries on 5xx errors](https://github.com/vercel/next.js/blob/ebdfa2e7a3f8e22e03b94dfb5f00481bf06254b6/packages/next/next-server/lib/router/router.ts#L157), but not on network level errors. It should also retry on those. It should also not retry on every 5xx, probably only makes sense on 502, 503 and 504. (e.g. 500 is a server error that I wouldn't expect to succeed on a retry) The overall result also is a few bytes smaller in size
-