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
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/build/webpack-config.ts
@@ -687,6 +687,14 @@ export default async function getBaseWebpackConfig( ) { return chunk.name.replace(/\.js$/, '-[contenthash].js') } + + if (chunk.name.includes('BUILD_ID')) { + return escapePathVariables(chunk.name).replace( + 'BUILD_ID', + isServer ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/build/webpack/plugins/build-manifest-plugin.ts
@@ -38,6 +38,10 @@ function generateClientManifest( return devalue(clientManifest) } +function isJsFile(file: string): boolean { + return file.endsWith('.js') +} + // This plugin creates a build-manifest.json for all assets that are being output // It has a mapping of "entry" filename to real filename. Because...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/build/webpack/plugins/pages-manifest-plugin.ts
@@ -17,18 +17,33 @@ export default class PagesManifestPlugin implements Plugin { apply(compiler: Compiler): void { compiler.hooks.emit.tap('NextJsPagesManifest', (compilation) => { - const { chunks } = compilation + const entrypoints = compilation.entrypoints const pages: PagesManifest = {} ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/next-server/server/next-server.ts
@@ -358,10 +358,6 @@ export default class Server { type: 'route', name: '_next/static catchall', fn: async (req, res, params, parsedUrl) => { - // The commons folder holds commonschunk files - // The chunks folder holds dynamic entries - // The buildId folder holds ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/server/hot-reloader.ts
@@ -383,8 +383,7 @@ export default class HotReloader { // We only watch `_document` for changes on the server compilation // the rest of the files will be triggered by the client compilation const documentChunk = compilation.chunks.find( - (c) => - c.name === normalize(`st...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
packages/next/server/on-demand-entry-handler.ts
@@ -42,13 +42,11 @@ export default function onDemandEntryHandler( devMiddleware: WebpackDevMiddleware.WebpackDevMiddleware, multiCompiler: webpack.MultiCompiler, { - buildId, pagesDir, pageExtensions, maxInactiveAge, pagesBufferLength, }: { - buildId: string pagesDir: string ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/build-output/test/index.test.js
@@ -12,16 +12,17 @@ const fixturesDir = join(__dirname, '..', 'fixtures') describe('Build Output', () => { describe('Basic Application Output', () => { + let stdout const appDir = join(fixturesDir, 'basic-app') beforeAll(async () => { await remove(join(appDir, '.next')) }) it('sh...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/client-navigation/test/rendering.js
@@ -3,6 +3,7 @@ import cheerio from 'cheerio' import { BUILD_MANIFEST, REACT_LOADABLE_MANIFEST } from 'next/constants' import { join } from 'path' +import url from 'url' export default function (render, fetch) { async function get$(path, query) { @@ -17,6 +18,18 @@ export default function (render, fetch) { ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/custom-routes-catchall/test/index.test.js
@@ -20,16 +20,13 @@ let app const runTests = () => { it('should rewrite to /_next/static correctly', async () => { - // ensure the bundle is built - await renderViaHTTP(appPort, '/hello') - const bundlePath = await join( '/docs/_next/static/', buildId, - 'pages/hello.js' + '_bui...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/custom-routes/test/index.test.js
@@ -303,10 +303,9 @@ const runTests = (isDev = false) => { await renderViaHTTP(appPort, '/hello') const data = await renderViaHTTP( appPort, - `/hidden/_next/static/${buildId}/pages/hello.js` + `/hidden/_next/static/${buildId}/_buildManifest.js` ) - expect(data).toContain('Hello') - ...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/dynamic-routing/test/index.test.js
@@ -499,15 +499,13 @@ function runTests(dev) { }) } else { it('should output modern bundles with dynamic route correctly', async () => { - const bundlePath = join( - appDir, - '.next/static/', - buildId, - 'pages/blog/[name]/comment/[id]' - ) + const buildManifest...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/env-config/test/index.test.js
@@ -18,7 +18,6 @@ jest.setTimeout(1000 * 60 * 2) let app let appPort -let buildId const appDir = join(__dirname, '../app') const getEnvFromHtml = async (path) => { @@ -72,10 +71,19 @@ const runTests = (mode = 'dev') => { // make sure to build page await renderViaHTTP(appPort, '/global') + const b...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/error-load-fail/test/index.test.js
@@ -3,7 +3,14 @@ import { join } from 'path' import fs from 'fs-extra' import webdriver from 'next-webdriver' -import { nextBuild, nextStart, findPort, killApp, check } from 'next-test-utils' +import { + nextBuild, + nextStart, + findPort, + killApp, + check, + getPageFileFromBuildManifest, +} from 'next-test-...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/modern-mode/test/index.test.js
@@ -1,17 +1,23 @@ /* eslint-env jest */ import { join } from 'path' -import { readFileSync, readdirSync } from 'fs' import rimraf from 'rimraf' import { promisify } from 'util' -import { nextServer, runNextCommand, startApp, stopApp } from 'next-test-utils' +import { + renderViaHTTP, + nextServer, + runNextCom...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/production/test/index.test.js
@@ -151,29 +151,37 @@ describe('Production Usage', () => { }) it('should return 412 on static file when If-Unmodified-Since is provided and file is modified', async () => { - const buildId = readFileSync(join(__dirname, '../.next/BUILD_ID'), 'utf8') + const buildManifest = require(join( + _...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/production/test/process-env.js
@@ -1,10 +1,12 @@ /* eslint-env jest */ import webdriver from 'next-webdriver' -import { promises } from 'fs' import { join } from 'path' +import { + readNextBuildClientPageFile, + readNextBuildServerPageFile, +} from 'next-test-utils' -const readNextBuildFile = (relativePath) => - promises.readFile(join(__dirn...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/serverless-trace/test/index.test.js
@@ -2,21 +2,21 @@ import webdriver from 'next-webdriver' import { join } from 'path' -import { existsSync, readdirSync, readFileSync } from 'fs' +import { existsSync, readdirSync } from 'fs' import { killApp, findPort, nextBuild, nextStart, fetchViaHTTP, renderViaHTTP, + readNextBuildClientPageF...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/serverless/test/index.test.js
@@ -12,6 +12,7 @@ import { nextStart, fetchViaHTTP, renderViaHTTP, + getPageFileFromBuildManifest, } from 'next-test-utils' import qs from 'querystring' import path from 'path' @@ -20,7 +21,6 @@ import fetch from 'node-fetch' const appDir = join(__dirname, '../') const serverlessDir = join(appDir, '.next...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/integration/typeof-window-replace/test/index.test.js
@@ -7,33 +7,52 @@ import { nextBuild } from 'next-test-utils' jest.setTimeout(1000 * 60 * 1) const appDir = path.join(__dirname, '../app') -let buildId +let buildManifest +let pagesManifest describe('typeof window replace', () => { beforeAll(async () => { await nextBuild(appDir) - buildId = await fs.r...
true
Other
vercel
next.js
76fddcd7efd930ca1fcef9573c83719f47233d3e.json
Use chunkhash instead of buildId for pages (#13937) Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
test/lib/next-test-utils.js
@@ -471,3 +471,50 @@ export function getBrowserBodyText(browser) { export function normalizeRegEx(src) { return new RegExp(src).source.replace(/\^\//g, '^\\/') } + +export function getBuildManifest(dir) { + return require(path.join(dir, '.next/build-manifest.json')) +} + +export function getPageFileFromBuildManif...
true
Other
vercel
next.js
80036fd9ddd3638d61199a216730ad823daf93ea.json
Fix Fast Refresh with Page Config (#14041) Fixes #13978
packages/react-refresh-utils/internal/helpers.ts
@@ -44,7 +44,13 @@ declare const module: { } function isSafeExport(key: string): boolean { - return key === '__esModule' || key === '__N_SSG' || key === '__N_SSP' + return ( + key === '__esModule' || + key === '__N_SSG' || + key === '__N_SSP' || + // TODO: remove this key from page config instead of a...
true
Other
vercel
next.js
80036fd9ddd3638d61199a216730ad823daf93ea.json
Fix Fast Refresh with Page Config (#14041) Fixes #13978
test/acceptance/ReactRefreshRegression.test.js
@@ -67,3 +67,190 @@ test('styled-components hydration mismatch', async () => { await cleanup() }) + +// https://github.com/vercel/next.js/issues/13978 +test('can fast refresh a page with getStaticProps', async () => { + const [session, cleanup] = await sandbox() + + await session.patch( + 'pages/index.js', +...
true
Other
vercel
next.js
d5493ff24dd16cdda1059719ab9ec5a2cfec903f.json
Fix dynamic route match and basePath (#14036) This correctly strips the `basePath` before generating the `route-matcher` for dynamic routes and adds regression tests to ensure these work correctly with the `basePath` feature Closes: https://github.com/vercel/next.js/issues/13966
packages/next/next-server/lib/router/router.ts
@@ -457,7 +457,9 @@ export default class Router implements BaseRouter { if (isDynamicRoute(route)) { const { pathname: asPathname } = parse(as) const routeRegex = getRouteRegex(route) - const routeMatch = getRouteMatcher(routeRegex)(asPathname) + const routeMatch = getRouteMatcher...
true
Other
vercel
next.js
d5493ff24dd16cdda1059719ab9ec5a2cfec903f.json
Fix dynamic route match and basePath (#14036) This correctly strips the `basePath` before generating the `route-matcher` for dynamic routes and adds regression tests to ensure these work correctly with the `basePath` feature Closes: https://github.com/vercel/next.js/issues/13966
test/integration/basepath/pages/[slug].js
@@ -0,0 +1,3 @@ +import { useRouter } from 'next/router' + +export default () => <p>slug: {useRouter().query.slug}</p>
true
Other
vercel
next.js
d5493ff24dd16cdda1059719ab9ec5a2cfec903f.json
Fix dynamic route match and basePath (#14036) This correctly strips the `basePath` before generating the `route-matcher` for dynamic routes and adds regression tests to ensure these work correctly with the `basePath` feature Closes: https://github.com/vercel/next.js/issues/13966
test/integration/basepath/pages/catchall/[...parts].js
@@ -0,0 +1,3 @@ +import { useRouter } from 'next/router' + +export default () => <p>parts: {useRouter().query.parts?.join('/')}</p>
true
Other
vercel
next.js
d5493ff24dd16cdda1059719ab9ec5a2cfec903f.json
Fix dynamic route match and basePath (#14036) This correctly strips the `basePath` before generating the `route-matcher` for dynamic routes and adds regression tests to ensure these work correctly with the `basePath` feature Closes: https://github.com/vercel/next.js/issues/13966
test/integration/basepath/pages/hello.js
@@ -20,6 +20,18 @@ export default () => ( <h1>getServerSideProps</h1> </a> </Link> + <br /> + <Link href="/[slug]" as="/first"> + <a id="dynamic-link"> + <h1>dynamic page</h1> + </a> + </Link> + <br /> + <Link href="/catchall/[...parts]" as="/catchall/hello/world"> +...
true
Other
vercel
next.js
d5493ff24dd16cdda1059719ab9ec5a2cfec903f.json
Fix dynamic route match and basePath (#14036) This correctly strips the `basePath` before generating the `route-matcher` for dynamic routes and adds regression tests to ensure these work correctly with the `basePath` feature Closes: https://github.com/vercel/next.js/issues/13966
test/integration/basepath/test/index.test.js
@@ -102,6 +102,24 @@ const runTests = (context, dev = false) => { await check(() => browser.elementByCss('p').text(), /hello from another/) }) + it('should work with normal dynamic page', async () => { + const browser = await webdriver(context.appPort, '/docs/hello') + await browser.elementByCss('#dyna...
true
Other
vercel
next.js
d874329d11e26dbec5b938c7928f1c416cf93082.json
Prioritize webpack bootstrapping first (#13987) Webpack will randomly execute script order if its runtime is not prioritized before chunks execute. This seems to be somehow triggered in #13870 because of slightly different script ordering. This had actually broke CSS, which is why our tests are failing 50% of the ti...
packages/next/build/webpack/plugins/build-manifest-plugin.ts
@@ -99,7 +99,7 @@ export default class BuildManifestPlugin { filesForEntry.push(file.replace(/\\/g, '/')) } - assetMap.pages[pagePath] = [...filesForEntry, ...mainJsFiles] + assetMap.pages[pagePath] = [...mainJsFiles, ...filesForEntry] } // Add the runtime...
true
Other
vercel
next.js
d874329d11e26dbec5b938c7928f1c416cf93082.json
Prioritize webpack bootstrapping first (#13987) Webpack will randomly execute script order if its runtime is not prioritized before chunks execute. This seems to be somehow triggered in #13870 because of slightly different script ordering. This had actually broke CSS, which is why our tests are failing 50% of the ti...
packages/next/pages/_document.tsx
@@ -490,7 +490,12 @@ export class NextScript extends Component<OriginProps> { '!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDe...
true
Other
vercel
next.js
d874329d11e26dbec5b938c7928f1c416cf93082.json
Prioritize webpack bootstrapping first (#13987) Webpack will randomly execute script order if its runtime is not prioritized before chunks execute. This seems to be somehow triggered in #13870 because of slightly different script ordering. This had actually broke CSS, which is why our tests are failing 50% of the ti...
test/integration/css/test/index.test.js
@@ -817,6 +817,23 @@ describe('CSS Support', () => { await killApp(app) }) + it('should not execute scripts in any order', async () => { + const content = await renderViaHTTP(appPort, '/') + const $ = cheerio.load(content) + + let asyncCount = 0 + let totalCount = 0 + for (cons...
true
Other
vercel
next.js
aed8b3752999ad08935c6e38880091da3b69cc2b.json
Fix variable shadowing in blog-starter example (#13988) Sorry for the super trivial PR. I noticed this while working with the example and figured it might be worth fixing.
examples/blog-starter/pages/posts/[slug].js
@@ -72,10 +72,10 @@ export async function getStaticPaths() { const posts = getAllPosts(['slug']) return { - paths: posts.map((posts) => { + paths: posts.map((post) => { return { params: { - slug: posts.slug, + slug: post.slug, }, } }),
false
Other
vercel
next.js
d51fef5fc9cb5ef0223e82d56ae98c4216e1d331.json
chore(create-next-app): remove example picker (#13977) If a user does not specify `--example` when using create-next-app then just spin up the default template and only prompt them for the name of their project. if a user does specify `--example` (with no string after it) then show them the example picker. Closes #...
packages/create-next-app/helpers/examples.ts
@@ -96,10 +96,3 @@ export function downloadAndExtractExample( tar.extract({ cwd: root, strip: 3 }, [`next.js-canary/examples/${name}`]) ) } - -export async function listExamples(): Promise<any> { - const res = await got( - 'https://api.github.com/repositories/70107786/contents/examples' - ) - return JSON...
true
Other
vercel
next.js
d51fef5fc9cb5ef0223e82d56ae98c4216e1d331.json
chore(create-next-app): remove example picker (#13977) If a user does not specify `--example` when using create-next-app then just spin up the default template and only prompt them for the name of their project. if a user does specify `--example` (with no string after it) then show them the example picker. Closes #...
packages/create-next-app/index.ts
@@ -6,7 +6,6 @@ import path from 'path' import prompts from 'prompts' import checkForUpdate from 'update-check' import { createApp, DownloadError } from './create-app' -import { listExamples } from './helpers/examples' import { shouldUseYarn } from './helpers/should-use-yarn' import { validateNpmName } from './hel...
true
Other
vercel
next.js
d51fef5fc9cb5ef0223e82d56ae98c4216e1d331.json
chore(create-next-app): remove example picker (#13977) If a user does not specify `--example` when using create-next-app then just spin up the default template and only prompt them for the name of their project. if a user does specify `--example` (with no string after it) then show them the example picker. Closes #...
test/integration/create-next-app/index.test.js
@@ -190,46 +190,6 @@ describe('create next app', () => { // TODO: investigate why this test stalls on yarn install when // stdin is piped instead of inherited on windows if (process.platform !== 'win32') { - it('should allow to manually select an example', async () => { - await usingTempDir(async (cwd)...
true
Other
vercel
next.js
f2e29f6adee5fe7b223b30d57842efde09ed58a2.json
[Examples] using-preact: add Prefresh, DevTools & chunking fix (#13976) This adds [prefresh](https://github.com/JoviDeCroock/prefresh) and [preact/debug + DevTools](https://preactjs.com/guide/v10/debugging/) during development. It also fixes the chunking/splitting configuration for production builds by creating a `pre...
examples/using-preact/next.config.js
@@ -0,0 +1,34 @@ +const withPrefresh = require('@prefresh/next') + +module.exports = withPrefresh({ + webpack(config, { dev, isServer }) { + // Move Preact into the framework chunk instead of duplicating in routes: + const splitChunks = config.optimization && config.optimization.splitChunks + if (splitChunks)...
true
Other
vercel
next.js
f2e29f6adee5fe7b223b30d57842efde09ed58a2.json
[Examples] using-preact: add Prefresh, DevTools & chunking fix (#13976) This adds [prefresh](https://github.com/JoviDeCroock/prefresh) and [preact/debug + DevTools](https://preactjs.com/guide/v10/debugging/) during development. It also fixes the chunking/splitting configuration for production builds by creating a `pre...
examples/using-preact/package.json
@@ -6,11 +6,16 @@ "build": "next build", "start": "next start" }, + "devDependencies": { + "@prefresh/next": "^0.3.0", + "react-refresh": "^0.8.3" + }, "dependencies": { - "next": "^9.2.3-canary.21", - "preact": "^10.2.1", - "preact-render-to-string": "^5.1.4", + "next": "^9.4.0", + ...
true
Other
vercel
next.js
7d648dace176a65c06ce034cac1e5ea4776d4da7.json
Change text from "Attention" to "Warning" (#13973) Fixes #13972
packages/next/export/index.ts
@@ -330,7 +330,7 @@ export default async function exportApp( // Warn if the user defines a path for an API page if (hasApiRoutes) { log( - chalk.bold.red(`Attention`) + + chalk.bold.red(`Warning`) + ': ' + chalk.yellow( `Statically exporting a Next.js application via \`...
false
Other
vercel
next.js
adf1a24ccb4dd17249422798f33ccb77c308ceea.json
Update AMP Optimizer to 2.5.1 (#13925) Most notable new feature: automated hero image preloading. Release notes: https://github.com/ampproject/amp-toolbox/releases/tag/v2.5.1
packages/next/package.json
@@ -58,7 +58,7 @@ ] }, "dependencies": { - "@ampproject/toolbox-optimizer": "2.5.0", + "@ampproject/toolbox-optimizer": "2.5.1", "@babel/code-frame": "7.8.3", "@babel/core": "7.7.7", "@babel/plugin-proposal-class-properties": "7.8.3",
true
Other
vercel
next.js
adf1a24ccb4dd17249422798f33ccb77c308ceea.json
Update AMP Optimizer to 2.5.1 (#13925) Most notable new feature: automated hero image preloading. Release notes: https://github.com/ampproject/amp-toolbox/releases/tag/v2.5.1
yarn.lock
@@ -2,21 +2,21 @@ # yarn lockfile v1 -"@ampproject/toolbox-core@^2.5.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@ampproject/toolbox-core/-/toolbox-core-2.5.0.tgz#8ea4575f1c0d0048e73f64bf7e5cfc8a8e5bd6ef" - integrity sha512-aQjE8wORKXJ2tLWHuevdSL31zhQdUhC+skyEhESBV/8eOzd7ROaOzR/F43bS7uAhnYta1...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/build/utils.ts
@@ -380,10 +380,6 @@ async function computeFromManifest( let expected = 0 const files = new Map<string, number>() Object.keys(manifest.pages).forEach((key) => { - if (key === '/_polyfills') { - return - } - if (pageInfos) { const pageInfo = pageInfos.get(key) // don't include AMP ...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/build/webpack/plugins/build-manifest-plugin.ts
@@ -1,28 +1,27 @@ import devalue from 'next/dist/compiled/devalue' -import { Compiler } from 'webpack' +import { Compiler, compilation as CompilationType } from 'webpack' import { RawSource } from 'webpack-sources' import { BUILD_MANIFEST, CLIENT_STATIC_FILES_PATH, CLIENT_STATIC_FILES_RUNTIME_MAIN, CLIEN...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/client/index.js
@@ -50,7 +50,7 @@ envConfig.setConfig({ const asPath = getURL() -const pageLoader = new PageLoader(buildId, prefix) +const pageLoader = new PageLoader(buildId, prefix, page) const register = ([r, f]) => pageLoader.registerPage(r, f) if (window.__NEXT_P) { // Defer page registration for another tick. This will...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/client/page-loader.js
@@ -11,6 +11,12 @@ function hasRel(rel, link) { } catch {} } +function pageLoadError(route) { + const error = new Error(`Error loading ${route}`) + error.code = 'PAGE_LOAD_ERROR' + return error +} + const relPrefetch = hasRel('preload') && !hasRel('prefetch') ? // https://caniuse.com/#feat=link-rel-pr...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/next-server/server/render.tsx
@@ -657,7 +657,7 @@ export async function renderToHTML( const files = [ ...new Set([ ...getPageFiles(buildManifest, '/_app'), - ...getPageFiles(buildManifest, pathname), + ...(pathname !== '/_error' ? getPageFiles(buildManifest, pathname) : []), ]), ]
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
packages/next/pages/_document.tsx
@@ -159,7 +159,7 @@ export class Head extends Component< const { assetPrefix, files } = this.context._documentProps const { _devOnlyInvalidateCacheQueryString } = this.context const cssFiles = - files && files.length ? files.filter((f) => /\.css$/.test(f)) : [] + files && files.length ? files.f...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
test/integration/chunking-minimal/next.config.js
@@ -1,5 +0,0 @@ -module.exports = { - experimental: { - modern: true, - }, -}
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
test/integration/chunking-minimal/pages/index.js
@@ -1 +0,0 @@ -export default () => <p>hi</p>
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
test/integration/chunking-minimal/test/index.test.js
@@ -1,33 +0,0 @@ -/* eslint-env jest */ - -import { join } from 'path' -import { readFile } from 'fs-extra' -import { nextBuild } from 'next-test-utils' - -jest.setTimeout(1000 * 60 * 1) - -const appDir = join(__dirname, '../') -let buildId - -describe('Chunking (minimal)', () => { - beforeAll(async () => { - await...
true
Other
vercel
next.js
2169c0ce9700a00b7b6ef69f4165a262d9009ade.json
Use buildManifest to load page JS (#13870) Initial work to use chunkhashes instead of buildid for the page files in production. This does not change the calculation of the filename itself initially.
test/integration/production/test/index.test.js
@@ -562,16 +562,6 @@ describe('Production Usage', () => { // Let the browser to prefetch the page and error it on the console. await waitFor(3000) - const browserLogs = await browser.log('browser') - let foundLog = false - browserLogs.forEach((log) => { - if ( - ...
true
Other
vercel
next.js
08b2e9b3ba20df4d9f29160080fecb6a2081b6a1.json
Remove some leftovers after index page updates (#13876)
packages/next/build/utils.ts
@@ -380,16 +380,12 @@ async function computeFromManifest( let expected = 0 const files = new Map<string, number>() Object.keys(manifest.pages).forEach((key) => { - // prevent duplicate '/' and '/index' - if (key === '/index') return - if (key === '/_polyfills') { return } if (page...
true
Other
vercel
next.js
08b2e9b3ba20df4d9f29160080fecb6a2081b6a1.json
Remove some leftovers after index page updates (#13876)
packages/next/build/webpack/plugins/build-manifest-plugin.ts
@@ -111,10 +111,6 @@ export default class BuildManifestPlugin { assetMap.pages[pagePath] = [...filesForEntry, ...mainJsFiles] } - if (typeof assetMap.pages['/index'] !== 'undefined') { - assetMap.pages['/'] = assetMap.pages['/index'] - } - // Create a separate entry...
true
Other
vercel
next.js
08b2e9b3ba20df4d9f29160080fecb6a2081b6a1.json
Remove some leftovers after index page updates (#13876)
packages/next/next-server/server/get-page-files.ts
@@ -14,13 +14,9 @@ export function getPageFiles( buildManifest: BuildManifest, page: string ): string[] { - const normalizedPage = normalizePagePath(page) + const normalizedPage = denormalizePagePath(normalizePagePath(page)) let files = buildManifest.pages[normalizedPage] - if (!files) { - files = bui...
true
Other
vercel
next.js
319b858e7767c974967ed3cd768855ad8e2172d3.json
fix typo in comment (#13883)
examples/with-firebase/context/userContext.js
@@ -19,7 +19,7 @@ export default function UserContextComp({ children }) { setUser({ uid, displayName, email, photoURL }) } else setUser(null) } catch (error) { - // Most probably a connection error. Handle appropiately. + // Most probably a connection error. Handle appropriately...
false
Other
vercel
next.js
989b6ad145b7539e09522766d3818126bb2c17fd.json
Preserve url better in exportTrailingSlash (#13840) Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
packages/next/next-server/lib/router/rewrite-url-for-export.ts
@@ -7,7 +7,7 @@ export function rewriteUrlForNextExport(url: string): string { // Append a trailing slash if this path does not have an extension if (!/\.[^/]+\/?$/.test(path)) path += `/` } - if (qs) path += '?' + qs - if (hash) path += '#' + hash + if (typeof qs === 'string') path += '?' + qs + if (t...
true
Other
vercel
next.js
989b6ad145b7539e09522766d3818126bb2c17fd.json
Preserve url better in exportTrailingSlash (#13840) Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
test/integration/export/next.config.js
@@ -17,6 +17,8 @@ module.exports = (phase) => { '/about': { page: '/about' }, '/button-link': { page: '/button-link' }, '/hash-link': { page: '/hash-link' }, + '/empty-hash-link': { page: '/empty-hash-link' }, + '/empty-query-link': { page: '/empty-query-link' }, '/get-...
true
Other
vercel
next.js
989b6ad145b7539e09522766d3818126bb2c17fd.json
Preserve url better in exportTrailingSlash (#13840) Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
test/integration/export/pages/empty-hash-link.js
@@ -0,0 +1,9 @@ +import Link from 'next/link' + +export default () => ( + <div id="empty-hash-link-page"> + <Link href="/hello#"> + <a id="empty-hash-link">Empty Hash link</a> + </Link> + </div> +)
true
Other
vercel
next.js
989b6ad145b7539e09522766d3818126bb2c17fd.json
Preserve url better in exportTrailingSlash (#13840) Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
test/integration/export/pages/empty-query-link.js
@@ -0,0 +1,9 @@ +import Link from 'next/link' + +export default () => ( + <div id="empty-query-link-page"> + <Link href="/hello?"> + <a id="empty-query-link">Empty Query link</a> + </Link> + </div> +)
true
Other
vercel
next.js
989b6ad145b7539e09522766d3818126bb2c17fd.json
Preserve url better in exportTrailingSlash (#13840) Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
test/integration/export/test/browser.js
@@ -28,6 +28,24 @@ export default function (context) { expect(link).toMatch(/\/hash-link\/#hash$/) }) + it('should preserve hash symbol on empty hash Link', async () => { + const browser = await webdriver(context.port, '/empty-hash-link') + const link = await browser + .elementByCss('#...
true
Other
vercel
next.js
a89afc2ec6f83cb6d7d7a6e09699e311ddafdb3f.json
Add FAQ section to Built-in CSS Support (#13846) I added a FAQ section to answer questions I see frequently. Motivation: https://github.com/vercel/next.js/discussions/13625#discussioncomment-23186
docs/basic-features/built-in-css-support.md
@@ -42,6 +42,10 @@ In development, expressing stylesheets this way allows your styles to be hot rel In production, all CSS files will be automatically concatenated into a single minified `.css` file. +### Import styles from `node_modules` + +If you’d like to import CSS files from `node_modules`, you must do so ins...
false
Other
vercel
next.js
38519c626e58e178e05dfac63db1b5067cdeca35.json
refactor: Use native fs instead of fs-extra and promisify (#13841) **add-comment.js** `writeFile` is not unique to `fs-extra`. **lib/find-page-file.ts** ref: #12026
.github/actions/next-stats-action/src/add-comment.js
@@ -1,5 +1,5 @@ const path = require('path') -const fs = require('fs-extra') +const fs = require('fs').promises const fetch = require('node-fetch') const prettyMs = require('pretty-ms') const logger = require('./util/logger')
true
Other
vercel
next.js
38519c626e58e178e05dfac63db1b5067cdeca35.json
refactor: Use native fs instead of fs-extra and promisify (#13841) **add-comment.js** `writeFile` is not unique to `fs-extra`. **lib/find-page-file.ts** ref: #12026
packages/next/server/lib/find-page-file.ts
@@ -2,18 +2,15 @@ import { join, sep as pathSeparator, normalize } from 'path' import chalk from 'next/dist/compiled/chalk' import { isWriteable } from '../../build/is-writeable' import { warn } from '../../build/output/log' -import fs from 'fs' -import { promisify } from 'util' +import { promises } from 'fs' impor...
true
Other
vercel
next.js
4e6c326a56ec39c73971397e8ce2a80e2091e953.json
Docs: Fix links to Agility CMS Examples (#13794) ❌ `cms-agility-cms` ✅ `cms-agilitycms` See: https://github.com/vercel/next.js/tree/canary/examples/cms-agilitycms
docs/advanced-features/preview-mode.md
@@ -16,7 +16,7 @@ description: Next.js has the preview mode for statically generated pages. You ca <li><a href="https://github.com/vercel/next.js/tree/canary/examples/cms-prismic">Prismic Example</a> (<a href="https://next-blog-prismic.now.sh/">Demo</a>)</li> <li><a href="https://github.com/vercel/next.js/tre...
true
Other
vercel
next.js
4e6c326a56ec39c73971397e8ce2a80e2091e953.json
Docs: Fix links to Agility CMS Examples (#13794) ❌ `cms-agility-cms` ✅ `cms-agilitycms` See: https://github.com/vercel/next.js/tree/canary/examples/cms-agilitycms
docs/basic-features/data-fetching.md
@@ -17,7 +17,7 @@ description: 'Next.js has 2 pre-rendering modes: Static Generation and Server-si <li><a href="https://github.com/vercel/next.js/tree/canary/examples/cms-prismic">Prismic Example</a> (<a href="https://next-blog-prismic.now.sh/">Demo</a>)</li> <li><a href="https://github.com/vercel/next.js/tre...
true
Other
vercel
next.js
4e6c326a56ec39c73971397e8ce2a80e2091e953.json
Docs: Fix links to Agility CMS Examples (#13794) ❌ `cms-agility-cms` ✅ `cms-agilitycms` See: https://github.com/vercel/next.js/tree/canary/examples/cms-agilitycms
docs/basic-features/pages.md
@@ -56,7 +56,7 @@ Finally, you can always use **Client-side Rendering** along with Static Generati <li><a href="https://github.com/vercel/next.js/tree/canary/examples/cms-prismic">Prismic Example</a> (<a href="https://next-blog-prismic.now.sh/">Demo</a>)</li> <li><a href="https://github.com/vercel/next.js/tre...
true
Other
vercel
next.js
f37c00279bd50d2aac38e3e2b67f6ab1826ef777.json
Fix sample command (#13789) dev doesn't seem to exist
examples/cms-strapi/README.md
@@ -60,7 +60,7 @@ Inside the Strapi directory, stop the server, [install GraphQL](https://strapi.i # If using Yarn: yarn strapi install graphql npm run strapi install graphql -npm run dev # or: yarn develop +npm run develop # or: yarn develop ``` ### Step 3. Create an `Author` collection
false
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/amp-story/.gitignore
@@ -1,3 +0,0 @@ -.DS_Store -.next -node_modules
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/basic-export/.gitignore
@@ -1 +0,0 @@ -out
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-agilitycms/.gitignore
@@ -1,2 +0,0 @@ -.env*.local -.vercel \ No newline at end of file
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-contentful/.gitignore
@@ -1,2 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-datocms/.gitignore
@@ -1,2 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-prismic/.gitignore
@@ -1,2 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-sanity/.gitignore
@@ -1,2 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-strapi/.gitignore
@@ -1,2 +1,34 @@ -.now -.vercel \ No newline at end of file +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-deb...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-takeshape/.gitignore
@@ -1,3 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/cms-wordpress/.gitignore
@@ -1 +1,34 @@ -.vercel \ No newline at end of file +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* ...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/custom-server-typescript/.gitignore
@@ -1,8 +0,0 @@ -# Dependency directories -node_modules/ - -# next.js build output -.next - -# production server output -dist
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/gh-pages/.gitignore
@@ -1,2 +0,0 @@ -node_modules -.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-algolia-react-instantsearch/.gitignore
@@ -1,19 +0,0 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -node_modules - -# testing -/coverage - -# production -/build -/dist -/.next - -# misc -.DS_Store -.env -npm-debug.log* -yarn-debug.log* -yarn-error.log*
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-firebase-authentication/.gitignore
@@ -1,23 +0,0 @@ -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -.env - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* \ No newline at end of file
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-firebase/.gitignore
@@ -1,25 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -.env - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log*
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-hls-js/.gitignore
@@ -1,27 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# loc...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-http2/.gitignore
@@ -1 +0,0 @@ -*.pem
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-linaria/.gitignore
@@ -1,22 +0,0 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -/node_modules - -# testing -/coverage - -# production -/build -/dist -/.next - -# other -/.linaria-cache - -# misc -.DS_Store -.env -npm-debug.log* -yarn-debug.log* -yarn-error.log*
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-lingui/.gitignore
@@ -1,2 +1,4 @@ locale/_build -locale/*/*.js \ No newline at end of file +locale/*/*.js +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-mux-video/.gitignore
@@ -1,29 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# loc...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-next-translate/.gitignore
@@ -1 +1,3 @@ -pages/ \ No newline at end of file +pages/ +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-react-intl/.gitignore
@@ -1 +1,3 @@ lang/.messages/ +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-react-relay-network-modern/.gitignore
@@ -1,2 +1,4 @@ __generated__/ -schema/schema.graphql \ No newline at end of file +schema/schema.graphql +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-reason-relay/.gitignore
@@ -3,3 +3,5 @@ schema/schema.graphql lib/ .merlin *.bs.js +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-reasonml/.gitignore
@@ -3,3 +3,5 @@ bs lib/ *.bs.js .bsb.lock +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-relay-modern/.gitignore
@@ -1,2 +1,4 @@ __generated__/ -schema/schema.graphql \ No newline at end of file +schema/schema.graphql +node_modules +.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-stitches/.gitignore
@@ -1,30 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# loc...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-stripe-typescript/.gitignore
@@ -1,13 +0,0 @@ -.DS_Store -.vscode - -# Node files -node_modules/ - -# Typescript -dist - -# Next.js -.next -.vercel -.env*.local \ No newline at end of file
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-typescript/.gitignore
@@ -1,2 +0,0 @@ -node_modules -.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-unstated/.gitignore
@@ -1,2 +0,0 @@ -.vscode/ -node_modules/ \ No newline at end of file
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-userbase/.gitignore
@@ -1,34 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# loc...
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-webassembly/.gitignore
@@ -1 +0,0 @@ -.next
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
examples/with-zones/.gitignore
@@ -1,4 +0,0 @@ -.next -node_modules - -.now \ No newline at end of file
true
Other
vercel
next.js
4a12fb0a5f87fc1cb9a5b2d8cd7f1a5c701474c1.json
Normalize example gitignores (#13768) This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
packages/create-next-app/templates/default/gitignore
@@ -17,6 +17,7 @@ # misc .DS_Store +*.pem # debug npm-debug.log*
true
Other
vercel
next.js
8287ed233d715cea9d52ea5fa44df297e448a875.json
Replace dotenv example (#13770) This removes the `with-dotenv` example in favor of a README that directs users to the docs.
examples/with-dotenv/.env
@@ -1 +0,0 @@ -TEST_VAR=it works!
true