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
ab0b2cf3da0c23c9041753fb86c64f6da8d4be9d.json
Add a test for module.exports from a page (#7842) Closes https://github.com/zeit/next.js/issues/7835
test/integration/auto-export/pages/commonjs1.js
@@ -0,0 +1,9 @@ +const React = require('react') + +module.exports = function () { + return ( + <div> + <h1>test1</h1> + </div> + ) +}
true
Other
vercel
next.js
ab0b2cf3da0c23c9041753fb86c64f6da8d4be9d.json
Add a test for module.exports from a page (#7842) Closes https://github.com/zeit/next.js/issues/7835
test/integration/auto-export/pages/commonjs2.js
@@ -0,0 +1,3 @@ +const React = require('react') + +module.exports = () => <div>test2</div>
true
Other
vercel
next.js
ab0b2cf3da0c23c9041753fb86c64f6da8d4be9d.json
Add a test for module.exports from a page (#7842) Closes https://github.com/zeit/next.js/issues/7835
test/integration/auto-export/test/index.test.js
@@ -0,0 +1,45 @@ +/* eslint-env jest */ +/* global jasmine */ +import webdriver from 'next-webdriver' +import path from 'path' +import { nextBuild, nextStart, findPort, killApp } from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 +const appDir = path.join(__dirname, '..') +let appPort +let app +...
true
Other
vercel
next.js
a1374471515498048d0c49a302810365934c24df.json
Improve NextApiResponse typing (#7841) * Fix NextApiResponse.status type signature * Improve NextApiResponse typing
packages/next-server/lib/utils.ts
@@ -160,21 +160,21 @@ export type NextApiRequest = IncomingMessage & { /** * Send body of response */ -type Send = (body: any) => void +type Send<T> = (body: T) => void /** * Next `API` route response */ -export type NextApiResponse = ServerResponse & { +export type NextApiResponse<T = any> = ServerResponse...
false
Other
vercel
next.js
aac4e21d46f300d8433b0bd94a7a0f51e443b7d4.json
Reduce confusion about passing an object to `push` (#7818)
packages/next/README.md
@@ -781,7 +781,7 @@ function ReadMore() { export default ReadMore ``` -This uses the same exact parameters as in the `<Link>` component. +This uses the same exact parameters as [in the `<Link>` component](#with-url-object). The first parameter maps to `href` while the second parameter maps to `as` in the `<Link>` c...
false
Other
vercel
next.js
432eec2aecac0d3ee6336349d726f1130080de0f.json
Fix small typo in TypeScript documentation (#7820)
packages/next/README.md
@@ -2111,7 +2111,7 @@ After adding the `tsconfig.json` you need to install `@types` to get proper Type npm install --save-dev @types/react @types/react-dom @types/node ``` -Now can change any file from `.js` to `.ts` / `.tsx` (tsx is for files using JSX). To learn more about TypeScript checkout out its [documentati...
false
Other
vercel
next.js
3f56bc5092e2d1fbd430754b68d8886572799710.json
Update docs about Automatic Prerendering (#7816) * Update docs about Automatic Prerendering Closes https://github.com/zeit/next.js/issues/7791 * Tweak layout * Fix review from @ijjk * Revise wording * Simplify note since we note this below * Update packages/next/README.md Co-Authored-By: JJ Kasper <...
packages/next/README.md
@@ -1412,11 +1412,22 @@ export default MyApp </ul> </details> -- Is rendered on the server side -- Is used to change the initial server side rendered document markup -- Commonly used to implement server side rendering for css-in-js libraries like [styled-components](/examples/with-styled-components) or [emotion](...
false
Other
vercel
next.js
e56573008baf521bce0834f5605cf7f2ba595026.json
Fix package count being zero in some cases (#7812) contains ignored package name
packages/next/build/webpack/plugins/chunk-graph-plugin.ts
@@ -43,7 +43,7 @@ export function getPageChunks( if (mod.includes('node_modules/')) { if ( mod.match( - /(@babel|core-js|styled-jsx|string-hash|object-assign|process|react|react-dom|regenerator-runtime|webpack|node-libs-browser)/ + /node_modules\/(@babel|core-js|styled-jsx|string-...
true
Other
vercel
next.js
e56573008baf521bce0834f5605cf7f2ba595026.json
Fix package count being zero in some cases (#7812) contains ignored package name
test/integration/build-stats-output/react-site/pages/something.js
@@ -0,0 +1,3 @@ +import fetch from 'isomorphic-unfetch' +console.log(fetch) +export default () => <p>Hello world</p>
true
Other
vercel
next.js
e56573008baf521bce0834f5605cf7f2ba595026.json
Fix package count being zero in some cases (#7812) contains ignored package name
test/integration/build-stats-output/test/index.test.js
@@ -0,0 +1,14 @@ +/* eslint-env jest */ +/* global jasmine */ +import { join } from 'path' +import { nextBuild } from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1 +const appDir = join(__dirname, '../react-site') + +describe('Build Stats Output', () => { + it('Shows correct package count in out...
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/api-routes-graphql/package.json
@@ -10,7 +10,7 @@ "apollo-server-micro": "2.6.7", "graphql": "14.4.2", "isomorphic-unfetch": "3.0.0", - "next": "9.0.0", + "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/custom-server-reasonml/package.json
@@ -19,7 +19,7 @@ "bs-platform": "^4.0.18" }, "dependencies": { - "next": "^8.0.4", + "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6" }
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/custom-server-typescript/package.json
@@ -7,7 +7,7 @@ "start": "cross-env NODE_ENV=production node dist/index.js" }, "dependencies": { - "next": "^8.1.0", + "next": "latest", "react": "^16.8.4", "react-dom": "^16.8.4" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-astroturf/package.json
@@ -9,7 +9,7 @@ "dependencies": { "@zeit/next-css": "^1.0.1", "astroturf": "^0.9.2", - "next": "^8.0.3", + "next": "latest", "postcss-nested": "^4.1.2", "react": "^16.8.6", "react-dom": "^16.8.6"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-cloud9/package.json
@@ -8,7 +8,7 @@ }, "license": "ISC", "dependencies": { - "next": "^7.0.2", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" }
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-context-api/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "^7.0.2", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-cookie-auth/www/package.json
@@ -8,7 +8,7 @@ "dependencies": { "isomorphic-unfetch": "^3.0.0", "js-cookie": "^2.2.0", - "next": "^8.1.0", + "next": "latest", "next-cookies": "^1.0.4", "react": "^16.7.0", "react-dom": "^16.7.0"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-draft-js/package.json
@@ -10,7 +10,7 @@ }, "dependencies": { "draft-js": "0.10.5", - "next": "5.0.0", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" }
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-firebase-hosting-and-docker/package.json
@@ -31,7 +31,7 @@ "firebase-admin": "6.0.0", "firebase-functions": "^2.0.5", "helmet": "^3.13.0", - "next": "7.0.0", + "next": "latest", "prop-types": "^15.6.2", "react": "^16.7.0", "react-dom": "^16.7.0"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-firebase-hosting-and-typescript/package.json
@@ -24,7 +24,7 @@ "@zeit/next-typescript": "^1.1.0", "firebase-admin": "^6.3.0", "firebase-functions": "^2.1.0", - "next": "^7.0.0", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-firebase-hosting/package.json
@@ -21,7 +21,7 @@ "dependencies": { "firebase-admin": "^6.3.0", "firebase-functions": "^2.1.0", - "next": "^7.0.0", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-graphql-hooks/package.json
@@ -16,7 +16,7 @@ "graphql-hooks-memcache": "^1.0.4", "graphql-hooks-ssr": "^1.0.1", "isomorphic-unfetch": "^3.0.0", - "next": "^8.0.1", + "next": "latest", "prop-types": "^15.7.2", "react": "^16.8.2", "react-dom": "^16.8.2"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-graphql-react/package.json
@@ -5,7 +5,7 @@ "dependencies": { "cross-fetch": "^3.0.2", "graphql-react": "^8.2.0", - "next": "^8.1.0", + "next": "latest", "next-graphql-react": "^3.0.2", "react": "^16.8.6", "react-dom": "^16.8.6"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-http2/package.json
@@ -7,7 +7,7 @@ "start": "NODE_ENV=production node server.js" }, "dependencies": { - "next": "8.0.4", + "next": "latest", "react": "16.8.6", "react-dom": "16.8.6" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-immutable-redux-wrapper/package.json
@@ -8,7 +8,7 @@ }, "dependencies": { "immutable": "4.0.0-rc.9", - "next": "^6.0.0", + "next": "latest", "next-redux-wrapper": "2.0.0-beta.6", "react": "^16.7.0", "react-dom": "^16.7.0",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-linaria/package.json
@@ -9,7 +9,7 @@ "dependencies": { "@zeit/next-css": "1.0.1", "linaria": "1.2.4", - "next": "8.0.3", + "next": "latest", "react": "16.8.3", "react-dom": "16.8.3" },
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-office-ui-fabric-react/package.json
@@ -2,7 +2,7 @@ "name": "with-office-ui-fabric-react", "version": "1.0.0", "dependencies": { - "next": "^8.03", + "next": "latest", "office-ui-fabric-react": "^6.154.0", "react": "^16.8.4", "react-dom": "^16.8.4"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-overmind/package.json
@@ -12,7 +12,7 @@ "author": "", "license": "ISC", "dependencies": { - "next": "^8.0.3", + "next": "latest", "overmind": "^17.0.0-1551262265873", "overmind-react": "^18.0.0-1551262265873", "react": "^16.8.3",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-react-css-modules/package.json
@@ -13,7 +13,7 @@ "dependencies": { "@zeit/next-css": "^1.0.1", "babel-plugin-react-css-modules": "^5.2.4", - "next": "^8.1.0", + "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6" }
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-react-esi/package.json
@@ -4,7 +4,7 @@ "main": "dist/server.js", "dependencies": { "express": "^4.16.4", - "next": "^7.0.2", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "react-esi": "^0.1"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-react-jss/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "canary", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "react-jss": "10.0.0-alpha.9"
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-react-multi-carousel/package.json
@@ -16,7 +16,7 @@ "@zeit/next-css": "^1.0.1", "jss": "^9.8.7", "mobile-detect": "^1.4.3", - "next": "^8.0.3", + "next": "latest", "react": "^16.8.3", "react-dom": "^16.8.3", "react-jss": "^8.6.1",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-refnux/package.json
@@ -2,7 +2,7 @@ "name": "with-refnux", "version": "1.0.0", "scripts": { - "next": "next" + "next": "latest" }, "license": "ISC", "dependencies": {
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-rematch/package.json
@@ -9,7 +9,7 @@ "dependencies": { "@rematch/core": "^1.1.0", "isomorphic-unfetch": "^3.0.0", - "next": "^8.0.3", + "next": "latest", "react": "^16.8.4", "react-dom": "^16.8.4", "react-redux": "^6.0.1",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-semantic-ui/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "canary", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "semantic-ui-css": "^2.4.1",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-slate/package.json
@@ -8,7 +8,7 @@ }, "dependencies": { "immutable": "^3.8.2", - "next": "6.1.1", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "slate": "^0.37.0",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-ts-node/package.json
@@ -7,7 +7,7 @@ "dependencies": { "@types/next": "^2.4.11", "@types/react": "^16.0.36", - "next": "^7.0.0", + "next": "latest", "next-with-typescript": "1.0.0", "react": "^16.7.0", "react-dom": "^16.7.0",
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-typescript-styled-components/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "9.0.0", + "next": "latest", "react": "16.8.6", "react-dom": "16.8.6", "styled-components": "^4.1.3" @@ -21,4 +21,4 @@ "typescript": "3.5.2" }, "license": "ISC" -} \ No newline at end of file +}
true
Other
vercel
next.js
f152c745daa03ea1ab11d321c578faa8339cd4bb.json
Update remaining examples to latest Next.js
examples/with-webassembly/package.json
@@ -1,6 +1,6 @@ { "dependencies": { - "next": "canary", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
78bba5658054acfbeb3ecbcdd5f0d98ed9e3efee.json
Add API tests to serverless (#7774) * Add failing API tests to serverless * Add newline * Fix failing serverless tests
packages/next-server/server/next-server.ts
@@ -58,7 +58,7 @@ export default class Server { nextConfig: NextConfig distDir: string publicDir: string - buildManifest: string + pagesManifest: string buildId: string renderOpts: { poweredByHeader: boolean @@ -88,7 +88,11 @@ export default class Server { this.distDir = join(this.dir, this.n...
true
Other
vercel
next.js
78bba5658054acfbeb3ecbcdd5f0d98ed9e3efee.json
Add API tests to serverless (#7774) * Add failing API tests to serverless * Add newline * Fix failing serverless tests
test/integration/serverless/pages/api/hello.js
@@ -0,0 +1,3 @@ +export default (req, res) => { + res.send('hello world') +}
true
Other
vercel
next.js
78bba5658054acfbeb3ecbcdd5f0d98ed9e3efee.json
Add API tests to serverless (#7774) * Add failing API tests to serverless * Add newline * Fix failing serverless tests
test/integration/serverless/pages/api/posts/[id].js
@@ -0,0 +1,3 @@ +export default (req, res) => { + res.json({ post: req.query.id }) +}
true
Other
vercel
next.js
78bba5658054acfbeb3ecbcdd5f0d98ed9e3efee.json
Add API tests to serverless (#7774) * Add failing API tests to serverless * Add newline * Fix failing serverless tests
test/integration/serverless/test/index.test.js
@@ -133,6 +133,17 @@ describe('Serverless', () => { expect(text).toMatch(/some interesting title/) }) + it('should reply on API request successfully', async () => { + const content = await renderViaHTTP(appPort, '/api/hello') + expect(content).toMatch(/hello world/) + }) + + it('should reply on dynam...
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/api-routes-micro/package.json
@@ -9,7 +9,7 @@ "dependencies": { "isomorphic-unfetch": "3.0.0", "micro": "9.3.5-canary.1", - "next": "8.1.1-canary.69", + "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6" },
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/api-routes/package.json
@@ -8,7 +8,7 @@ }, "dependencies": { "isomorphic-unfetch": "3.0.0", - "next": "8.1.1-canary.69", + "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6" },
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/blog-starter/package.json
@@ -17,7 +17,7 @@ "lodash.range": "^3.2.0", "mdx-prism": "^0.3.1", "micro": "^9.3.3", - "next": "^8.1.1-canary.37", + "next": "latest", "pagination": "^0.4.6", "prop-types": "^15.7.2", "react": "^16.8.6",
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/custom-server-actionhero/package.json
@@ -6,7 +6,7 @@ "actionhero": "^18.1.2", "ioredis": "^3.2.2", "isomorphic-fetch": "^2.2.1", - "next": "^5.0.1-canary.9", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "ws": "^4.1.0"
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/dynamic-routing/package.json
@@ -8,7 +8,7 @@ }, "license": "ISC", "dependencies": { - "next": "8.1.1-canary.61", + "next": "latest", "react": "16.8.6", "react-dom": "16.8.6" }
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/public-file-serving/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "8.1.1-canary.24", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" }
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/with-app-layout/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "next": "6.0.0-canary.6", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/with-sitemap-and-robots-express-server-typescript/package.json
@@ -16,7 +16,7 @@ }, "dependencies": { "express": "^4.16.3", - "next": "8.1.1-canary.24", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "sitemap": "^1.13.0"
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/with-sitemap-and-robots-express-server/package.json
@@ -9,7 +9,7 @@ }, "dependencies": { "express": "^4.16.2", - "next": "8.1.1-canary.24", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0", "sitemap": "^1.13.0"
true
Other
vercel
next.js
5205695578389ae2aea0a4b1d5dbe138df2f4950.json
Switch all examples to `next@latest` (#7806)
examples/with-typescript/package.json
@@ -8,7 +8,7 @@ "type-check": "tsc" }, "dependencies": { - "next": "8.1.1-canary.61", + "next": "latest", "react": "^16.7.0", "react-dom": "^16.7.0" },
true
Other
vercel
next.js
a7171db2ca474a22c0b5720b70e6adce39a1e32b.json
Remove previous cache logic (#7794) * Remove previous cache logic * Remove old test
packages/next-server/lib/utils.ts
@@ -237,18 +237,6 @@ export async function loadGetInitialProps< return props } - // if page component doesn't have getInitialProps - // set cache-control header to stale-while-revalidate - if (ctx.Component && !ctx.Component.getInitialProps) { - const customAppGetInitialProps = - (Component as any)...
true
Other
vercel
next.js
a7171db2ca474a22c0b5720b70e6adce39a1e32b.json
Remove previous cache logic (#7794) * Remove previous cache logic * Remove old test
test/integration/cache-header/pages/_app.js
@@ -1,7 +0,0 @@ -import App from 'next/app' - -export default class MyApp extends App { - static async getInitialProps () { - return {} - } -}
true
Other
vercel
next.js
a7171db2ca474a22c0b5720b70e6adce39a1e32b.json
Remove previous cache logic (#7794) * Remove previous cache logic * Remove old test
test/integration/cache-header/pages/index.js
@@ -1 +0,0 @@ -export default () => <p>Hi 👋</p>
true
Other
vercel
next.js
a7171db2ca474a22c0b5720b70e6adce39a1e32b.json
Remove previous cache logic (#7794) * Remove previous cache logic * Remove old test
test/integration/cache-header/test/index.test.js
@@ -1,32 +0,0 @@ -/* eslint-env jest */ -/* global jasmine */ -import { join } from 'path' -import { - findPort, - killApp, - nextBuild, - nextStart, - fetchViaHTTP -} from 'next-test-utils' - -jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 - -const appDir = join(__dirname, '..') -let appPort -let server - -describe...
true
Other
vercel
next.js
b900ad9b85ef44c6f83f86638d5ac6a9282694d9.json
Note TypeScript migration (#7787)
UPGRADING.md
@@ -2,6 +2,12 @@ ## Breaking Changes +#### `@zeit/next-typescript` is no longer necessary + +Next.js will now ignore usage `@zeit/next-typescript` and warn you to remove it. Please remove this plugin from your `next.config.js`. + +Usage of [`fork-ts-checker-webpack-plugin`](https://github.com/Realytics/fork-ts-che...
false
Other
vercel
next.js
f204935251aba0914c59d94c09588cf85a8352a0.json
Fix serverless loader for API routes (#7767) * Fix serverless loader for API routes * Only use params with dynamic routes
packages/next-server/server/api-utils.ts
@@ -4,10 +4,56 @@ import { Stream } from 'stream' import getRawBody from 'raw-body' import { parse } from 'content-type' import { Params } from './router' +import { PageConfig } from '../types' +import { interopDefault } from './load-components' export type NextApiRequestCookies = { [key: string]: string } expor...
true
Other
vercel
next.js
f204935251aba0914c59d94c09588cf85a8352a0.json
Fix serverless loader for API routes (#7767) * Fix serverless loader for API routes * Only use params with dynamic routes
packages/next-server/server/next-server.ts
@@ -23,31 +23,16 @@ import { } from '../lib/router/utils' import * as envConfig from '../lib/runtime-config' import { NextApiRequest, NextApiResponse } from '../lib/utils' -import { - getQueryParser, - sendJson, - sendData, - parseBody, - sendError, - ApiError, - sendStatusCode, - setLazyProp, - getCookiePa...
true
Other
vercel
next.js
f204935251aba0914c59d94c09588cf85a8352a0.json
Fix serverless loader for API routes (#7767) * Fix serverless loader for API routes * Only use params with dynamic routes
packages/next/build/entries.ts
@@ -73,7 +73,14 @@ export function createEntrypoints( const bundlePath = join('static', buildId, 'pages', bundleFile) if (isApiRoute && target === 'serverless') { - server[join('pages', bundleFile)] = [absolutePagePath] + const serverlessLoaderOptions: ServerlessLoaderQuery = { + page, + ...
true
Other
vercel
next.js
f204935251aba0914c59d94c09588cf85a8352a0.json
Fix serverless loader for API routes (#7767) * Fix serverless loader for API routes * Only use params with dynamic routes
packages/next/build/webpack/loaders/next-serverless-loader.ts
@@ -38,7 +38,31 @@ const nextServerlessLoader: loader.Loader = function() { /\\/g, '/' ) - return ` + + if (page.startsWith('/api')) { + return ` + ${ + isDynamicRoute(page) + ? ` + import { getRouteMatcher } from 'next-server/dist/lib/router/utils/route-matcher'; + import { g...
true
Other
vercel
next.js
f204935251aba0914c59d94c09588cf85a8352a0.json
Fix serverless loader for API routes (#7767) * Fix serverless loader for API routes * Only use params with dynamic routes
test/integration/api-support/test/index.test.js
@@ -12,6 +12,7 @@ import { File } from 'next-test-utils' import json from '../big.json' +import { createServer } from 'http' const appDir = join(__dirname, '../') let appPort @@ -207,6 +208,19 @@ function runTests (serverless = false) { ) ) expect(Object.keys(pagesManifest).includes('/ap...
true
Other
vercel
next.js
270d548d33f813c6121f739ce906385c398d1b1b.json
Remove old docs (#7760) * Remove old docs * Run doctoc
packages/next/README.md
@@ -53,7 +53,6 @@ - [With named exports](#with-named-exports) - [With Custom Loading Component](#with-custom-loading-component) - [With No SSR](#with-no-ssr) - - [With Multiple Modules At Once](#with-multiple-modules-at-once) - [Custom `<App>`](#custom-app) - [Custom `<Document>`](#custom-docume...
false
Other
vercel
next.js
6fa17b3f1549c4408480849720c9364c47b46a2e.json
Improve automatic prerendering warning (#7759)
errors/opt-out-automatic-prerendering.md
@@ -0,0 +1,35 @@ +# Opt-out of Automatic Prerendering + +#### Why This Warning Occurred + +You are using `getInitialProps` in your [Custom `<App>`](https://github.com/zeit/next.js#custom-app). + +This causes **all pages** to be executed on the server -- disabling [Automatic Prerendering](https://github.com/zeit/next.js...
true
Other
vercel
next.js
6fa17b3f1549c4408480849720c9364c47b46a2e.json
Improve automatic prerendering warning (#7759)
packages/next/build/index.ts
@@ -329,7 +329,13 @@ export default async function build(dir: string, conf = null): Promise<void> { if (customAppGetInitialProps) { console.warn( - 'Opting out of automatic exporting due to custom `getInitialProps` in `pages/_app`\n' + chalk.bold.yellow(`Warning: `) + + ...
true
Other
vercel
next.js
7ac8dcbec04d175831b76ee4337bf10bbeb19c28.json
Add deprecation message for next/dynamic modules (#7750)
errors/next-dynamic-modules.md
@@ -0,0 +1,64 @@ +# `next/dynamic` has deprecated loading multiple modules at once + +#### Why This Error Occurred + +The ability to load multiple modules at once has been deprecated in `next/dynamic` to be closer to React's implementation (`React.lazy` and `Suspense`). + +Updating code that relies on this behavior is ...
true
Other
vercel
next.js
7ac8dcbec04d175831b76ee4337bf10bbeb19c28.json
Add deprecation message for next/dynamic modules (#7750)
packages/next-server/lib/dynamic.tsx
@@ -37,6 +37,9 @@ export type LoadableOptions<P = {}> = LoadableBaseOptions<P> & { } export type DynamicOptions<P = {}> = LoadableBaseOptions<P> & { + /** + * @deprecated the modules option has been planned for removal + */ render?(props: P, loaded: any): JSX.Element } @@ -117,6 +120,12 @@ export default...
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
packages/next/types/index.d.ts
@@ -13,6 +13,8 @@ import { import { PageConfig } from 'next-server/types' +import next from 'next/dist/server/next' + // Extend the React types with missing properties declare module 'react' { // <html amp=""> support @@ -52,3 +54,5 @@ export { NextApiRequest, PageConfig, } + +export default next
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/.gitignore
@@ -0,0 +1,2 @@ +server.js +pages/index.jsx \ No newline at end of file
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/next-env.d.ts
@@ -0,0 +1,2 @@ +/// <reference types="next" /> +/// <reference types="next/types/global" />
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/pages/index.tsx
@@ -0,0 +1 @@ +export default () => <p>hello world</p>
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/server.ts
@@ -0,0 +1,17 @@ +import next from 'next' +import http from 'http' + +const dir = __dirname +const port = process.env.PORT || 3000 +const dev = process.env.NODE_ENV !== 'production' + +const app = next({ dev, dir }) +const handleNextRequests = app.getRequestHandler() + +app.prepare().then(() => { + const server = new ...
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/test/index.test.js
@@ -0,0 +1,14 @@ +/* eslint-env jest */ +/* global jasmine */ +import { join } from 'path' +import { buildTS } from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 + +const appDir = join(__dirname, '../') + +describe('Custom Server TypeScript', () => { + it('should build server.ts correctly', asy...
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/integration/custom-server-types/tsconfig.json
@@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + "module": "esnext", + "jsx": "preserve", + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "strict": false, + "forceConsistentCasingIn...
true
Other
vercel
next.js
12f1a63442ee7fe411fc4e82f03305aa2f6a7b6f.json
Expose next function type (#7726) * Expose next function type * Add type testing for typescript custom server * Move types test to integration folder
test/lib/next-test-utils.js
@@ -176,6 +176,32 @@ export function nextStart (dir, port, opts = {}) { return runNextCommandDev(['start', '-p', port, dir], undefined, opts) } +export function buildTS (args = [], cwd, env = {}) { + cwd = cwd || path.dirname(require.resolve('next/package')) + env = { ...process.env, NODE_ENV: undefined, ...env...
true
Other
vercel
next.js
66e1fa154ca2ad90869de8967c3ff7fd6c077a28.json
Add section on reading files (#11084)
docs/basic-features/data-fetching.md
@@ -94,6 +94,65 @@ export const getStaticProps: GetStaticProps = async context => { } ``` +### Reading files: Use `process.cwd()` + +Files can be read directly from the filesystem in `getStaticProps`. + +In order to do so you have to get the full path to a file. + +Since Next.js compiles your code into a separate d...
false
Other
vercel
next.js
4b1ce16e127310a79b0ac25c5a758d5a0bc70825.json
upgrade @ampproject/toolbox-optimizer to 2.0.1 (#11168) Fixes #11159
packages/next/package.json
@@ -57,7 +57,7 @@ ] }, "dependencies": { - "@ampproject/toolbox-optimizer": "2.0.0", + "@ampproject/toolbox-optimizer": "2.0.1", "@babel/core": "7.7.2", "@babel/plugin-proposal-class-properties": "7.7.0", "@babel/plugin-proposal-nullish-coalescing-operator": "7.7.4",
true
Other
vercel
next.js
4b1ce16e127310a79b0ac25c5a758d5a0bc70825.json
upgrade @ampproject/toolbox-optimizer to 2.0.1 (#11168) Fixes #11159
yarn.lock
@@ -9,10 +9,10 @@ dependencies: cross-fetch "3.0.4" -"@ampproject/toolbox-optimizer@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@ampproject/toolbox-optimizer/-/toolbox-optimizer-2.0.0.tgz#96ea3d26bc7a9f19718a27c721e021a121003601" - integrity sha512-ZYRi7vB4ALC8DnTHQLchAeHMGsFml/Zr4fN...
true
Other
vercel
next.js
527453560e1dde8c670266c3b42bcf3a58dee155.json
Update <dir> reference in help text Fixes #11151
packages/next/cli/next-build.ts
@@ -27,9 +27,8 @@ const nextBuild: cliCommand = argv => { Usage $ next build <dir> - <dir> represents where the compiled dist folder should go. - If no directory is provided, the dist folder will be created in the current directory. - You can set a custom folder in config https://nextjs...
true
Other
vercel
next.js
527453560e1dde8c670266c3b42bcf3a58dee155.json
Update <dir> reference in help text Fixes #11151
packages/next/cli/next-dev.ts
@@ -33,9 +33,8 @@ const nextDev: cliCommand = argv => { Usage $ next dev <dir> -p <port number> - <dir> represents where the compiled folder should go. - If no directory is provided, the folder will be created in the current directory. - You can set a custom folder in config https://nex...
true
Other
vercel
next.js
527453560e1dde8c670266c3b42bcf3a58dee155.json
Update <dir> reference in help text Fixes #11151
packages/next/cli/next-export.ts
@@ -32,8 +32,8 @@ const nextExport: cliCommand = argv => { Usage $ next export [options] <dir> - <dir> represents where the compiled dist folder should go. - If no directory is provided, the 'out' folder will be created in the current directory. + <dir> represents the directory of the N...
true
Other
vercel
next.js
527453560e1dde8c670266c3b42bcf3a58dee155.json
Update <dir> reference in help text Fixes #11151
packages/next/cli/next-start.ts
@@ -31,10 +31,8 @@ const nextStart: cliCommand = argv => { Usage $ next start <dir> -p <port> - <dir> is the directory that contains the compiled dist folder - created by running \`next build\`. - If no directory is provided, the current directory will be assumed. - You can set a c...
true
Other
vercel
next.js
836f68aa67adbf1d6e73c66168344181722d20d3.json
Add CSS file to build output (#11145) * Remove filtering CSS from build output * Add displaying page specific CSS files and including them in page size
packages/next/build/utils.ts
@@ -78,6 +78,15 @@ export async function printTreeView( return chalk.red.bold(size) } + const getCleanName = (fileName: string) => + fileName + // Trim off `static/` + .replace(/^static\//, '') + // Re-add `static/` for root files + .replace(/^<buildId>/, 'static') + // Remove fil...
true
Other
vercel
next.js
836f68aa67adbf1d6e73c66168344181722d20d3.json
Add CSS file to build output (#11145) * Remove filtering CSS from build output * Add displaying page specific CSS files and including them in page size
test/integration/css-modules/test/index.test.js
@@ -40,6 +40,7 @@ describe('Basic CSS Module Support', () => { it('should have compiled successfully', () => { expect(code).toBe(0) expect(stdout).toMatch(/Compiled successfully/) + expect(stdout).toContain('.css') }) it(`should've emitted a single CSS file`, async () => {
true
Other
vercel
next.js
836f68aa67adbf1d6e73c66168344181722d20d3.json
Add CSS file to build output (#11145) * Remove filtering CSS from build output * Add displaying page specific CSS files and including them in page size
test/integration/css/test/index.test.js
@@ -819,6 +819,7 @@ describe('CSS Support', () => { }) expect(code).toBe(0) expect(stdout).toMatch(/Compiled successfully/) + expect(stdout).toContain('.css') }) it(`should've compiled and prefixed`, async () => {
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
errors/gssp-export.md
@@ -0,0 +1,14 @@ +# getServerSideProps Export Error + +#### Why This Error Occurred + +You attempted to export a page with `getServerSideProps` which is not allowed. `getServerSideProps` is meant for requesting up to date information on every request which means exporting it defeats the purpose of the method. + +#### P...
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
packages/next/export/worker.js
@@ -10,6 +10,7 @@ import { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic' import { getRouteMatcher } from '../next-server/lib/router/utils/route-matcher' import { getRouteRegex } from '../next-server/lib/router/utils/route-regex' import { normalizePagePath } from '../next-server/server/normalize-...
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
packages/next/lib/constants.ts
@@ -30,4 +30,6 @@ export const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialP export const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps with getServerSideProps. To use SSG, please remove getServerSideProps` -export const PAGES_404_GET_INITIAL_PROPS_ERROR = `\`pages/404\` can not...
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
test/integration/getserversideprops-export-error/pages/index.js
@@ -0,0 +1,9 @@ +export async function getServerSideProps() { + return { + props: { + idk: 'oops', + }, + } +} + +export default () => 'hi'
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
test/integration/getserversideprops-export-error/test/index.test.js
@@ -0,0 +1,54 @@ +/* eslint-env jest */ +/* global jasmine */ +import fs from 'fs-extra' +import { nextBuild, nextExport } from 'next-test-utils' +import { join } from 'path' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 +const appDir = join(__dirname, '..') +const nextConfig = join(appDir, 'next.config.js') + +c...
true
Other
vercel
next.js
203f43c1fe740c78bd0d9aee90563ca739a8ef38.json
Add error when attempting to export GSSP page (#11154) * Add error when attempting to export GSSP page * Update errors/gssp-export.md * Update errors/gssp-export.md * Update errors/gssp-export.md Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
yarn.lock
@@ -1100,7 +1100,7 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" -"@babel/types@^7.8.3": +"@babel/types@7.8.3", "@babel/types@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.8.3.tgz#5a383dffa5416db1b73dedffd311ffd0788fb31c" integrity sha512-jBD+G8+LWpMBBWvV...
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
packages/next/build/webpack-config.ts
@@ -897,6 +897,7 @@ export default async function getBaseWebpackConfig( hasSupportCss: !!config.experimental.css, hasSupportScss: !!config.experimental.scss, assetPrefix: config.assetPrefix || '', + sassOptions: config.experimental.sassOptions, }) if (typeof config.webpack === 'function') {
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
packages/next/build/webpack/config/blocks/css/index.ts
@@ -43,6 +43,7 @@ export const css = curry(async function css( // Source maps are required so that `resolve-url-loader` can locate // files original to their source directory. sourceMap: true, + sassOptions: ctx.sassOptions, }, }, // Then, `sass-loader` will have passe...
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
packages/next/build/webpack/config/index.ts
@@ -13,6 +13,7 @@ export async function build( hasSupportCss, hasSupportScss, assetPrefix, + sassOptions, }: { rootDirectory: string customAppFile: string | null @@ -21,6 +22,7 @@ export async function build( hasSupportCss: boolean hasSupportScss: boolean assetPrefix: strin...
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
packages/next/build/webpack/config/utils.ts
@@ -11,6 +11,8 @@ export type ConfigurationContext = { isClient: boolean assetPrefix: string + + sassOptions: any } export type ConfigurationFn = (
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
packages/next/next-server/server/config.ts
@@ -52,6 +52,7 @@ const defaultConfig: { [key: string]: any } = { reactMode: 'legacy', workerThreads: false, basePath: '', + sassOptions: {}, }, future: { excludeDefaultMomentLocales: false,
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
test/integration/scss-fixtures/basic-module-include-paths/next.config.js
@@ -0,0 +1,9 @@ +const path = require('path') + +module.exports = { + experimental: { + sassOptions: { + includePaths: [path.join(__dirname, 'styles')], + }, + }, +}
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
test/integration/scss-fixtures/basic-module-include-paths/pages/index.js
@@ -0,0 +1,9 @@ +import { redText } from './index.module.scss' + +export default function Home() { + return ( + <div id="verify-red" className={redText}> + This text should be red. + </div> + ) +}
true
Other
vercel
next.js
ea7c1e1dcf5b4019365e1ab3ff989801c958f0e9.json
Add support for SCSS options (#11063) * Add support for SCSS includePaths * Support sassOptions instead of just includePaths Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
test/integration/scss-fixtures/basic-module-include-paths/pages/index.module.scss
@@ -0,0 +1,5 @@ +@import '_vars.scss'; + +.redText { + color: $var; +}
true