language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/amp-first/README.md | @@ -1,6 +1,6 @@
# AMP First Boilerplate ⚡
-This example sets up the boilerplate for an AMP First Site. You can see a live version [here](https://my-next-app.sebastianbenz.now.sh). The boilerplate includes the following features:
+This example sets up the boilerplate for an AMP First Site. You can see a live version ... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/auth0/README.md | @@ -49,7 +49,7 @@ Then, open `.env.local` and add the missing environment variables:
- `AUTH0_CLIENT_SECRET` - Can be found in the Auth0 dashboard under `settings`.
- `NEXT_PUBLIC_REDIRECT_URI` - The url where Auth0 redirects back to, make sure a consistent url is used here.
- `NEXT_PUBLIC_POST_LOGOUT_REDIRECT_URI` ... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/blog-starter-typescript/lib/constants.ts | @@ -1,4 +1,4 @@
export const EXAMPLE_PATH = 'blog-starter-typescript'
export const CMS_NAME = 'Markdown'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Starter%20Example.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesig... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/blog-starter/lib/constants.js | @@ -1,4 +1,4 @@
export const EXAMPLE_PATH = 'blog-starter'
export const CMS_NAME = 'Markdown'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Starter%20Example.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-agilitycms/README.md | @@ -6,8 +6,8 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-- **Live**: [https://next-blog-agilitycms.now.sh/](https://next-blog-agilitycms.now.sh/)
-- **Preview Mode**: [https://next-blog-agilitycms.now.sh/?agilitypreviewkey=...](https://next-blog-agilitycms.now.sh/?a... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-agilitycms/lib/constants.js | @@ -4,4 +4,4 @@ export const CMS_URL = 'https://www.agilitycms.com'
export const CMS_LANG = 'en-us'
export const CMS_CHANNEL = 'website'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Agility%20CMS**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.zeit... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-buttercms/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-[https://next-blog-buttercms.now.sh/](https://next-blog-buttercms.now.sh/)
+[https://next-blog-buttercms.vercel.app/](https://next-blog-buttercms.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-buttercms/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-buttercms'
export const CMS_NAME = 'ButterCMS'
export const CMS_URL = 'https://buttercms.com/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**ButterCMS**.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-contentful/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-### [https://next-blog-contentful.now.sh/](https://next-blog-contentful.now.sh/)
+### [https://next-blog-contentful.vercel.app/](https://next-blog-contentful.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-contentful/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-contentful'
export const CMS_NAME = 'Contentful'
export const CMS_URL = 'https://www.contentful.com'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Contentful**.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2F... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-cosmic/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-cosmic'
export const CMS_NAME = 'Cosmic'
export const CMS_URL = 'https://cosmicjs.com/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Example%20Blog%20with%20**Cosmic**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-datocms/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-[https://next-blog-datocms.now.sh/](https://next-blog-datocms.now.sh/)
+[https://next-blog-datocms.vercel.app/](https://next-blog-datocms.vercel.app/)
### Related examples
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-datocms/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-datocms'
export const CMS_NAME = 'DatoCMS'
export const CMS_URL = 'https://www.datocms.com/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**DatoCMS**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.verce... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-ghost/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-ghost'
export const CMS_NAME = 'Ghost'
export const CMS_URL = 'https://ghost.org/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Example%20Blog%20with%20**Ghost**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%2Fimag... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-graphcms/README.md | @@ -4,10 +4,10 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-- **Live**: [https://next-blog-graphcms.now.sh/](https://next-blog-graphcms.now.sh/)
-- **Preview Mode**: [https://next-blog-graphcms.now.sh/api/preview...](https://next-blog-graphcms.now.sh/api/preview?secr... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-graphcms/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-graphcms'
export const CMS_NAME = 'GraphCMS'
export const CMS_URL = 'https://graphcms.com/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**GraphCMS**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.verce... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-kontent/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-kontent'
export const CMS_NAME = 'Kontent'
export const CMS_URL = 'https://kontent.ai'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Kontent**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-prismic/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-### [https://next-blog-prismic.now.sh/](https://next-blog-prismic.now.sh/)
+### [https://next-blog-prismic.vercel.app/](https://next-blog-prismic.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-prismic/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-prismic'
export const CMS_NAME = 'Prismic'
export const CMS_URL = 'https://prismic.io/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Prismic**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-sanity/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-### [https://next-blog-sanity.now.sh/](https://next-blog-sanity.now.sh/)
+### [https://next-blog-sanity.vercel.app/](https://next-blog-sanity.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-sanity/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-sanity'
export const CMS_NAME = 'Sanity'
export const CMS_URL = 'https://sanity.io/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Sanity**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%2Fi... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-storyblok/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-[https://next-blog-storyblok.now.sh/](https://next-blog-storyblok.now.sh/)
+[https://next-blog-storyblok.vercel.app/](https://next-blog-storyblok.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-storyblok/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-storyblok'
export const CMS_NAME = 'Storyblok'
export const CMS_URL = 'https://www.storyblok.com/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Storyblok**.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fass... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-strapi/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-[https://next-blog-strapi.now.sh/](https://next-blog-strapi.now.sh/)
+[https://next-blog-strapi.vercel.app/](https://next-blog-strapi.vercel.app/)
## Deploy your own
@@ -179,7 +179,7 @@ You should now be ... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-strapi/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-strapi'
export const CMS_NAME = 'Strapi'
export const CMS_URL = 'https://strapi.io/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**Strapi**.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2F... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-takeshape/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-### [https://next-blog-takeshape.now.sh/](https://next-blog-takeshape.now.sh/)
+### [https://next-blog-takeshape.vercel.app/](https://next-blog-takeshape.vercel.app/)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-takeshape/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-takeshape'
export const CMS_NAME = 'TakeShape'
export const CMS_URL = 'https://www.takeshape.io/'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**TakeShape**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fasset... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-wordpress/README.md | @@ -4,7 +4,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
## Demo
-### [https://next-blog-wordpress.now.sh](https://next-blog-wordpress.now.sh)
+### [https://next-blog-wordpress.vercel.app](https://next-blog-wordpress.vercel.app)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/cms-wordpress/lib/constants.js | @@ -2,4 +2,4 @@ export const EXAMPLE_PATH = 'cms-wordpress'
export const CMS_NAME = 'WordPress'
export const CMS_URL = 'https://wordpress.org'
export const HOME_OG_IMAGE_URL =
- 'https://og-image.now.sh/Next.js%20Blog%20Example%20with%20**WordPress**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.ve... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-apollo/README.md | @@ -8,7 +8,7 @@ This example relies on [Prisma + Nexus](https://github.com/prisma-labs/nextjs-gr
## Demo
-[https://next-with-apollo.now.sh](https://next-with-apollo.now.sh)
+[https://next-with-apollo.vercel.app](https://next-with-apollo.vercel.app)
## Deploy your own
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-graphql-faunadb/components/GuestbookEntry.js | @@ -25,7 +25,7 @@ export default function GuestbookEntry(props) {
>
<img
className={guestbookEntryUserDetailAvatarImg.className}
- src={`https://twitter-avatar.now.sh/${props.twitter_handle}/`}
+ src={`https://twitter-avatar.vercel.app/${props.t... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-graphql-react/pages/index.js | @@ -3,7 +3,7 @@ import { useGraphQL } from 'graphql-react'
export default function IndexPage() {
const { loading, cacheValue: { data } = {} } = useGraphQL({
fetchOptionsOverride(options) {
- options.url = 'https://graphql-pokemon.now.sh'
+ options.url = 'https://graphql-pokemon.vercel.app'
},
... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-iron-session/README.md | @@ -8,7 +8,7 @@ It uses current best practices for authentication in the Next.js ecosystem.
- [Static Generation](https://nextjs.org/docs/basic-features/pages#static-generation-recommended) (SG), recommended example
- [Server-side Rendering](https://nextjs.org/docs/basic-features/pages#server-side-rendering) (SSR) ... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-iron-session/pages/index.js | @@ -25,7 +25,7 @@ const Home = () => (
1. <b>no `getInitialProps`</b> to ensure every page is static
<br />
2. <b>`useUser` hook</b> together with `
- <a href="https://swr.now.sh/">swr`</a> for data fetching
+ <a href="https://swr.vercel.app/">swr`</a> for data fetching
</p>
<... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-magic/README.md | @@ -2,7 +2,7 @@
This example shows how to use [Magic](https://magic.link) with Next.js. The example features cookie-based, passwordless authentication with email-based magic links.
-The example shows how to do a login and logout; and to get the user info using a hook with [SWR](https://swr.now.sh).
+The example sh... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-mux-video/README.md | @@ -30,7 +30,7 @@ yarn create next-app --example with-mux-video with-mux-video-app
This example uses:
-- [SWR](https://swr.now.sh/) — dynamically changing the `refreshInterval` depending on if the client should be polling for updates or not
+- [SWR](https://swr.vercel.app/) — dynamically changing the `refreshInter... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-passport-and-next-connect/README.md | @@ -2,7 +2,7 @@
This example creates a basic [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) app using [next-connect](https://github.com/hoangvvo/next-connect) and cookie-based authentication with [Passport.js](http://www.passportjs.org/). The cookie is securely encrypted using [@hapi/iron](htt... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-passport/README.md | @@ -2,7 +2,7 @@
This example show how to use [Passport.js](http://www.passportjs.org) with Next.js. The example features cookie based authentication with username and password.
-The example shows how to do a login, signup and logout; and to get the user info using a hook with [SWR](https://swr.now.sh).
+The exampl... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-react-multi-carousel/README.md | @@ -8,7 +8,7 @@ Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-react-multi-carousel&project-name=with-react-multi-carouse... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-realm-web/README.md | @@ -1,6 +1,6 @@
# Realm-Web SDK Example
-This example uses [Realm-Web SDK](https://docs.mongodb.com/realm/web/) to query a realm graphql endpoint using [swr](https://swr.now.sh/).
+This example uses [Realm-Web SDK](https://docs.mongodb.com/realm/web/) to query a realm graphql endpoint using [swr](https://swr.vercel.... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-reason-relay/README.md | @@ -1,6 +1,6 @@
# Reason Relay Example
-[Reason Relay](https://reason-relay-documentation.zth.now.sh/)
+[Reason Relay](https://reason-relay-documentation.zth.vercel.app/)
This example relies on [Prisma + Nexus](https://github.com/prisma-labs/nextjs-graphql-api-examples) for its GraphQL backend.
| true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-stripe-typescript/README.md | @@ -11,7 +11,7 @@ This is a full-stack TypeScript example using:
## Demo
-- Live demo: https://nextjs-typescript-react-stripe-js.now.sh/
+- Live demo: https://nextjs-typescript-react-stripe-js.vercel.app/
- CodeSandbox: https://codesandbox.io/s/github/stripe-samples/nextjs-typescript-react-stripe-js
- Tutorial: ... | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-stripe-typescript/components/Layout.tsx | @@ -25,7 +25,7 @@ const Layout = ({
/>
<meta
name="twitter:image"
- content="https://nextjs-typescript-react-stripe-js.now.sh/social_card.png"
+ content="https://nextjs-typescript-react-stripe-js.vercel.app/social_card.png"
/>
</Head>
<div className="container"> | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-urql/graphql/client.js | @@ -1,5 +1,5 @@
import { createClient } from 'urql'
export const client = createClient({
- url: 'https://graphql-pokemon.now.sh/',
+ url: 'https://graphql-pokemon.vercel.app/',
}) | true |
Other | vercel | next.js | 279e105279f3c95d22ec13cb915766e25956f658.json | Update .now.sh to .vercel.app. (#22359) | examples/with-userbase/README.md | @@ -2,7 +2,7 @@
This is an example of using [Userbase](https://userbase.com) in a Next.js project.
-Deployed Demo: [https://next-userbase.now.sh](https://next-userbase.now.sh)
+Deployed Demo: [https://next-userbase.vercel.app](https://next-userbase.vercel.app)
## Deploy your own
| true |
Other | vercel | next.js | 8df5fc5a8e292845f9044adc96f474d620fcc4d8.json | docs: Fix TypeScript casing (#24040) | docs/api-reference/next/router.md | @@ -405,7 +405,7 @@ function Page({ router }) {
export default withRouter(Page)
```
-### Typescript
+### TypeScript
To use class components with `withRouter`, the component needs to accept a router prop:
| false |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | .github/workflows/test_react_experimental.yml | @@ -0,0 +1,55 @@
+on:
+ schedule:
+ # * is a special character in YAML so you have to quote this string
+ - cron: '0 0,12 * * *'
+
+name: Test react@experimental
+
+jobs:
+ # build:
+ # runs-on: ubuntu-latest
+ # steps:
+ # - uses: actions/checkout@v2
+
+ # - run: yarn install --frozen-lockfile ... | true |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | .github/workflows/test_react_next.yml | @@ -30,6 +30,7 @@ jobs:
env:
NEXT_TELEMETRY_DISABLED: 1
HEADLESS: true
+ NEXT_PRIVATE_SKIP_SIZE_TESTS: true
strategy:
fail-fast: false
matrix: | true |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | packages/next/next-server/server/config-shared.ts | @@ -104,7 +104,7 @@ export const defaultConfig: NextConfig = {
plugins: false,
profiling: false,
sprFlushToDisk: true,
- reactMode: 'legacy',
+ reactMode: (process.env.NEXT_PRIVATE_REACT_MODE as any) || 'legacy',
workerThreads: false,
pageEnv: false,
optimizeImages: false, | true |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | test/integration/build-output/test/index.test.js | @@ -40,6 +40,10 @@ describe('Build Output', () => {
it('should not deviate from snapshot', async () => {
console.log(stdout)
+ if (process.env.NEXT_PRIVATE_SKIP_SIZE_TESTS) {
+ return
+ }
+
const parsePageSize = (page) =>
stdout.match(
new RegExp(` ${page} .*?((... | true |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | test/integration/fallback-modules/test/index.test.js | @@ -19,6 +19,10 @@ describe('Build Output', () => {
})
it('should not include crypto', async () => {
+ if (process.env.NEXT_PRIVATE_SKIP_SIZE_TESTS) {
+ return
+ }
+
;({ stdout } = await nextBuild(appDir, [], {
stdout: true,
})) | true |
Other | vercel | next.js | cb7ef3feb5702cf64fe68bf183999961f9153d5e.json | Add react@experimental testing (#23359) | test/integration/size-limit/test/index.test.js | @@ -66,6 +66,10 @@ describe('Production response size', () => {
})
it('should not increase the overall response size of default build', async () => {
+ if (process.env.NEXT_PRIVATE_SKIP_SIZE_TESTS) {
+ return
+ }
+
const responseSizes = [
baseResponseSize,
...(await getResponseSize... | true |
Other | vercel | next.js | 9a548b649f541d2e0631102b2a4dc40edff7b1e6.json | Add missing import in CSS docs (#24007)
This is a one-line commit, which adds the missing import for VisuallyHidden component, from Reach UI, to the CSS documentation in the Dialog component example. | docs/basic-features/built-in-css-support.md | @@ -72,6 +72,7 @@ For importing CSS required by a third party component, you can do so in your com
// components/ExampleDialog.js
import { useState } from 'react'
import { Dialog } from '@reach/dialog'
+import VisuallyHidden from '@reach/visually-hidden'
import '@reach/dialog/styles.css'
function ExampleDialog(p... | false |
Other | vercel | next.js | b610db830ef1ef2458c3c75ba1955b57b7291264.json | Add request deduplication to image optimizer (#24000)
This PR adds the deduplication logic to image optimizer so the cache will be reused as much as possible if there're multiple concurrent requests.
Fixes #23436.
## Bug
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
## Feature
- ... | packages/next/next-server/server/image-optimizer.ts | @@ -27,6 +27,8 @@ const MODERN_TYPES = [/* AVIF, */ WEBP]
const ANIMATABLE_TYPES = [WEBP, PNG, GIF]
const VECTOR_TYPES = [SVG]
+const inflightRequests = new Map<string, Promise<undefined>>()
+
export async function imageOptimizer(
server: Server,
req: IncomingMessage,
@@ -138,175 +140,199 @@ export async fun... | true |
Other | vercel | next.js | b610db830ef1ef2458c3c75ba1955b57b7291264.json | Add request deduplication to image optimizer (#24000)
This PR adds the deduplication logic to image optimizer so the cache will be reused as much as possible if there're multiple concurrent requests.
Fixes #23436.
## Bug
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
## Feature
- ... | test/integration/image-optimizer/test/index.test.js | @@ -13,6 +13,7 @@ import {
} from 'next-test-utils'
import isAnimated from 'next/dist/compiled/is-animated'
import { join } from 'path'
+import { createHash } from 'crypto'
jest.setTimeout(1000 * 60 * 2)
@@ -509,6 +510,35 @@ function runTests({ w, isDev, domains }) {
expect(res.status).toBe(400)
expec... | true |
Other | vercel | next.js | 2dba861ea346b87d2ad8a100d25fe9f1cf6e73a7.json | Enable webpack5 by default (#23810)
- Enable webpack 5 by default for apps without custom webpack configuration
Fixes #23143
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has be... | packages/next/next-server/server/config-utils.ts | @@ -55,13 +55,9 @@ export async function shouldLoadWithWebpack5(
if (!path?.length) {
// Uncomment to add auto-enable when there is no next.config.js
// Use webpack 5 by default in new apps:
- // return {
- // enabled: true,
- // reason: 'no-config',
- // }
return {
- enabled: fal... | true |
Other | vercel | next.js | 2dba861ea346b87d2ad8a100d25fe9f1cf6e73a7.json | Enable webpack5 by default (#23810)
- Enable webpack 5 by default for apps without custom webpack configuration
Fixes #23143
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has be... | test/integration/build-output/test/index.test.js | @@ -37,8 +37,7 @@ describe('Build Output', () => {
expect(stdout).toContain('○ /')
})
- // TODO: Bring back with webpack 5 auto-enable
- it.skip('should not deviate from snapshot', async () => {
+ it('should not deviate from snapshot', async () => {
console.log(stdout)
const parse... | true |
Other | vercel | next.js | 2dba861ea346b87d2ad8a100d25fe9f1cf6e73a7.json | Enable webpack5 by default (#23810)
- Enable webpack 5 by default for apps without custom webpack configuration
Fixes #23143
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has be... | test/integration/next-plugins/test/index.test.js | @@ -91,7 +91,7 @@ describe('Next.js plugins', () => {
try {
await check(
() => output,
- /Next.js plugin versions must match the Next.js version being used/
+ /Next\.js plugin versions must match the Next\.js version being used/
)
} finally {
if (app... | true |
Other | vercel | next.js | 2c2ac2e868b0edbaddd7ae2ea3d6cdf3023beae9.json | reduce the number of write syscalls by buffering (#23863)
buffer the output of bfj to avoid 1000s of small write calls | packages/next/build/webpack/plugins/build-stats-plugin.ts | @@ -1,5 +1,6 @@
import fs from 'fs'
import path from 'path'
+import { Transform, TransformCallback } from 'stream'
// @ts-ignore no types package
import bfj from 'next/dist/compiled/bfj'
import { spans } from './profiling-plugin'
@@ -63,6 +64,46 @@ function reduceSize(stats: any) {
return stats
}
+const THRE... | false |
Other | vercel | next.js | 1cf7360788a35485c45d69b5f24427c3fe6fb6cc.json | Add experimental note to docs for has (#23835)
This adds a note the `has` documentation mentioning the feature is still experimental as we currently show a warning when the feature is used stating the same.
## Documentation / Examples
- [x] Make sure the linting passes | docs/api-reference/next.config.js/headers.md | @@ -156,6 +156,8 @@ module.exports = {
## Header, Cookie, and Query Matching
+Note: this feature is still experimental and not covered by semver and is to be used at your own risk until it is made stable.
+
To only apply a header when either header, cookie, or query values also match the `has` field can be used. ... | true |
Other | vercel | next.js | 1cf7360788a35485c45d69b5f24427c3fe6fb6cc.json | Add experimental note to docs for has (#23835)
This adds a note the `has` documentation mentioning the feature is still experimental as we currently show a warning when the feature is used stating the same.
## Documentation / Examples
- [x] Make sure the linting passes | docs/api-reference/next.config.js/redirects.md | @@ -100,6 +100,8 @@ module.exports = {
## Header, Cookie, and Query Matching
+Note: this feature is still experimental and not covered by semver and is to be used at your own risk until it is made stable.
+
To only match a redirect when header, cookie, or query values also match the `has` field can be used. Both ... | true |
Other | vercel | next.js | 1cf7360788a35485c45d69b5f24427c3fe6fb6cc.json | Add experimental note to docs for has (#23835)
This adds a note the `has` documentation mentioning the feature is still experimental as we currently show a warning when the feature is used stating the same.
## Documentation / Examples
- [x] Make sure the linting passes | docs/api-reference/next.config.js/rewrites.md | @@ -180,6 +180,8 @@ module.exports = {
## Header, Cookie, and Query Matching
+Note: this feature is still experimental and not covered by semver and is to be used at your own risk until it is made stable.
+
To only match a rewrite when header, cookie, or query values also match the `has` field can be used. Both t... | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/README.md | @@ -1,8 +1,8 @@
# Next.js + Tailwind CSS Example
-This example shows how to use [Tailwind CSS](https://tailwindcss.com/) (v2) with Next.js. It follows the steps outlined in the official [Tailwind docs](https://tailwindcss.com/docs/guides/nextjs).
+This example shows how to use [Tailwind CSS](https://tailwindcss.com/... | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/package.json | @@ -13,9 +13,8 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
- "@tailwindcss/jit": "0.1.3",
"autoprefixer": "^10.0.4",
"postcss": "^8.1.10",
- "tailwindcss": "^2.0.2"
+ "tailwindcss": "^2.1.1"
}
} | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/pages/_app.js | @@ -1,4 +1,4 @@
-import '../styles/globals.css'
+import 'tailwindcss/tailwind.css'
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} /> | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/postcss.config.js | @@ -2,7 +2,7 @@
// https://tailwindcss.com/docs/using-with-preprocessors
module.exports = {
plugins: {
- '@tailwindcss/jit': {},
+ tailwindcss: {},
autoprefixer: {},
},
} | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/styles/globals.css | @@ -1,3 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities; | true |
Other | vercel | next.js | cffdf1e0881aa89453028230b41fc0ea927023db.json | Update tailwind css to v2.1 with jit support (#23793)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-tailwindcss/tailwind.config.js | @@ -1,4 +1,5 @@
module.exports = {
+ mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: { | true |
Other | vercel | next.js | a561dd9cdb899c32863c8c7bf75d43901c47ec14.json | Resolve new babel loader through require.resolve (#23819) | packages/next/build/webpack-config.ts | @@ -237,7 +237,7 @@ export default async function getBaseWebpackConfig(
const distDir = path.join(dir, config.distDir)
const babelLoader = config.experimental.turboMode
- ? 'next/dist/build/babel/loader'
+ ? require.resolve('./babel/loader/index')
: 'next-babel-loader'
const defaultLoaders = {
... | false |
Other | vercel | next.js | d2dc91c80ce9708aae6055cff1ef6cb9f67bf98a.json | Add note about prefetching (#23732)
Fixes #23687
## Bug
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues link... | docs/api-reference/next/link.md | @@ -57,7 +57,7 @@ export default Home
- `href` - The path or URL to navigate to. This is the only required prop
- `as` - Optional decorator for the path that will be shown in the browser URL bar. Before Next.js 9.5.3 this was used for dynamic routes, check our [previous docs](https://nextjs.org/docs/tag/v9.5.2/api-re... | false |
Other | vercel | next.js | c2c1b965440fd6ce062c0601a077a0a31021ae83.json | Fix webpack5 cache distDir (#23718)
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixe... | packages/next/build/webpack-config.ts | @@ -966,7 +966,7 @@ export default async function getBaseWebpackConfig(
loader: 'next/dist/compiled/cache-loader',
options: {
cacheContext: dir,
- cacheDirectory: path.join(dir, '.next', 'cache', 'webpack'),
+ cacheDirector... | true |
Other | vercel | next.js | c2c1b965440fd6ce062c0601a077a0a31021ae83.json | Fix webpack5 cache distDir (#23718)
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixe... | test/integration/dist-dir/test/index.test.js | @@ -39,9 +39,7 @@ describe('distDir', () => {
).toBeTruthy()
})
it('should not build the app within the default `.next` directory', async () => {
- expect(
- await fs.exists(join(__dirname, `/../.next/${BUILD_ID_FILE}`))
- ).toBeFalsy()
+ expect(await fs.exists(join(__dirname, '/.... | true |
Other | vercel | next.js | 4de984ca232d63a59e320428719e13a7161aaf37.json | Update router.md to improve a11y (#23611)
Code examples used `span`, change to use `button` for better accessibility
## Documentation / Examples
- [x] Make sure the linting passes | docs/api-reference/next/router.md | @@ -99,7 +99,7 @@ import { useRouter } from 'next/router'
export default function Page() {
const router = useRouter()
- return <span onClick={() => router.push('/post/abc')}>Click me</span>
+ return <button onClick={() => router.push('/post/abc')}>Click me</button>
}
```
@@ -137,7 +137,7 @@ export default f... | false |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/codecs.ts | @@ -1,7 +1,6 @@
import { promises as fsp } from 'fs'
import * as path from 'path'
import { instantiateEmscriptenWasm, pathify } from './emscripten-utils.js'
-import { execOnce } from '../../../lib/utils.js'
// MozJPEG
// @ts-ignore
@@ -23,25 +22,20 @@ const webpDecWasm = path.resolve(__dirname, './webp/webp_node... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/impl.ts | @@ -1,47 +1,9 @@
import { codecs as supportedFormats, preprocessors } from './codecs'
import ImageData from './image_data'
-type RotateOperation = {
- type: 'rotate'
- numRotations: number
-}
-type ResizeOperation = {
- type: 'resize'
- width: number
-}
-export type Operation = RotateOperation | ResizeOperation... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/main.ts | @@ -1,25 +1,57 @@
import { Worker } from 'jest-worker'
import * as path from 'path'
import { execOnce } from '../../../lib/utils'
-import { Operation, Encoding } from './impl'
+import { cpus } from 'os'
+
+type RotateOperation = {
+ type: 'rotate'
+ numRotations: number
+}
+type ResizeOperation = {
+ type: 'resiz... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js | @@ -39,12 +39,6 @@ var Module = (function () {
a.buffer || v('Assertion failed: undefined')
return a
}
- 1 < process.argv.length && (ba = process.argv[1].replace(/\\/g, '/'))
- process.argv.slice(2)
- process.on('uncaughtException', function (a) {
- if (!(a instanceof ja)) throw a
- ... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js | @@ -39,12 +39,6 @@ var Module = (function () {
a.buffer || u('Assertion failed: undefined')
return a
}
- 1 < process.argv.length && (da = process.argv[1].replace(/\\/g, '/'))
- process.argv.slice(2)
- process.on('uncaughtException', function (a) {
- if (!(a instanceof la)) throw a
- ... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/png/squoosh_oxipng.js | @@ -127,3 +127,10 @@ async function init(input) {
}
export default init
+
+// Manually remove the wasm and memory references to trigger GC
+export function cleanup() {
+ wasm = null
+ cachegetUint8Memory0 = null
+ cachegetInt32Memory0 = null
+} | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/png/squoosh_png.js | @@ -179,3 +179,11 @@ async function init(input) {
}
export default init
+
+// Manually remove the wasm and memory references to trigger GC
+export function cleanup() {
+ wasm = null
+ cachegetUint8ClampedMemory0 = null
+ cachegetUint8Memory0 = null
+ cachegetInt32Memory0 = null
+} | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/resize/squoosh_resize.js | @@ -130,3 +130,10 @@ async function init(input) {
}
export default init
+
+// Manually remove the wasm and memory references to trigger GC
+export function cleanup() {
+ wasm = null
+ cachegetUint8Memory0 = null
+ cachegetInt32Memory0 = null
+} | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/webp/webp_node_dec.js | @@ -35,12 +35,6 @@ var Module = (function () {
a.buffer || x('Assertion failed: undefined')
return a
}
- 1 < process.argv.length && process.argv[1].replace(/\\/g, '/')
- process.argv.slice(2)
- process.on('uncaughtException', function (a) {
- throw a
- })
- process.on('unhandledRe... | true |
Other | vercel | next.js | 7adfce23abdfe76d4ded326b77bf3600705a1481.json | Fix memory leak in image optimization (#23565)
This RP fixes the problem that the image optimization API uses a large amount of memory, and is not correctly freed afterwards. There're multiple causes of this problem:
### 1. Too many WebAssembly instances are created
We used to do all the image processing operations ... | packages/next/next-server/server/lib/squoosh/webp/webp_node_enc.js | @@ -35,12 +35,6 @@ var Module = (function () {
a.buffer || u('Assertion failed: undefined')
return a
}
- 1 < process.argv.length && process.argv[1].replace(/\\/g, '/')
- process.argv.slice(2)
- process.on('uncaughtException', function (a) {
- throw a
- })
- process.on('unhandledRe... | true |
Other | vercel | next.js | 2ec2ea8786dce87bbc428aff577bd13e1728db49.json | Make eslint opt-in until it lands on stable (#23509) | packages/next/next-server/server/config-shared.ts | @@ -124,7 +124,7 @@ export const defaultConfig: NextConfig = {
reactStrictMode: false,
eslint: {
dev: false,
- build: true,
+ build: false,
},
}
| true |
Other | vercel | next.js | 2ec2ea8786dce87bbc428aff577bd13e1728db49.json | Make eslint opt-in until it lands on stable (#23509) | test/integration/eslint/custom-eslint-config/next.config.js | @@ -0,0 +1 @@
+module.exports = { eslint: { build: true } } | true |
Other | vercel | next.js | 2ec2ea8786dce87bbc428aff577bd13e1728db49.json | Make eslint opt-in until it lands on stable (#23509) | test/integration/eslint/pkg-json-eslint-config/next.config.js | @@ -0,0 +1,3 @@
+module.exports = {
+ eslint: { build: true },
+} | true |
Other | vercel | next.js | cd9bb986eba25006d4872e30eedf24ef5680bc6b.json | Add os-browserify dep (#23354)
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> | packages/next/package.json | @@ -93,6 +93,7 @@
"node-fetch": "2.6.1",
"node-html-parser": "1.4.9",
"node-libs-browser": "^2.2.1",
+ "os-browserify": "0.3.0",
"p-limit": "3.1.0",
"path-browserify": "1.0.1",
"pnp-webpack-plugin": "1.6.4", | true |
Other | vercel | next.js | cd9bb986eba25006d4872e30eedf24ef5680bc6b.json | Add os-browserify dep (#23354)
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> | yarn.lock | @@ -11682,7 +11682,7 @@ ora@4.0.4:
strip-ansi "^6.0.0"
wcwidth "^1.0.1"
-os-browserify@^0.3.0:
+os-browserify@0.3.0, os-browserify@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27"
integrity sha1-hUNzx/XC... | true |
Other | vercel | next.js | dee70f02377f6c4a6c99f889c159318b0bed770d.json | Update next.config.js rewrites | examples/with-zones/home/next.config.js | @@ -1,8 +1,12 @@
const { BLOG_URL } = process.env
module.exports = {
- rewrites() {
+ async rewrites() {
return [
+ {
+ source: '/:path*',
+ destination: `/:path*`,
+ },
{
source: '/blog',
destination: `${BLOG_URL}/blog`, | false |
Other | vercel | next.js | 3141b6ff700a722d7260701d2032bcaef5cd0a9f.json | `with-stitches`: Use `latest` version (#23343)
Hey 👋
I realise neither I or you want to keep reviewing and merging these "Update Stitches" PRs
So I'm setting it to the `latest`.
Thanks (and sorry)
## Documentation / Examples
- [x] Make sure the linting passes | examples/with-stitches/package.json | @@ -7,7 +7,7 @@
"start": "next start"
},
"dependencies": {
- "@stitches/react": "0.1.2",
+ "@stitches/react": "latest",
"next": "latest",
"react": "^17.0.1",
"react-dom": "^17.0.1" | false |
Other | vercel | next.js | 5c7475a6e89990cee45abfec8f396524bc122fa1.json | Fix typo in eslint doc (#23338)
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #num... | docs/basic-features/eslint.md | @@ -34,7 +34,7 @@ Here's an example of an `.eslintrc.json` file:
```
- Extending the original base of rules (`plugin:@next/next/recommended`) is highly recommended to
- catch and fix significant Next.js issues in your application
+ catch and fix significant Next.js issues in your application.
- Including `@babel... | false |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | .eslintignore | @@ -2,6 +2,7 @@ node_modules
**/.next/**
**/_next/**
**/dist/**
+e2e-tests/**
examples/with-typescript-eslint-jest/**
examples/with-kea/**
packages/next/bundles/webpack/packages/*.runtime.js
@@ -16,4 +17,5 @@ packages/next-codemod/**/*.js
packages/next-codemod/**/*.d.ts
packages/next-env/**/*.d.ts
test/integra... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | docs/api-reference/next.config.js/eslint-warnings-errors.md | @@ -0,0 +1,70 @@
+---
+description: Learn how to opt-in and out of ESLint during development mode and production builds.
+---
+
+# ESLint Warnings and Errors
+
+## During builds
+
+Next.js fails your **production build** (`next build`) when ESLint errors are present in your
+project.
+
+If you'd like Next.js to dangero... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | docs/basic-features/eslint.md | @@ -0,0 +1,50 @@
+---
+description: Next.js uses ESLint to find and resolve issues affecting the user or developer
+experience.
+---
+
+# ESLint
+
+Next.js uses [ESLint](https://eslint.org/) to find and resolve issues affecting the user or
+developer experience. A minimal set of Next.js rules are provided by default, b... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | docs/manifest.json | @@ -33,6 +33,10 @@
"title": "Fast Refresh",
"path": "/docs/basic-features/fast-refresh.md"
},
+ {
+ "title": "ESLint",
+ "path": "/docs/basic-features/eslint.md"
+ },
{
"title": "TypeScript",
... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | packages/eslint-plugin-next/lib/rules/no-html-link-for-pages.js | @@ -1,10 +1,18 @@
const path = require('path')
const fs = require('fs')
-const { getUrlFromPagesDirectory, normalizeURL } = require('../utils/url')
+const {
+ getUrlFromPagesDirectory,
+ normalizeURL,
+ execOnce,
+} = require('../utils/url')
+
+const pagesDirWarning = execOnce((pagesDirs) => {
+ console.warn(
+ ... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | packages/eslint-plugin-next/lib/utils/url.js | @@ -76,7 +76,21 @@ function normalizeURL(url) {
return url
}
+function execOnce(fn) {
+ let used = false
+ let result
+
+ return (...args) => {
+ if (!used) {
+ used = true
+ result = fn(...args)
+ }
+ return result
+ }
+}
+
module.exports = {
getUrlFromPagesDirectory,
normalizeURL,
... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | packages/next/build/index.ts | @@ -175,6 +175,41 @@ export default async function build(
telemetry.record(events)
)
+ if (config.eslint?.build) {
+ await nextBuildSpan
+ .traceChild('verify-and-lint')
+ .traceAsyncFn(async () => {
+ const lintWorkers = new Worker(
+ require.resolve('../lib/veri... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | packages/next/lib/eslint/customFormatter.ts | @@ -0,0 +1,68 @@
+import { ESLint, Linter } from 'eslint'
+
+import chalk from 'chalk'
+import path from 'path'
+
+export enum MessageSeverity {
+ Warning = 1,
+ Error = 2,
+}
+
+function formatMessage(
+ dir: string,
+ messages: Linter.LintMessage[],
+ filePath: string
+): string | void {
+ let fileName = path.p... | true |
Other | vercel | next.js | e5ef60fecb142c149e0307376a1996f941b2840d.json | Add ESLint to Next.js (#22437)
For #22228
This PR:
- Adds ESLint to toolchain
- Included by default for builds (`next build`)
- Can be enabled for development (`next dev`)
- Custom formatter built for output
- Adds appropriate tests
- Adds two documentation pages | packages/next/lib/verifyAndLint.ts | @@ -0,0 +1,141 @@
+import { ESLint } from 'eslint'
+import { join } from 'path'
+
+import { formatResults } from './eslint/customFormatter'
+import { fileExists } from './file-exists'
+import * as log from '../build/output/log'
+
+import findUp from 'next/dist/compiled/find-up'
+
+type Config = {
+ plugins: string[]
+... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.