- 12 Nov, 2020 12 commits
-
-
Joe Haddad authored
-
Joe Haddad authored
-
Ludovico Fischer authored
-
Mihai Pocorschi authored
-
Joe Haddad authored
-
George authored
-
Joe Haddad authored
Fixes #18518
-
JJ Kasper authored
-
JJ Kasper authored
-
Yann Pringault authored
Co-authored-by:Luis Alvarez D <luis@vercel.com>
-
jose-donato authored
Example for adding a service worker without any plugin or custom server
-
Lucas Varela authored
* Add info about SENTRY_URL on source map uploading * Update examples/with-sentry/README.md Co-authored-by:
Lee Robinson <me@leerob.io> Co-authored-by:
Luis Alvarez D <luis@vercel.com>
-
- 11 Nov, 2020 16 commits
-
-
Vyacheslav Konyshev authored
-
Jose Manuel Casani Guerra authored
## Change - Update package versions - Replace @storybook/addons, @storybook/addon-actions to @storybook/addon-essentials - Replace examples of button, the action function is legacy: https://storybook.js.org/docs/react/essentials/actions#advanced--legacy-usage
-
Marco Valsecchi authored
Use useRouter over Router and add a workaround for the issue #11639
-
JJ Kasper authored
This ensures the mixed `notFound`/`redirect` error is shown correctly and adds an err.sh for the error. Closes: https://github.com/vercel/next.js/issues/18727
-
JJ Kasper authored
This fixes a few things related to optional catch-all routes and i18n. The first thing is it ensures the correct data route is generated on the client so that the locale isn't duplicated for an optional catch-all route, the next is it ensures the browser history is updated correctly when only a locale change is occurring, and then it also ensures we handle the locales and normalizing for fallback optional catch-all pages correctly. Tests have been added to ensure these cases are covered properly and we don't regress on them, these changes were also tested on Vercel [here](https://next-js-bug-i18n-root-params-nybg44l0b.vercel.app/) Fixes: https://github.com/vercel/next.js/issues/18633 Fixes: https://github.com/vercel/next.js/issues/19059
-
Daniel Stocks authored
Added `<Html>` and `<Head>` components in the custom `_document.js` for the with-fela example package This fixes an issue where fela `<style>` tags were not added and sent as part of the server-side rendered HTML payload, causing a FOUC.
-
Joe Haddad authored
-
Joe Haddad authored
This pull request completely replaces our old page loader with a brand new route loader. Our existing comprehensive test suite means I did not need to add a bunch of tests. I did add them where behavior was added or fixed. Summary of the changes: - Eagerly evaluates prefetched pages in browser idle time (speeds up transitions) - Router is **no longer frozen** indefinitely if the Build Manifest never arrives - Router is **no longer frozen** indefinitely if a page fails to bootstrap - New `withFuture` utility instead of ad-hoc deduping per resource - Prefetching is now delayed until browser idle time to not impact TTI - Browsers without `prefetch` now fall back to eager evaluation instead of using `preload` - We're now ready to serve non-static assets **with `no-store` without breaking prefetching** - **Application can now hydrate without fetching CSS assets—this is a huge performance win that was previously blocking hydration** --- The minor size increase here is unfortunate, but we have to incur it for correctness. --- Fixes #18389 Fixes #18642
-
JJ Kasper authored
-
Steven authored
Fixes #18356
-
Kristoffer K authored
**What's the problem this PR addresses?** https://github.com/vercel/next.js/pull/18768 started to ncc `@babel/plugin-transform-runtime` which broke its Yarn PnP support since the version of `resolve` it uses can't be patched by Yarn. Fixes https://github.com/yarnpkg/berry/runs/1359235077?check_suite_focus=true#step:5:79 cc @guybedford **How did you fix it?** Resolve the absolute path to `@babel/runtime` so it doesn't have to go through `resolve` --- Fixes https://github.com/vercel/next.js/issues/19026
-
Daniel K authored
This confused me a lot, because in the case of `withBundleAnalyzer({})` it will ignore any previous config and basically override everything. Furthermore, it makes more sense to move the call with `enabled` option inside so it's aligned with other plugins approach. -
JJ Kasper authored
Updates to the latest version of `chokidar` x-ref: https://github.com/vercel/next.js/issues/17416
-
JJ Kasper authored
This ensures we match the `basePath` handling for redirects in `next.config.js` with redirects from `getStaticProps` and `getServerSideProps` and also adds a separate test suite to ensure GS(S)P redirects with `basePath` work correctly Fixes: https://github.com/vercel/next.js/issues/18984 Closes: https://github.com/vercel/next.js/pull/18892
-
JJ Kasper authored
This ensures we use the `defaultLocale` for a locale domain when rendering non-static pages. Static pages will initially contain the global `defaultLocale` and then be updated on the client since we don't currently prerender a version of the pages for each locale domain. Closes: https://github.com/vercel/next.js/issues/18970
-
Kanitkorn Sujautra authored
In `with-typescript-eslint-jest` example, `identity-obj-proxy` is being used here, but it's not in `package.json` yet. https://github.com/vercel/next.js/blob/5b1be2bb980c4cad7e543a9f150c1a1c50a6c0f3/examples/with-typescript-eslint-jest/jest.config.js#L14 This PR adds `identity-obj-proxy` to `package.json`.
-
- 10 Nov, 2020 12 commits
-
-
Lyderic Dutillieux authored
Changed function name from "getStaticProps" to "getStaticPaths" in Exception message thrown when 'paths' is invalid.
-
Ante Sepic authored
If the example is cloned and ran with no further setup (no environment variables set up), it will error out because `extractPostEntries` will return `undefined` which can not be serialized by `getStaticProps `. This PR basically ensures that we return an empty array instead of the `undefined` for a collection of posts, and a `null` instead of the `undefined` for a single post.
-
Callum Booth authored
Helps with https://github.com/pmndrs/zustand/issues/182 I have seen the comments from this PR https://github.com/vercel/next.js/pull/11222#pullrequestreview-406998918 and this PR matches the with-redux example.
-
Ash Connell authored
* Add with-knex example * Fix with-knex README typo Co-authored-by:
Ash Connell <hello@ashconnell.com> Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Joe Haddad authored
-
Gerald Monaco authored
Co-authored-by:Joe Haddad <joe.haddad@zeit.co>
-
WeichienHung authored
Fixes https://github.com/vercel/next.js/issues/16550 Add a graphql mutation operation in this example. The changes are: 1. Define mutation in schema `type-defs.graphqls` 2. Add mutation to `viewer.graphql ` that compiled to typescript code. 3. Add mutation resolver in `resolvers.ts` 4. [UI] add a input box and button to submit mutation request to change name. screenshot of change 
-
Steven authored
We fixed this in a previous PR but there were no tests for `.ico` so this PR adds a test for it to ensure we don't regress. Similar to SVG, we bypass ICO because it typically contains multiple sizes in a single file. Closes #18600
-
JJ Kasper authored
-
Steven authored
This PR moves the `<a>` element inside the `<svg>` element.
-
Joe Haddad authored
-
Steven authored
Fixes #18563 by adding the etag header to the optimized image response. This does _not_ change the expireAt (TTL) for cached files on the server, which still uses the max-age of the upstream response. The new file format on disk for cached image files is the following: ``` .next/cache/images/<HASHED_QUERYSTRING>/<EXPIREAT>.<ETAG>.<EXT> ```
-