- 29 12月, 2020 15 次提交
-
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
This tweaks the new i18n query history test to address intermittent failures in CI x-ref: https://github.com/vercel/next.js/pull/19197#issuecomment-751845314 x-ref: https://github.com/vercel/next.js/pull/19135#issuecomment-751822153 x-ref: https://github.com/vercel/next.js/pull/20379#issuecomment-751821500
-
由 JJ Kasper 提交于
This ensures we handle encoding/decoding for SSG prerendered/fallback pages correctly. Since we only encode path delimiters when outputting to the disk we need to match this encoding when building the `ssgCacheKey` to look-up the prerendered pages. This also fixes non-ascii prerendered paths (e.g. 商業日語) not matching correctly. This does not resolve
👉 https://github.com/vercel/next.js/issues/10084 and further investigation will be needed before addressing non-ascii paths for non-SSG pages. The encoding output was tested against https://tst-encoding-l7amu5b9c.vercel.app/ to ensure the values will match correctly on Vercel. Closes: https://github.com/vercel/next.js/issues/17582 Closes: https://github.com/vercel/next.js/issues/17642 x-ref: https://github.com/vercel/next.js/pull/14717 -
由 Pier-Luc Gendreau 提交于
* Update with-mongodb to be TypeScript-friendly I slightly modified the approach so TypeScript can correctly infer types without actually having to type anything but the global: **index.d.ts** ```ts import { Db, MongoClient } from "mongodb"; declare global { namespace NodeJS { interface Global { mongoCache: { conn: { client: MongoClient | null; db: Db | null; } promise: Promise<MongoClient> | null; }; } } } ``` * lint Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Branden Dane 提交于
-
由 Donavon West 提交于
Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Jens Meindertsma 提交于
* Update with-msw example * Update README * Update examples/with-msw/README.md * lint fix Co-authored-by: NLuis Alvarez D <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Joe Bernard 提交于
* Docs typo fix * Update docs/basic-features/environment-variables.md Co-authored-by: NLachlan Campbell <lachlanjc@hey.com> Co-authored-by: NJoe Haddad <timer150@gmail.com> Co-authored-by: NLachlan Campbell <lachlanjc@hey.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
This PR is an alternative to #20247 which contains tests for the expected behavior. --- Fixes #20198 Closes #20247
-
由 JJ Kasper 提交于
This makes sure we don't generate the wrong locale source variant for the rewrite requiring a `/` on the end which won't ever be added causing the rewrite to never match. Additional tests have been added to ensure this specific rewrite is working correctly. Fixes: https://github.com/vercel/next.js/issues/20508
-
由 JJ Kasper 提交于
This makes sure the query isn't dropped when doing a history navigation with i18n. Additional tests have been added to ensure this is working correctly as well. Fixes: https://github.com/vercel/next.js/issues/20212
-
由 Jesse Jafa 提交于
Normally I wouldn't make a PR for a minor version upgrade, but the 2.0.2 version contains some important performance improvements. https://github.com/tailwindlabs/tailwindcss/pull/3032
-
由 Sung Hah Hwang 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 xiaooye 提交于
Change README from outdated @emotion/core to @emotion/react
-
- 28 12月, 2020 3 次提交
-
-
由 armspkt 提交于
![image](https://user-images.githubusercontent.com/49720317/103223063-07b23000-4958-11eb-8bf9-09c39231a092.png) About page import wrong pathname causing warning like this.
-
由 Laura Beatris 提交于
This PR fixes some typos found on examples docs
-
由 Laura Beatris 提交于
I've looked at the example code and saw some consistent issues related to code style. The changes applied to this PR fixes the following points: - Differences of line breaks styles between multiple files - Differences of if statements styles - Unnecessary comment - A typo on a JSDocs --- There were line breaks between statements on `pages/index.js` ```` export async function getServerSideProps(context) { const { client } = await connectToDatabase() const isConnected = await client.isConnected() return { props: { isConnected }, } } ```` And this wasn't being applied to the MongoDB utility: ```` export async function connectToDatabase() { if (cached.conn) return cached.conn if (!cached.promise) { const conn = {} const opts = { useNewUrlParser: true, useUnifiedTopology: true, } {...} ```` And also, as shown in the snippet above, there are different styles of if statements being used. With that being said, the reason I made this PR is because I think that this kind of inconsistent arises questions when a contributor looks to the codebase, even if this is a simple example.
-
- 26 12月, 2020 1 次提交
-
-
由 Nicolás Figueroa 提交于
Hi
✌ ️ I've seen that many people have problem with implement Google Tag Manager, I've created an example of how insert "Google Tag Manager" in a NextJs app
-
- 23 12月, 2020 4 次提交
-
-
由 JJ Kasper 提交于
-
由 Max Romanyuta 提交于
Upgraded all `http` links to `https` that support the `https` protocol. Llinks ----- - https://github.com/ - https://koajs.com - https://ant.design - https://www.carbondesignsystem.com/components/overview - https://themes.carbondesignsystem.com - https://knexjs.org - https://jxnblk.com/rebass - https://i.imgur.com/JCxtWSj.gif - https://react.semantic-ui.com - https://stomp.github.io - https://videojs.com
-
由 JJ Kasper 提交于
This ensures we show an error for string values for `revalidate` since we currently don't handle these and instead it results in `revalidate: false` being used. This also adds tests for our `revalidate` checks to ensure they are triggered correctly and not triggered for valid values. x-ref: https://github.com/vercel/next.js/issues/20310
-
由 JJ Kasper 提交于
This makes sure redirects to the index route properly end with a trailing slash or don't based on the `trailingSlash` config to ensure an additional redirect doesn't need to take place un-necessarily. Fixes: https://github.com/vercel/next.js/issues/19405
-
- 22 12月, 2020 10 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 Lee Robinson 提交于
Co-authored-by: NLuis Alvarez D. <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Rob 提交于
Changed reference from 'master' to 'main' branch under DPS section in line with GitHub's recent switch from master to main branch as base repo branch names.
-
由 Juny 提交于
Fixes: https://github.com/vercel/next.js/issues/16926 I do not know this is the right way. Please review it.
-
由 Joe Haddad 提交于
This PR fixes webpack 5 compatibility with older betas.
-
由 JJ Kasper 提交于
This ensures the pages-manifest only includes forward slashes and not backslashes when adding i18n page references, this also adds tests ensuring we don't regress on this in the i18n-support test suite. Fixes: https://github.com/vercel/next.js/issues/20330
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
There's currently two bugs with the font optimization, but we'd really like to ship a stable version. To unblock the stable release, we're **temporarily** reflagging this. It'll be unflagged on canary again!
-
由 Tim Neutkens 提交于
Adds profiling for terser and css-minimizer. Will move the old profiler to this new system as well.
-
- 18 12月, 2020 6 次提交
-
-
由 Matt Wood 提交于
When using `getServerSideProps` with Typescript, it looks like it's expecting `req` to be a plain `IncomingMessage` from `http`, but Next middleware (?) is adding `cookies`: ![image](https://user-images.githubusercontent.com/22530815/100816292-680e8a00-340b-11eb-8c40-19ec4f9ea356.png) Here's a reproduction showing the example: https://codesandbox.io/s/nextjs-server-side-props-cookies-vr547?file=/pages/index.tsx In the terminal, you can see that there is a value for cookies, but `IncomingMessage` doesn't include it by default. I still need to get more familiar with all the Next.js internals, but I imagine there are a few other places where this type could be used if cookies are being included. Any help would be appreciated.
-
由 Darsh Patel 提交于
Fixes: #20289 I noticed the following errors about missing icon files while working on the progressive-web-app example <img width="639" alt="Screenshot 2020-12-18 at 9 16 25 AM" src="https://user-images.githubusercontent.com/11258286/102572751-e3ae4d80-4112-11eb-896a-2facfb5e16d3.png"> I've added the missing icon files and updated the path :)
-
由 Vishnu Paduchuri 提交于
Build Fails due to Invalid Token error, adding SENTRY_URL fixed the issue.
-
由 Bogdan Chadkin 提交于
Co-authored-by: NTim Neutkens <timneutkens@me.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Joe Haddad 提交于
-
由 Vitor Barbosa 提交于
This should fix source map config description text.
-
- 17 12月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
Makes https://www.npmjs.com/package/@zeit/next-source-maps a built-in feature so that it can be deprecated.
-