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
9352392f4f374e4883c24e9409bc353fc36cb9e0.json
chore(examples): Update firebase version (#10145)
examples/with-firebase-hosting-and-docker/package.json
@@ -26,7 +26,7 @@ "compression": "^1.7.3", "cors": "^2.8.4", "express": "^4.16.3", - "firebase-admin": "6.0.0", + "firebase-admin": "8.9.0", "firebase-functions": "^2.0.5", "helmet": "^3.13.0", "next": "latest",
true
Other
vercel
next.js
9352392f4f374e4883c24e9409bc353fc36cb9e0.json
chore(examples): Update firebase version (#10145)
examples/with-firebase-hosting-and-typescript/package.json
@@ -21,7 +21,7 @@ "install-deps": "cd \"dist/functions\" && npm i" }, "dependencies": { - "firebase-admin": "^8.0.0", + "firebase-admin": "^8.9.0", "firebase-functions": "^3.1.0", "next": "latest", "react": "16.8.6",
true
Other
vercel
next.js
9352392f4f374e4883c24e9409bc353fc36cb9e0.json
chore(examples): Update firebase version (#10145)
examples/with-firebase-hosting/package.json
@@ -19,7 +19,7 @@ "install-deps": "cd \"dist/functions\" && npm i" }, "dependencies": { - "firebase-admin": "^8.2.0", + "firebase-admin": "^8.9.0", "firebase-functions": "^2.1.0", "grpc": "^1.22.2", "next": "latest",
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
packages/next/build/entries.ts
@@ -115,10 +115,19 @@ export function createEntrypoints( } if (!isApiRoute) { - client[bundlePath] = `next-client-pages-loader?${stringify({ + const pageLoader = `next-client-pages-loader?${stringify({ page, absolutePagePath, })}!` + + // Make sure next/router is a de...
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
packages/next/pages/_app.tsx
@@ -7,7 +7,6 @@ import { AppPropsType, } from '../next-server/lib/utils' import { Router } from '../client/router' -import '../client/router' export { AppInitialProps }
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
test/integration/hydration/pages/_app.js
@@ -0,0 +1 @@ +export default ({ Component, pageProps }) => <Component {...pageProps} />
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
test/integration/hydration/pages/_document.js
@@ -0,0 +1,16 @@ +import Document, { Head, Html, Main, NextScript } from 'next/document' +import React from 'react' + +class WeddingDocument extends Document { + render() { + return ( + <Html lang="en-GB"> + <Head /> + <Main /> + <NextScript /> + </Html> + ) + } +} + +export defau...
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
test/integration/hydration/pages/details.js
@@ -0,0 +1,6 @@ +export default () => { + if (typeof window !== 'undefined') { + window.didHydrate = true + } + return 'details' +}
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
test/integration/hydration/pages/index.js
@@ -0,0 +1,6 @@ +export default () => { + if (typeof window !== 'undefined') { + window.didHydrate = true + } + return 'index' +}
true
Other
vercel
next.js
5a9a478cc84d013515d62d814f1f746cae5ffdff.json
Fix hydration with custom _app and granular chunks (#10144) * Add failing hydration test * Add importing of next/router to _app * Fix type * Update _app check for windows * Remove babel fix * Update to use webpack to require next/router
test/integration/hydration/test/index.test.js
@@ -0,0 +1,33 @@ +/* eslint-env jest */ +/* global jasmine */ +import path from 'path' +import fs from 'fs-extra' +import webdriver from 'next-webdriver' +import { + nextBuild, + nextStart, + findPort, + waitFor, + killApp, +} from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 +const appDir...
true
Other
vercel
next.js
51420c724138927e9f065a74cc272fcda993143d.json
Fix SSG data request failing with trailing slash (#10140) * Fix SSG data request failing with trailing slash * Update to re-use toRoute method
packages/next/next-server/lib/router/router.ts
@@ -666,7 +666,7 @@ export default class Router implements BaseRouter { _getStaticData = (asPath: string, _cachedData?: object): Promise<object> => { let pathname = parse(asPath).pathname - pathname = !pathname || pathname === '/' ? '/index' : pathname + pathname = toRoute(!pathname || pathname === '/' ...
true
Other
vercel
next.js
51420c724138927e9f065a74cc272fcda993143d.json
Fix SSG data request failing with trailing slash (#10140) * Fix SSG data request failing with trailing slash * Update to re-use toRoute method
test/integration/prerender/pages/index.js
@@ -14,7 +14,7 @@ const Page = ({ world, time }) => { <> <p>hello {world}</p> <span>time: {time}</span> - <Link href="/another"> + <Link href="/another?hello=world" as="/another/?hello=world"> <a id="another">to another</a> </Link> <br />
true
Other
vercel
next.js
51420c724138927e9f065a74cc272fcda993143d.json
Fix SSG data request failing with trailing slash (#10140) * Fix SSG data request failing with trailing slash * Update to re-use toRoute method
test/integration/prerender/test/index.test.js
@@ -134,9 +134,11 @@ const navigateTest = (dev = false) => { // go to /another async function goFromHomeToAnother() { + await browser.eval('window.beforeAnother = true') await browser.elementByCss('#another').click() await browser.waitForElementByCss('#home') text = await browser.e...
true
Other
vercel
next.js
1044b124a56e023e69b0ad82931019aacb0aff93.json
Remove outdated readme (#10123)
README-zh-CN.md
@@ -1,2110 +0,0 @@ -[![Next.js](https://assets.zeit.co/image/upload/v1538361091/repositories/next-js/next-js.png)](https://nextjs.org) - -<p align="center"> - <a aria-label="ZEIT logo" href="https://github.com/zeit"> - <img src="https://img.shields.io/badge/MADE%20BY%20ZEIT-000000.svg?style=for-the-badge&logo=ZEIT&...
false
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
packages/next/build/webpack/config/blocks/css/plugins.ts
@@ -193,6 +193,15 @@ export async function getPostCssPlugins( } throw new Error(genericErrorText) } + } else if (typeof plugin === 'function') { + console.error( + `${chalk.red.bold( + 'Error' + )}: A PostCSS Plugin was passed as a function using require(), but it...
true
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
test/integration/css-customization/test/index.test.js
@@ -331,6 +331,23 @@ describe('Bad CSS Customization Array (7)', () => { }) }) +describe('Bad CSS Customization Array (8)', () => { + const appDir = join(fixturesDir, 'bad-custom-configuration-arr-8') + + beforeAll(async () => { + await remove(join(appDir, '.next')) + }) + + it('should fail the build', asy...
true
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
test/integration/css-fixtures/bad-custom-configuration-arr-8/pages/_app.js
@@ -0,0 +1,12 @@ +import React from 'react' +import App from 'next/app' +import '../styles/global.css' + +class MyApp extends App { + render() { + const { Component, pageProps } = this.props + return <Component {...pageProps} /> + } +} + +export default MyApp
true
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
test/integration/css-fixtures/bad-custom-configuration-arr-8/pages/index.js
@@ -0,0 +1,3 @@ +export default function Home() { + return <div /> +}
true
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
test/integration/css-fixtures/bad-custom-configuration-arr-8/postcss.config.js
@@ -0,0 +1,3 @@ +module.exports = { + plugins: [require('postcss-trolling')], +}
true
Other
vercel
next.js
80ed74bcae4f3f4c28330497d08c0cb588b80566.json
Add specific warning for require() PostCSS plugin (#10121)
test/integration/css-fixtures/bad-custom-configuration-arr-8/styles/global.css
@@ -0,0 +1,14 @@ +/* this should pass through untransformed */ +@media (480px <= width < 768px) { + a::before { + content: ''; + } + ::placeholder { + color: green; + } +} + +/* this should be transformed to width/height */ +.video { + -xyz-max-size: 400rem 300rem; +}
true
Other
vercel
next.js
563f3c084ce60d3ddc781f8812578a7a133264ab.json
Honor exportTrailingSlash for default 404 (#10109)
packages/next/export/index.ts
@@ -254,8 +254,8 @@ export default async function( distDir, buildId, }) - if (!exportPathMap['/404']) { - exportPathMap['/404.html'] = exportPathMap['/404.html'] || { + if (!exportPathMap['/404'] && !exportPathMap['/404.html']) { + exportPathMap['/404'] = exportPathMap['/404.html'] = { page:...
true
Other
vercel
next.js
563f3c084ce60d3ddc781f8812578a7a133264ab.json
Honor exportTrailingSlash for default 404 (#10109)
test/integration/export-serverless/test/ssr.js
@@ -58,11 +58,11 @@ export default function(context) { expect(html).toMatch(/404.*page.*not.*found/i) }) - it('should not render _error on /404/index.html', async () => { + it('should render _error on /404/index.html', async () => { const html = await renderViaHTTP(context.port, '/404/index.h...
true
Other
vercel
next.js
563f3c084ce60d3ddc781f8812578a7a133264ab.json
Honor exportTrailingSlash for default 404 (#10109)
test/integration/export/test/index.test.js
@@ -27,14 +27,15 @@ const writeFile = promisify(fs.writeFile) const mkdir = promisify(fs.mkdir) const access = promisify(fs.access) const appDir = join(__dirname, '../') +const outdir = join(appDir, 'out') +const outNoTrailSlash = join(appDir, 'outNoTrailSlash') const context = {} context.appDir = appDir const de...
true
Other
vercel
next.js
563f3c084ce60d3ddc781f8812578a7a133264ab.json
Honor exportTrailingSlash for default 404 (#10109)
test/integration/export/test/ssr.js
@@ -58,11 +58,12 @@ export default function(context) { expect(html).toMatch(/404.*page.*not.*found/i) }) - it('should not render _error on /404/index.html', async () => { + // since exportTrailingSlash is enabled we should allow this + it('should render _error on /404/index.html', async () => { ...
true
Other
vercel
next.js
a15ccbc0fe04c64e2bb92fb3485f8d29c292f28f.json
Update readme to link to the new docs (#10096) * Updated next readme * Delete README_old.md * Update README.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
packages/next/README.md
@@ -15,2809 +15,13 @@ </a> </p> -<p align="center"> - <strong> - Visit <a aria-label="next.js learn" href="https://nextjs.org/learn">https://nextjs.org/learn</a> to get started with Next.js. - </strong> -</p> - ---- - -**The below readme is the documentation for the `canary` (prerelease) branch. To view the ...
false
Other
vercel
next.js
41195b69e17689219691360ca7afac2a822f158d.json
Fix Legacy CSS with Granular Chunks (#10101)
packages/next/build/webpack-config.ts
@@ -334,7 +334,14 @@ export default async function getBaseWebpackConfig( updateHash: (hash: crypto.Hash) => void }): string { const hash = crypto.createHash('sha1') - if (module.type === `css/mini-extract`) { + if ( + // mini-css-extract-plugin + ...
false
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/build/utils.ts
@@ -9,7 +9,7 @@ import { Rewrite, getRedirectStatus, } from '../lib/check-custom-routes' -import { SPR_GET_INITIAL_PROPS_CONFLICT } from '../lib/constants' +import { SSG_GET_INITIAL_PROPS_CONFLICT } from '../lib/constants' import prettyBytes from '../lib/pretty-bytes' import { recursiveReadDir } from '../lib/r...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/build/webpack/loaders/next-serverless-loader.ts
@@ -213,10 +213,10 @@ const nextServerlessLoader: loader.Loader = function() { assetPrefix: "${assetPrefix}", ..._renderOpts } - let sprData = false + let _nextData = false if (req.url.match(/_next\\/data/)) { - sprData = true + _nextData = true req.url...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/export/index.ts
@@ -276,7 +276,7 @@ export default async function( } const progress = !options.silent && createProgress(filteredPaths.length) - const sprDataDir = options.buildExport + const pagesDataDir = options.buildExport ? outDir : join(outDir, '_next/data', buildId) @@ -318,7 +318,7 @@ export default async ...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/export/worker.js
@@ -25,7 +25,7 @@ export default async function({ distDir, buildId, outDir, - sprDataDir, + pagesDataDir, renderOpts, buildExport, serverRuntimeConfig, @@ -131,7 +131,7 @@ export default async function({ if (typeof mod === 'string') { html = mod } else { - // for non-dy...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/lib/constants.ts
@@ -24,4 +24,4 @@ export const DOT_NEXT_ALIAS = 'private-dot-next' export const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://err.sh/zeit/next.js/public-next-folder-conflict` -export const SPR_GET_INITIAL_P...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/next-server/server/next-server.ts
@@ -380,7 +380,7 @@ export default class Server { req, res, pathname, - { _nextSprData: '1' }, + { _nextDataReq: '1' }, parsedUrl ) return { @@ -828,10 +828,10 @@ export default class Server { const isLikeServerless = ...
true
Other
vercel
next.js
fff897d766bc3bda39af662ab4982078ddba6051.json
Apply some renames for SSG related code (#10099) * Rename some spr related stuff to ssg * Update packages/next/lib/constants.ts Co-authored-by: Joe Haddad <timer150@gmail.com>
packages/next/next-server/server/render.tsx
@@ -28,7 +28,7 @@ import { isInAmpMode } from '../lib/amp' // Uses a module path because of the compiled output directory location import { PageConfig } from 'next/types' import { isDynamicRoute } from '../lib/router/utils/is-dynamic' -import { SPR_GET_INITIAL_PROPS_CONFLICT } from '../../lib/constants' +import { SS...
true
Other
vercel
next.js
a2ea7a4962ba677d74baaf8b850bf6e9d17877ef.json
Add Test for PR #10037 (#10093)
test/integration/render-error-on-module-error/pages/_error.js
@@ -0,0 +1,3 @@ +export default function Error() { + return <p id="error-p">Error Rendered</p> +}
true
Other
vercel
next.js
a2ea7a4962ba677d74baaf8b850bf6e9d17877ef.json
Add Test for PR #10037 (#10093)
test/integration/render-error-on-module-error/pages/index.js
@@ -0,0 +1,9 @@ +if (typeof window !== 'undefined') { + throw new Error('fail module evaluation') +} + +const Index = () => 'hi' + +Index.getInitialProps = () => ({}) + +export default Index
true
Other
vercel
next.js
a2ea7a4962ba677d74baaf8b850bf6e9d17877ef.json
Add Test for PR #10037 (#10093)
test/integration/render-error-on-module-error/test/index.test.js
@@ -0,0 +1,45 @@ +/* eslint-env jest */ +/* global jasmine */ +import { + nextBuild, + nextServer, + startApp, + stopApp, + waitFor, +} from 'next-test-utils' +import webdriver from 'next-webdriver' +import { join } from 'path' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 + +const appDir = join(__dirname, '...
true
Other
vercel
next.js
2d76c4a9bbab27b85178cd498d4d818284ebdf7c.json
Replace __NEXT_SPR with __N_SSG Identifier (#10090)
packages/next/build/babel/plugins/next-ssg-transform.ts
@@ -2,7 +2,7 @@ import { NodePath, PluginObj } from '@babel/core' import * as BabelTypes from '@babel/types' const pageComponentVar = '__NEXT_COMP' -const prerenderId = '__NEXT_SPR' +const prerenderId = '__N_SSG' export const EXPORT_NAME_GET_STATIC_PROPS = 'unstable_getStaticProps' export const EXPORT_NAME_GET_...
true
Other
vercel
next.js
2d76c4a9bbab27b85178cd498d4d818284ebdf7c.json
Replace __NEXT_SPR with __N_SSG Identifier (#10090)
packages/next/client/index.js
@@ -94,7 +94,7 @@ class Container extends React.Component { if ( (data.nextExport && (isDynamicRoute(router.pathname) || location.search)) || - (Component.__NEXT_SPR && location.search) + (Component.__N_SSG && location.search) ) { // update query on mount for exported pages ...
true
Other
vercel
next.js
2d76c4a9bbab27b85178cd498d4d818284ebdf7c.json
Replace __NEXT_SPR with __N_SSG Identifier (#10090)
packages/next/next-server/lib/router/router.ts
@@ -450,7 +450,7 @@ export default class Router implements BaseRouter { } return this._getData<RouteInfo>(() => - (Component as any).__NEXT_SPR + (Component as any).__N_SSG ? this._getStaticData(as) : this.getInitialProps( Component,
true
Other
vercel
next.js
2d76c4a9bbab27b85178cd498d4d818284ebdf7c.json
Replace __NEXT_SPR with __N_SSG Identifier (#10090)
test/unit/babel-plugin-next-ssg-transform.test.js
@@ -40,7 +40,7 @@ describe('babel plugin (next-ssg-transform)', () => { } `) expect(output).toMatchInlineSnapshot( - `"const __NEXT_COMP=function Test(){return __jsx(\\"div\\",null);};__NEXT_COMP.__NEXT_SPR=true export default __NEXT_COMP;"` + `"const __NEXT_COMP=function Test(){ret...
true
Other
vercel
next.js
2d76c4a9bbab27b85178cd498d4d818284ebdf7c.json
Replace __NEXT_SPR with __N_SSG Identifier (#10090)
test/unit/next-babel-loader.test.js
@@ -303,7 +303,7 @@ describe('next-babel-loader', () => { { resourcePath: pageFile, isServer: false } ) expect(code).toMatchInlineSnapshot( - `"import\\"core-js\\";import{bar}from\\"a\\";import baz from\\"b\\";import*as React from\\"react\\";import{yeet}from\\"c\\";import baz3,{cats}from\\...
true
Other
vercel
next.js
6de65faef464e92076936aec5f8dfa705b6529fb.json
Add more details to the deployment doc (#10085)
docs/deployment.md
@@ -60,11 +60,11 @@ HTTPS is enabled by default and doesn't require extra configuration. #### From a git repository -You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zeit.co/new), or [Bitbucket](https://zeit.co/new) through the [web interface](https://zeit.co/new). This will automatical...
false
Other
vercel
next.js
0a67c7ee23196550899ef32e013133568cd1312c.json
Update basic-export to use zero config support (#10079)
examples/basic-export/README.md
@@ -40,8 +40,6 @@ yarn dev Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download)): ```bash -npm run export -cd out now ```
true
Other
vercel
next.js
0a67c7ee23196550899ef32e013133568cd1312c.json
Update basic-export to use zero config support (#10079)
examples/basic-export/package.json
@@ -3,9 +3,8 @@ "version": "1.0.0", "scripts": { "dev": "next", - "build": "next build", - "start": "next start", - "export": "next export" + "build": "next build && next export", + "start": "next start" }, "dependencies": { "next": "latest",
true
Other
vercel
next.js
4e71121f3c329cd2f3340acb058fd83dcbb050bb.json
Add New CSS Documentation (#10072) * Restructure CSS Doc * docs for stylesheets and css modules * Add production note * add or * linebreaks * Revise docs * Update docs/basic-features/built-in-css-support.md Co-Authored-By: Luis Alvarez D. <luis@zeit.co> Co-authored-by: Luis Alvarez D. <luis@zeit.co>
docs/basic-features/built-in-css-support.md
@@ -1,17 +1,126 @@ --- -description: Next.js includes styled-jsx by default for isolated and scoped CSS support, but you can also use any other CSS-in-JS solution!. Learn more here. +description: Next.js supports including CSS files as Global CSS or CSS Modules, using `styled-jsx` for CSS-in-JS, or any other CSS-in-JS...
false
Other
vercel
next.js
9f6fdb95f27c1b4d8d6d54d5d338903962fd9998.json
Ignore CSS Ordering Warnings (#10068)
packages/next/build/webpack-config.ts
@@ -35,7 +35,6 @@ import BuildManifestPlugin from './webpack/plugins/build-manifest-plugin' import ChunkNamesPlugin from './webpack/plugins/chunk-names-plugin' import { CssMinimizerPlugin } from './webpack/plugins/css-minimizer-plugin' import { importAutoDllPlugin } from './webpack/plugins/dll-import' -import MiniCs...
true
Other
vercel
next.js
9f6fdb95f27c1b4d8d6d54d5d338903962fd9998.json
Ignore CSS Ordering Warnings (#10068)
packages/next/build/webpack/config/blocks/css/index.ts
@@ -2,7 +2,7 @@ import curry from 'lodash.curry' import path from 'path' import webpack, { Configuration, RuleSetRule } from 'webpack' import MiniCssExtractPlugin from '../../../plugins/mini-css-extract-plugin' -import { loader } from '../../helpers' +import { loader, plugin } from '../../helpers' import { Configur...
true
Other
vercel
next.js
9f6fdb95f27c1b4d8d6d54d5d338903962fd9998.json
Ignore CSS Ordering Warnings (#10068)
packages/next/build/webpack/config/helpers.ts
@@ -1,5 +1,5 @@ import curry from 'lodash.curry' -import { Configuration, RuleSetRule } from 'webpack' +import { Configuration, Plugin, RuleSetRule } from 'webpack' export const loader = curry(function loader( rule: RuleSetRule, @@ -40,3 +40,11 @@ export const unshiftLoader = curry(function loader( config.mod...
true
Other
vercel
next.js
3096a772fb1ec088a0c87b08cd259a5d8fe310a6.json
Change example link to be equal to query property (#10052) The example uses { name: 'ZEIT' } but then say that it will link to `?name=Zeit`. Co-authored-by: JJ Kasper <jj@jjsweb.site>
docs/api-reference/next/link.md
@@ -121,7 +121,7 @@ function Home() { export default Home ``` -The above example will be a link to `/about?name=Zeit`. You can use every property as defined in the [Node.js URL module documentation](https://nodejs.org/api/url.html#url_url_strings_and_url_objects). +The above example will be a link to `/about?name=Z...
false
Other
vercel
next.js
b533f2afab7ac7574170eb287d0b54ab74a38a0f.json
Fix typo in API Routes documentation. (#10054) Co-authored-by: JJ Kasper <jj@jjsweb.site>
docs/api-routes/introduction.md
@@ -25,7 +25,7 @@ For example, the following API route `pages/api/user.js` handles a simple `json` export default (req, res) => { res.statusCode = 200 res.setHeader('Content-Type', 'application/json') - res.end(JSON.stringify({ name: 'Jhon Doe' })) + res.end(JSON.stringify({ name: 'John Doe' })) } ```
false
Other
vercel
next.js
d4675c56b5df2d48354ba9e236d9508f29a6648a.json
change "wil" to "will" (#10050)
docs/basic-features/data-fetching.md
@@ -69,7 +69,7 @@ Using `getInitialProps` will make the page opt-in to on-demand [server-side rend // Next.js will execute `getInitialProps` // It will wait for the result of `getInitialProps` // When the results comes back Next.js will render the page. -// Next.js wil do this for every request that comes in. +// Ne...
false
Other
vercel
next.js
fa81a4df835383a57b081c20f6fbb4ef23cc0174.json
Add Links to Global CSS Error (#10031) * Add Links to Global CSS Error * Add Example
errors/css-global.md
@@ -0,0 +1,22 @@ +# Global CSS Must Be in Your Custom \<App\> + +#### Why This Error Occurred + +An attempt to import Global CSS from a file other than [`pages/_app.js`](https://nextjs.org/docs/advanced-features/custom-app) was made. + +Global CSS cannot be used in files other than your [Custom `<App>`](https://nextjs....
true
Other
vercel
next.js
fa81a4df835383a57b081c20f6fbb4ef23cc0174.json
Add Links to Global CSS Error (#10031) * Add Links to Global CSS Error * Add Example
errors/global-css.md
@@ -1,11 +0,0 @@ -# Global CSS Must Be in Your Custom <App> - -#### Why This Error Occurred - -An attempt to import Global CSS from a file other than `pages/_app.js` was made. - -Global CSS cannot be used in files other than your Custom `<App>` due to its side-effects and ordering problems. - -#### Possible Ways to Fix...
true
Other
vercel
next.js
fa81a4df835383a57b081c20f6fbb4ef23cc0174.json
Add Links to Global CSS Error (#10031) * Add Links to Global CSS Error * Add Example
packages/next/build/webpack/config/blocks/css/messages.ts
@@ -7,7 +7,7 @@ export function getGlobalImportError(file: string | null) { 'Custom <App>' )}. Please move all global CSS imports to ${chalk.cyan( file ? file : 'pages/_app.js' - )}.\nRead more: https://err.sh/next.js/global-css` + )}.\nRead more: https://err.sh/next.js/css-global` } export function ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/blog-starter/components/syntax-highlight.css
@@ -1,152 +0,0 @@ -code[class*='language-'], -pre[class*='language-'] { - color: #f8f8f2; - background: none; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/blog-starter/next.config.js
@@ -15,28 +15,14 @@ module.exports = withMDX({ module: 'empty', } - config.module.rules.push( - { - test: /\.css$/, - use: [ - defaultLoaders.babel, - { - loader: require('styled-jsx/webpack').loader, - options: { - type: 'global',...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/blog-starter/package.json
@@ -7,7 +7,6 @@ "now-build": "next build && yarn build:rss" }, "dependencies": { - "@zeit/next-css": "^1.0.1", "@zeit/next-mdx": "^1.2.0", "babel-plugin-macros": "^2.5.0", "babel-plugin-preval": "^3.0.1",
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-cookie-auth/next.config.js
@@ -1,3 +0,0 @@ -module.exports = { - target: 'serverless', -}
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-external-scoped-css/README.md
@@ -1,3 +0,0 @@ -# With external scoped css - -This example has been deprecated in favor of [@zeit/next-css](https://github.com/zeit/next-plugins/tree/master/packages/next-css).
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/README.md
@@ -45,4 +45,4 @@ now ## The idea behind the example -This example demonstrates how to use the [next-css plugin](https://github.com/zeit/next-plugins/tree/master/packages/next-css) It includes patterns for with and without CSS Modules, with PostCSS and with additional webpack configurations on top of the next-css ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/component/hello-world.js
@@ -0,0 +1,7 @@ +import css from './hello-world.module.css' + +export default () => ( + <div className={css.hello}> + Hello World, I am being styled using CSS Modules! + </div> +)
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/component/hello-world.module.css
@@ -0,0 +1,3 @@ +.hello { + font-size: 25px; +}
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/next.config.js
@@ -1,16 +0,0 @@ -const withCSS = require('@zeit/next-css') -/* Without CSS Modules, with PostCSS */ -module.exports = withCSS() - -/* With CSS Modules */ -// module.exports = withCSS({ cssModules: true }) - -/* With additional configuration on top of CSS Modules */ -/* -module.exports = withCSS({ - cssModules: true, ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/package.json
@@ -8,8 +8,7 @@ "start": "next start" }, "dependencies": { - "@zeit/next-css": "^1.0.1", - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.7.0", "react-dom": "^16.7.0" }
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/pages/_app.js
@@ -0,0 +1,7 @@ +import '../style.css' + +function MyApp({ Component, pageProps }) { + return <Component {...pageProps} /> +} + +export default MyApp
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/pages/index.js
@@ -1,12 +1,7 @@ -/* Without CSS Modules, maybe with PostCSS */ +import HelloWorld from '../component/hello-world' -import '../style.css' - -export default () => <div className="example">O Hai world!</div> - -/* With CSS Modules */ -/* -import css from "../style.css" - -export default () => <div className={css.exampl...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-next-css/style.css
@@ -1,16 +1,7 @@ -.example { - font-size: 50px; - color: papayawhip; -} - -/* Post-CSS */ -/* :root { --some-color: red; } -.example { +body { color: var(--some-color); } - -*/
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-quill-js/next.config.js
@@ -1,5 +0,0 @@ -// next.config.js -const withCSS = require('@zeit/next-css') -module.exports = withCSS({ - /* my next config */ -})
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-quill-js/package.json
@@ -9,8 +9,7 @@ "start": "next start" }, "dependencies": { - "@zeit/next-css": "^1.0.1", - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.7.0", "react-dom": "^16.7.0", "react-quill": "^1.3.3"
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-quill-js/pages/_app.js
@@ -0,0 +1,7 @@ +import 'react-quill/dist/quill.snow.css' + +function MyApp({ Component, pageProps }) { + return <Component {...pageProps} /> +} + +export default MyApp
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-quill-js/pages/index.js
@@ -1,6 +1,5 @@ import React from 'react' import dynamic from 'next/dynamic' -import 'react-quill/dist/quill.snow.css' const QuillNoSSRWrapper = dynamic(import('react-quill'), { ssr: false,
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-rbx-bulma-pro/components/Layout.js
@@ -9,7 +9,6 @@ import { Title, Footer, } from 'rbx' -import 'bulma-pro/css/bulma.css' const Layout = ({ children }) => { return (
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-rbx-bulma-pro/next.config.js
@@ -1,11 +0,0 @@ -const withCSS = require('@zeit/next-css') -module.exports = withCSS({ - webpack: config => { - // Fixes npm packages that depend on `fs` module - config.node = { - fs: 'empty', - } - - return config - }, -})
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-rbx-bulma-pro/package.json
@@ -6,9 +6,8 @@ "start": "next start" }, "dependencies": { - "@zeit/next-css": "1.0.1", "bulma-pro": "^0.1.7", - "next": "8.1.0", + "next": "^9.1.8-canary.11", "rbx": "^2.2.0", "react": "16.8.6", "react-dom": "16.8.6"
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-rbx-bulma-pro/pages/_app.js
@@ -0,0 +1,7 @@ +import 'bulma-pro/css/bulma.css' + +function MyApp({ Component, pageProps }) { + return <Component {...pageProps} /> +} + +export default MyApp
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/.babelrc
@@ -1,14 +0,0 @@ -{ - "presets": [ - "next/babel" - ], - "plugins": [ - [ - "react-css-modules", - { - "exclude": "node_modules", - "generateScopedName": "[local]_[hash:base64:5]" - } - ] - ] -} \ No newline at end of file
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/README.md
@@ -1,50 +0,0 @@ -# react-css-modules example - -## Deploy your own - -Deploy the example using [ZEIT Now](https://zeit.co/now): - -[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/new/project?template=https://github.com/zeit/next.js/tree/canary/examples/with-react-css-modules) - -## How to use - -### ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/next.config.js
@@ -1,9 +0,0 @@ -const withCSS = require('@zeit/next-css') - -module.exports = withCSS({ - cssModules: true, - cssLoaderOptions: { - importLoaders: 1, - localIdentName: '[local]_[hash:base64:5]', - }, -})
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/package.json
@@ -1,20 +0,0 @@ -{ - "name": "with-react-css-modules", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "dev": "next", - "build": "next build", - "start": "next start" - }, - "author": "Samciu", - "license": "ISC", - "dependencies": { - "@zeit/next-css": "^1.0.1", ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/pages/index.css
@@ -1,4 +0,0 @@ -.example { - font-size: 36px; - background: #999999; -}
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-css-modules/pages/index.js
@@ -1,6 +0,0 @@ -import React from 'react' -import './index.css' - -export default () => ( - <div styleName="example">This is an example with react-css-modules.</div> -)
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-multi-carousel/next.config.js
@@ -1,5 +0,0 @@ -const withPlugins = require('next-compose-plugins') -const withCSS = require('@zeit/next-css') -const withFonts = require('next-fonts') - -module.exports = withPlugins([withCSS, withFonts], { target: 'serverless' })
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-multi-carousel/package.json
@@ -13,19 +13,12 @@ "dependencies": { "@material-ui/core": "^3.9.2", "@material-ui/icons": "^3.0.2", - "@zeit/next-css": "^1.0.1", "jss": "^9.8.7", "mobile-detect": "^1.4.3", - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.8.3", "react-dom": "^16.8.3", "rea...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-multi-carousel/pages/_app.js
@@ -8,9 +8,12 @@ import Head from 'next/head' import { MuiThemeProvider } from '@material-ui/core/styles' import CssBaseline from '@material-ui/core/CssBaseline' import JssProvider from 'react-jss/lib/JssProvider' - import getPageContext from '../src/getPageContext' +// Add global styles +import '../style.css' +i...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-react-multi-carousel/pages/index.js
@@ -4,8 +4,6 @@ import { withStyles } from '@material-ui/core/styles' import Carousel from 'react-multi-carousel' import Image from '../components/image' -import '../style.css' -import 'react-multi-carousel/lib/styles.css' const styles = theme => ({ root: {
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-scoped-stylesheets-and-postcss/README.md
@@ -1,3 +0,0 @@ -# Scoped stylesheets and PostCSS - -This example has been deprecated in favor of the [@zeit/next-css](https://github.com/zeit/next-plugins/tree/master/packages/next-css#postcss-plugins) module.
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-semantic-ui/next.config.js
@@ -1,10 +1,7 @@ -const withCSS = require('@zeit/next-css') - -module.exports = withCSS({ - target: 'serverless', +module.exports = { webpack(config) { config.module.rules.push({ - test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/, + test: /\.(png|svg)$/, use: { loader: 'url-loader', ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-semantic-ui/package.json
@@ -7,14 +7,13 @@ "start": "next start" }, "dependencies": { - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.7.0", "react-dom": "^16.7.0", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^0.84.0" }, "devDependencies": { - "@zeit/next-css": "^1.0.1", ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-semantic-ui/pages/_app.js
@@ -0,0 +1,8 @@ +import 'semantic-ui-css/semantic.min.css' +import './styles.css' + +function MyApp({ Component, pageProps }) { + return <Component {...pageProps} /> +} + +export default MyApp
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-semantic-ui/pages/index.js
@@ -1,9 +1,7 @@ -import 'semantic-ui-css/semantic.min.css' import { Modal, Button, Icon } from 'semantic-ui-react' import SmallImage from './SmallImage.png' import LargeImage from './LargeImage.png' -import './styles.css' export default () => ( <div className="centered"> @@ -18,7 +16,7 @@ export default () =...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-tailwindcss/next.config.js
@@ -1,3 +0,0 @@ -const withCSS = require('@zeit/next-css') - -module.exports = withCSS({})
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-tailwindcss/package.json
@@ -7,8 +7,7 @@ "start": "next start" }, "dependencies": { - "@zeit/next-css": "^1.0.1", - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-tailwindcss/pages/_app.js
@@ -1,12 +1,7 @@ import '../styles/index.css' -import React from 'react' -import App from 'next/app' - -export default class MyApp extends App { - render() { - const { Component, pageProps } = this.props - - return <Component {...pageProps} /> - } +function MyApp({ Component, pageProps }) { + return <Compon...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-tailwindcss/postcss.config.js
@@ -1,16 +1,19 @@ module.exports = { plugins: [ - require('postcss-easy-import'), - require('tailwindcss'), - process.env.NODE_ENV === 'production' && - require('@fullhuman/postcss-purgecss')({ - content: [ - './pages/**/*.{js,jsx,ts,tsx}', - './components/**/*.{js,jsx,ts,tsx}...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-videojs/components/Player.js
@@ -1,7 +1,6 @@ import React, { Component } from 'react' import videojs from 'video.js' import 'videojs-youtube' -import 'video.js/dist/video-js.css' class Player extends Component { componentDidMount() {
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-videojs/next.config.js
@@ -1,20 +0,0 @@ -const withCss = require('@zeit/next-css') - -module.exports = withCss({ - webpack(config) { - config.module.rules.push({ - test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/, - use: { - loader: 'url-loader', - options: { - limit: 100000, - publicPath: './', - ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-videojs/package.json
@@ -7,11 +7,9 @@ "start": "next start" }, "dependencies": { - "@zeit/next-css": "^1.0.1", - "next": "latest", + "next": "^9.1.8-canary.11", "react": "^16.7.0", "react-dom": "^16.7.0", - "url-loader": "^0.6.2", "video.js": "^6.7.3", "videojs-youtube": "^2.4.1" },
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-videojs/pages/_app.js
@@ -0,0 +1,7 @@ +import 'video.js/dist/video-js.css' + +function MyApp({ Component, pageProps }) { + return <Component {...pageProps} /> +} + +export default MyApp
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-videojs/pages/index.js
@@ -1,29 +1,20 @@ -import Head from 'next/head' import React from 'react' import Player from '../components/Player' export default class Index extends React.Component { render() { const videoJsOptions = { techOrder: ['youtube'], - autoplay: true, + autoplay: false, controls: true, ...
true
Other
vercel
next.js
b5080f10106c0d7d7f577e4f3b699e706349f50e.json
Update css examples to use built-in CSS support (#10029) * Update tailwind example * Update blog-starter example * Update with-next-css example * Update with-quill-js * Update with-rbx-bulma-pro * Remove incompatible example * Update with-react-multi-carousel * Update-with-semantic-ui * Update with-videojs exa...
examples/with-zones/blog/next.config.js
@@ -1,7 +1,6 @@ const assetPrefix = process.env.BUILDING_FOR_NOW ? '/blog' : '' module.exports = { - target: 'serverless', assetPrefix, env: { ASSET_PREFIX: assetPrefix,
true