├── examples ├── with-reasonml │ ├── index.js │ └── .babelrc ├── with-firebase-hosting │ ├── public │ │ └── .gitignore │ ├── src │ │ └── next.config.js │ └── .firebaserc ├── with-mongodb-mongoose │ └── .env.local.example ├── with-mongodb │ ├── .env.local.example │ └── public │ │ └── favicon.ico ├── with-jest │ ├── .babelrc │ └── public │ │ └── favicon.ico ├── with-stomp │ └── .env ├── with-docker │ └── .dockerignore ├── with-flow │ ├── .eslintrc.json │ ├── .babelrc │ ├── .flowconfig │ └── with-flow.gif ├── with-react-jss │ └── .babelrc ├── with-realm-web │ └── .env ├── with-redux-wrapper │ └── .npmrc ├── with-tailwindcss-emotion │ ├── styles │ │ └── tailwind.base.css │ └── .babelrc ├── with-yarn-workspaces │ └── packages │ │ ├── foo │ │ ├── index.js │ │ └── package.json │ │ └── bar │ │ └── index.js ├── with-mobx-react-lite │ └── .babelrc ├── with-mux-video │ ├── .env.local.example │ └── public │ │ └── favicon.ico ├── with-reasonml-todo │ └── .babelrc ├── with-unsplash │ ├── .env.local.example │ ├── components │ │ ├── Social │ │ │ └── Social.module.css │ │ └── Stats │ │ │ └── Stats.module.css │ ├── next-env.d.ts │ ├── docs │ │ ├── api-keys.png │ │ ├── app-form.png │ │ └── app-terms.png │ └── public │ │ └── favicon.ico ├── cms-datocms │ ├── .env.local.example │ └── styles │ │ └── index.css ├── with-custom-reverse-proxy │ └── .babelrc ├── with-react-md │ └── components │ │ └── Layout │ │ └── index.js ├── with-typescript-graphql │ ├── .babelrc │ └── lib │ │ ├── type-defs.graphqls │ │ ├── partial.graphql │ │ └── user.graphqls ├── blog-starter-typescript │ ├── @types │ │ └── remark-html.d.ts │ ├── next-env.d.ts │ ├── postcss.config.js │ └── types │ │ └── author.ts ├── with-linaria │ └── .babelrc ├── with-react-intl │ ├── .vscode │ │ └── settings.json │ └── next-env.d.ts ├── with-stencil │ └── packages │ │ └── test-component │ │ └── src │ │ ├── components │ │ └── my-component │ │ │ └── my-component.css │ │ └── index.ts ├── with-typescript-eslint-jest │ ├── .babelrc │ ├── .eslintignore │ ├── test │ │ └── __mocks__ │ │ │ └── fileMock.js │ ├── .prettierrc │ ├── .prettierignore │ └── next-env.d.ts ├── with-typescript-types │ ├── types │ │ ├── index.ts │ │ └── package-1.ts │ └── next-env.d.ts ├── with-userbase │ └── .env.local.example ├── with-cookie-auth-fauna │ └── .env.local.example ├── with-cssed │ ├── lib │ │ └── theme.js │ └── .babelrc ├── with-mocha │ └── .mocharc.yml ├── with-next-css │ ├── component │ │ └── hello-world.module.css │ └── style.css ├── with-next-less │ └── style.less ├── with-storybook │ ├── .babelrc │ └── components │ │ └── index.js ├── custom-server-koa │ └── pages │ │ ├── a.js │ │ └── b.js ├── custom-server │ └── pages │ │ ├── a.js │ │ └── b.js ├── with-filbert │ ├── .babelrc │ └── public │ │ └── filbert.png ├── with-lingui │ └── .babelrc ├── with-magic │ ├── .env.local.example │ ├── next.config.js │ └── public │ │ └── favicon.ico ├── with-react-md-typescript │ ├── components │ │ └── Layout │ │ │ └── index.ts │ └── next-env.d.ts ├── with-zeit-fetch │ └── fetch │ │ ├── browser.js │ │ ├── package.json │ │ └── server.js ├── cms-cosmic │ ├── .env.local.example │ └── styles │ │ └── index.css ├── cms-graphcms │ └── jsconfig.json ├── custom-server-express │ └── pages │ │ ├── a.js │ │ └── b.js ├── custom-server-fastify │ └── pages │ │ ├── a.js │ │ └── b.js ├── custom-server-hapi │ └── pages │ │ ├── a.js │ │ └── b.js ├── custom-server-polka │ └── pages │ │ ├── a.js │ │ └── b.js ├── with-reason-relay │ ├── .babelrc │ └── .env ├── with-relay-modern │ ├── .babelrc │ └── .env ├── basic-export │ └── pages │ │ ├── about.js │ │ ├── about2.js │ │ └── day │ │ └── index.js ├── cms-strapi │ └── .env.local.example ├── custom-server-actionhero │ ├── pages │ │ ├── a.js │ │ └── b.js │ └── dump.rdb ├── custom-server-typescript │ ├── pages │ │ ├── a.tsx │ │ └── b.tsx │ └── next-env.d.ts ├── using-preact │ └── pages │ │ └── about.js ├── with-app-layout │ └── pages │ │ └── index.js ├── with-semantic-ui │ └── .nowignore ├── with-sentry-simple │ └── README.md ├── analyze-bundles │ └── pages │ │ ├── about.js │ │ └── contact.js ├── cms-kontent │ ├── .env.local.example │ └── kontent-backup.zip ├── cms-sanity │ └── .env.local.example ├── cms-takeshape │ └── .env.local.example ├── hello-world │ └── pages │ │ ├── about.js │ │ └── day │ │ └── index.js ├── svg-components │ └── .babelrc ├── with-absolute-imports │ └── jsconfig.json ├── with-react-ga │ └── pages │ │ └── about.js ├── with-strict-csp │ └── pages │ │ └── index.js ├── with-webassembly │ ├── src │ │ └── add.rs │ └── add.wasm ├── with-zones │ └── package.json ├── blog-starter │ └── postcss.config.js ├── with-babel-macros │ └── .babelrc ├── with-carbon-components │ └── styles │ │ └── custom-theme.scss ├── with-loading │ └── pages │ │ └── index.js ├── with-next-sass │ ├── components │ │ └── hello-world.module.scss │ └── styles.scss ├── with-next-sitemap │ └── next-env.d.ts ├── with-react-helmet │ └── pages │ │ └── index.js ├── with-shallow-routing │ └── pages │ │ └── about.js ├── with-stitches │ ├── next-env.d.ts │ └── public │ │ └── favicon.ico ├── with-typescript │ └── next-env.d.ts ├── cms-buttercms │ └── .env.local.example ├── cms-prismic │ └── .env.local.example ├── cms-storyblok │ └── .env.local.example ├── with-astroturf │ └── postcss.config.js ├── with-expo-typescript │ └── next-env.d.ts ├── with-expo │ ├── public │ │ └── demo.png │ └── pages │ │ └── _document.js ├── with-prefetching │ └── pages │ │ ├── index.js │ │ ├── about.js │ │ ├── contact.js │ │ └── features.js ├── with-react-with-styles │ └── defaultTheme.js ├── with-redis │ ├── docs │ │ ├── lstr1.png │ │ ├── lstr2.png │ │ ├── lstr3.png │ │ ├── lstr4.png │ │ ├── lstr5.png │ │ └── lstr6.png │ └── public │ │ ├── logo.png │ │ ├── lstr.png │ │ └── favicon.ico ├── with-stripe-typescript │ └── next-env.d.ts ├── with-aws-amplify-typescript │ └── next-env.d.ts ├── with-chakra-ui-typescript │ └── next-env.d.ts ├── with-grommet │ └── .babelrc ├── with-react-relay-network-modern │ └── .env ├── with-sw-precache │ └── README.md ├── with-ant-design-pro-layout-less │ └── next-env.d.ts ├── with-atlaskit │ └── .babelrc ├── with-hls-js │ └── public │ │ └── favicon.ico ├── with-mobx-state-tree-typescript │ └── next-env.d.ts ├── with-msw │ └── public │ │ └── book-cover.jpg ├── with-react-native-web │ └── app.json ├── amp │ └── pages │ │ └── normal.js ├── cms-wordpress │ └── docs │ │ ├── new-post.png │ │ └── wp-graphiql.png ├── with-electron-typescript │ └── renderer │ │ └── next-env.d.ts ├── with-firebase │ └── public │ │ └── favicon.ico ├── with-next-routes │ └── readme.md ├── with-sitemap │ ├── public │ │ └── favicon.ico │ └── .env ├── with-styled-components │ └── .babelrc ├── with-typescript-styled-components │ └── next-env.d.ts ├── amp-first │ └── public │ │ └── static │ │ └── favicon.ico ├── with-custom-babel-config │ └── .babelrc ├── with-reactstrap │ └── public │ │ └── favicon.ico ├── with-redux │ └── pages │ │ └── index.js ├── with-styled-components-rtl │ └── .babelrc ├── with-three-js │ └── public │ │ └── glb │ │ ├── parrot.glb │ │ └── stork.glb └── with-xstate │ └── components │ └── index.js ├── packages ├── next-env │ ├── .gitignore │ └── README.md ├── next │ ├── client │ │ ├── dev │ │ │ ├── noop.js │ │ │ └── error-overlay │ │ │ │ └── format-webpack-messages.d.ts │ │ ├── polyfills.js │ │ └── next.js │ ├── build │ │ ├── polyfills │ │ │ └── object.assign │ │ │ │ ├── auto.js │ │ │ │ ├── implementation.js │ │ │ │ ├── polyfill.js │ │ │ │ └── shim.js │ │ └── webpack │ │ │ └── config │ │ │ └── blocks │ │ │ └── css │ │ │ └── loaders │ │ │ └── index.ts │ ├── data.d.ts │ ├── amp.d.ts │ ├── app.js │ ├── babel.d.ts │ ├── data.js │ ├── link.js │ ├── client.js │ ├── error.js │ ├── router.js │ ├── amp.js │ ├── babel.js │ ├── constants.d.ts │ ├── document.js │ ├── head.js │ ├── dynamic.js │ ├── config.js │ ├── constants.js │ ├── compiled │ │ ├── chalk │ │ │ └── package.json │ │ ├── etag │ │ │ └── package.json │ │ ├── ignore-loader │ │ │ └── package.json │ │ ├── semver │ │ │ └── package.json │ │ ├── async-retry │ │ │ └── package.json │ │ ├── compression │ │ │ └── package.json │ │ ├── devalue │ │ │ └── package.json │ │ ├── jsonwebtoken │ │ │ └── package.json │ │ ├── arg │ │ │ └── package.json │ │ ├── async-sema │ │ │ └── package.json │ │ ├── comment-json │ │ │ └── package.json │ │ ├── node-fetch │ │ │ └── package.json │ │ ├── cache-loader │ │ │ └── package.json │ │ ├── debug │ │ │ └── package.json │ │ ├── file-loader │ │ │ └── package.json │ │ ├── nanoid │ │ │ └── package.json │ │ ├── recast │ │ │ └── package.json │ │ ├── send │ │ │ └── package.json │ │ ├── thread-loader │ │ │ └── package.json │ │ ├── cookie │ │ │ └── package.json │ │ ├── json5 │ │ │ └── package.json │ │ └── lru-cache │ │ │ └── package.json │ ├── app.d.ts │ ├── lib │ │ └── typescript │ │ │ ├── FatalTypeScriptError.ts │ │ │ └── TypeScriptCompileError.ts │ ├── link.d.ts │ ├── client.d.ts │ ├── error.d.ts │ ├── router.d.ts │ ├── document.d.ts │ ├── telemetry │ │ └── events │ │ │ └── index.ts │ ├── head.d.ts │ └── dynamic.d.ts ├── react-dev-overlay │ ├── .gitignore │ ├── src │ │ └── internal │ │ │ └── components │ │ │ ├── Overlay │ │ │ └── index.tsx │ │ │ ├── Terminal │ │ │ └── index.tsx │ │ │ ├── CodeFrame │ │ │ └── index.tsx │ │ │ └── Toast │ │ │ └── index.tsx │ └── README.md ├── react-refresh-utils │ └── .gitignore └── next-codemod │ ├── transforms │ └── __testfixtures__ │ │ ├── withamp-to-config │ │ ├── remove-import.output.js │ │ ├── remove-import-renamed.output.js │ │ ├── remove-import.input.js │ │ ├── remove-import-single.output.js │ │ ├── remove-import-renamed.input.js │ │ └── remove-import-single.input.js │ │ ├── name-default-component │ │ ├── 1-starts-with-number.output.js │ │ ├── existing-name-ignore.output.js │ │ ├── special-ch@racter.output.js │ │ ├── function-component-ignore.output.js │ │ └── function-expression-ignore.output.js │ │ └── url-to-withrouter │ │ ├── no-transform.input.js │ │ └── no-transform.output.js │ └── .gitignore ├── readme.md ├── test ├── .gitignore ├── isolated │ ├── _resolvedata │ │ ├── one.js │ │ ├── aa │ │ │ ├── cache.js │ │ │ └── index.js │ │ ├── cc │ │ │ ├── index.js │ │ │ └── index.json │ │ ├── one.json │ │ ├── two.json │ │ ├── .gitignore │ │ ├── bb │ │ │ └── index.json │ │ ├── cache │ │ │ └── test.txt │ │ ├── readdir │ │ │ └── pages │ │ │ │ ├── index.js │ │ │ │ ├── nav │ │ │ │ ├── about.js │ │ │ │ ├── index.js │ │ │ │ └── products │ │ │ │ │ └── product.js │ │ │ │ ├── prefered.js │ │ │ │ ├── nested │ │ │ │ └── index.js │ │ │ │ └── prefered │ │ │ │ └── index.js │ │ ├── typescript-config │ │ │ └── next.config.ts │ │ ├── js-ts-config │ │ │ ├── next.config.json │ │ │ ├── next.config.js │ │ │ ├── next.config.ts │ │ │ ├── next.config.jsx │ │ │ └── next.config.tsx │ │ ├── valid-target │ │ │ └── next.config.js │ │ ├── without-function │ │ │ └── next.config.js │ │ ├── invalid-target │ │ │ └── next.config.js │ │ └── server │ │ │ └── static │ │ │ └── development │ │ │ └── pages │ │ │ ├── _error.js │ │ │ ├── index.js │ │ │ └── world.js │ └── .gitignore ├── integration │ ├── production │ │ ├── public │ │ │ ├── file │ │ │ ├── data │ │ │ │ └── data.txt │ │ │ └── static │ │ │ │ └── legacy.txt │ │ ├── static │ │ │ └── data │ │ │ │ └── item.txt │ │ ├── info.json │ │ ├── components │ │ │ ├── hello1.js │ │ │ ├── hello2.js │ │ │ ├── dynamic-css │ │ │ │ ├── no-css.js │ │ │ │ ├── with-css.module.css │ │ │ │ ├── nested │ │ │ │ │ ├── with-css-2.module.css │ │ │ │ │ └── with-css.module.css │ │ │ │ ├── many-modules │ │ │ │ │ ├── with-css-2.module.css │ │ │ │ │ └── with-css.module.css │ │ │ │ ├── many-imports │ │ │ │ │ ├── with-css-1.module.css │ │ │ │ │ ├── with-css-2.module.css │ │ │ │ │ └── with-css-3.module.css │ │ │ │ └── shared-css-module │ │ │ │ │ ├── with-css-2.module.css │ │ │ │ │ ├── with-css-shared.module.css │ │ │ │ │ └── with-css.module.css │ │ │ └── logo │ │ │ │ └── logo.module.css │ │ └── pages │ │ │ ├── about.js │ │ │ ├── amp.js │ │ │ ├── amp-hybrid.js │ │ │ └── api │ │ │ ├── hello.js │ │ │ ├── index.js │ │ │ └── [post] │ │ │ └── index.js │ ├── basic │ │ ├── public │ │ │ ├── data │ │ │ │ └── data.txt │ │ │ └── static │ │ │ │ └── legacy.txt │ │ ├── components │ │ │ ├── hello1.js │ │ │ ├── hello2.js │ │ │ ├── hello3.js │ │ │ ├── hello4.js │ │ │ └── hello-chunkfilename.js │ │ └── pages │ │ │ ├── about.js │ │ │ └── process-env.js │ ├── config │ │ ├── .gitignore │ │ ├── node_modules │ │ │ ├── module-only-package │ │ │ │ └── modern.js │ │ │ └── css-framework │ │ │ │ └── framework.css │ │ ├── components │ │ │ ├── hello-webpack-css.css │ │ │ └── hello-webpack-sass.scss │ │ └── pages │ │ │ └── build-id.js │ ├── empty-project │ │ └── pages │ │ │ └── .gitkeep │ ├── export │ │ ├── .gitignore │ │ ├── static │ │ │ └── data │ │ │ │ └── item.txt │ │ ├── public │ │ │ └── about │ │ │ │ └── data.txt │ │ ├── components │ │ │ └── hello.js │ │ └── pages │ │ │ └── api │ │ │ └── data.js │ ├── jsconfig-empty │ │ ├── jsconfig.json │ │ └── pages │ │ │ └── index.js │ ├── jsconfig │ │ ├── jsconfig.json │ │ └── pages │ │ │ └── hello.js │ ├── prerender │ │ ├── world.txt │ │ └── pages │ │ │ ├── normal.js │ │ │ └── api │ │ │ └── bad.js │ ├── basepath │ │ ├── public │ │ │ └── data.txt │ │ ├── components │ │ │ ├── hello1.js │ │ │ ├── hello2.js │ │ │ ├── hello3.js │ │ │ ├── hello4.js │ │ │ └── hello-chunkfilename.js │ │ ├── pages │ │ │ ├── docs │ │ │ │ └── another.js │ │ │ ├── other-page.js │ │ │ └── amp-hybrid.js │ │ └── external │ │ │ └── page.html │ ├── getserversideprops │ │ ├── world.txt │ │ └── pages │ │ │ └── normal.js │ ├── custom-server │ │ ├── static │ │ │ └── hello.txt │ │ └── pages │ │ │ ├── no-query.js │ │ │ ├── asset.js │ │ │ └── dashboard │ │ │ └── index.js │ ├── file-serving │ │ ├── public │ │ │ └── hello world.txt │ │ ├── static │ │ │ └── hello world.txt │ │ ├── pages │ │ │ └── index.js │ │ └── test-file.txt │ ├── jsconfig-paths │ │ ├── .gitignore │ │ ├── lib │ │ │ ├── a │ │ │ │ └── api.js │ │ │ └── b │ │ │ │ ├── api.js │ │ │ │ └── b-only.js │ │ └── node_modules │ │ │ └── mypackage │ │ │ └── myfile.js │ ├── cli │ │ ├── old-react-dom │ │ │ ├── .gitignore │ │ │ ├── node_modules │ │ │ │ └── react-dom │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── old-react │ │ │ ├── .gitignore │ │ │ ├── node_modules │ │ │ │ └── react │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── duplicate-sass │ │ │ ├── .gitignore │ │ │ ├── node_modules │ │ │ │ ├── sass │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── node-sass │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── experimental-react │ │ │ ├── .gitignore │ │ │ ├── node_modules │ │ │ │ └── react │ │ │ │ │ └── index.js │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── pages │ │ │ └── index.js │ │ └── experimental-react-dom │ │ │ ├── .gitignore │ │ │ ├── node_modules │ │ │ └── react-dom │ │ │ │ └── index.js │ │ │ └── pages │ │ │ └── index.js │ ├── dynamic-routing │ │ ├── public │ │ │ ├── hello.txt │ │ │ ├── hello+copy.txt │ │ │ ├── hello copy.txt │ │ │ └── hello%20copy.txt │ │ ├── static │ │ │ ├── hello.txt │ │ │ ├── hello+copy.txt │ │ │ ├── hello copy.txt │ │ │ └── hello%20copy.txt │ │ ├── pages │ │ │ ├── dash │ │ │ │ └── [hello-world].js │ │ │ ├── catchall-dash │ │ │ │ └── [...hello-world].js │ │ │ ├── p1 │ │ │ │ └── p2 │ │ │ │ │ └── nested-all-ssg │ │ │ │ │ └── [...rest] │ │ │ │ │ └── styles.module.css │ │ │ └── another.js │ │ └── next.config.js │ ├── export-serverless │ │ ├── .gitignore │ │ ├── public │ │ │ └── about │ │ │ │ └── data.txt │ │ ├── static │ │ │ └── data │ │ │ │ └── item.txt │ │ ├── components │ │ │ └── hello.js │ │ └── pages │ │ │ └── api │ │ │ └── data.js │ ├── filesystempublicroutes │ │ ├── public │ │ │ └── hello.txt │ │ └── pages │ │ │ ├── index.js │ │ │ └── exportpathmap-route.js │ ├── serverless │ │ ├── public │ │ │ ├── hello.txt │ │ │ └── static │ │ │ │ └── legacy.txt │ │ ├── pages │ │ │ ├── abc.js │ │ │ ├── api │ │ │ │ ├── hello.js │ │ │ │ ├── posts │ │ │ │ │ └── [id].js │ │ │ │ └── dynamic │ │ │ │ │ └── [path] │ │ │ │ │ └── index.js │ │ │ └── some-amp.js │ │ └── components │ │ │ └── hello.js │ ├── test-file.txt │ ├── 404-page-app │ │ ├── next.config.js │ │ └── pages │ │ │ └── index.js │ ├── 404-page-ssg │ │ ├── next.config.js │ │ └── pages │ │ │ └── index.js │ ├── 404-page │ │ ├── next.config.js │ │ └── pages │ │ │ ├── index.js │ │ │ └── 404.js │ ├── custom-routes-catchall │ │ └── public │ │ │ ├── another.txt │ │ │ └── static │ │ │ └── data.json │ ├── custom-routes │ │ ├── public │ │ │ ├── static │ │ │ │ └── hello.txt │ │ │ └── blog │ │ │ │ └── data.json │ │ └── pages │ │ │ ├── another │ │ │ └── [id].js │ │ │ ├── multi-rewrites.js │ │ │ ├── docs │ │ │ └── v2 │ │ │ │ └── more │ │ │ │ └── now-for-github.js │ │ │ ├── redirect-override.js │ │ │ └── api │ │ │ ├── hello.js │ │ │ └── dynamic │ │ │ └── [slug].js │ ├── index-index │ │ ├── next.config.js │ │ └── pages │ │ │ ├── index.js │ │ │ └── index │ │ │ ├── index.js │ │ │ └── user.js │ ├── serverless-trace │ │ ├── public │ │ │ └── hello.txt │ │ ├── pages │ │ │ ├── abc.js │ │ │ ├── api │ │ │ │ ├── hello.js │ │ │ │ ├── posts │ │ │ │ │ └── [id].js │ │ │ │ └── dynamic │ │ │ │ │ └── [path] │ │ │ │ │ └── index.js │ │ │ └── some-amp.js │ │ └── components │ │ │ └── hello.js │ ├── tsconfig-verifier │ │ └── value.ts │ ├── export-intent │ │ └── fixtures │ │ │ ├── bad-export │ │ │ └── .gitignore │ │ │ ├── custom-export │ │ │ ├── .gitignore │ │ │ └── pages │ │ │ │ └── index.js │ │ │ ├── custom-out │ │ │ ├── .gitignore │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── next.config.js │ │ │ ├── no-export │ │ │ ├── .gitignore │ │ │ └── pages │ │ │ │ └── index.js │ │ │ └── default-export │ │ │ ├── .gitignore │ │ │ └── pages │ │ │ └── index.js │ ├── link-ref │ │ └── pages │ │ │ └── index.js │ ├── next-dynamic │ │ ├── apples │ │ │ └── index.js │ │ └── components │ │ │ └── three.js │ ├── static-404 │ │ └── pages │ │ │ └── index.js │ ├── custom-server-types │ │ ├── .gitignore │ │ ├── pages │ │ │ └── index.tsx │ │ └── next-env.d.ts │ ├── gip-identifier │ │ └── pages │ │ │ └── index.js │ ├── page-config │ │ ├── config │ │ │ └── index.js │ │ ├── something.js │ │ ├── pages │ │ │ ├── invalid │ │ │ │ └── no-init.js │ │ │ └── blog │ │ │ │ └── post.js │ │ └── lib │ │ │ └── data.js │ ├── polyfilling-minimal │ │ ├── next.config.js │ │ └── pages │ │ │ └── index.js │ ├── api-support │ │ └── pages │ │ │ ├── user.js │ │ │ ├── index.js │ │ │ ├── api-conflict.js │ │ │ └── api │ │ │ ├── bool.js │ │ │ ├── redirect-error.js │ │ │ ├── redirect-null.js │ │ │ ├── parse.js │ │ │ ├── query.js │ │ │ ├── redirect-307.js │ │ │ ├── cookies.js │ │ │ ├── redirect-301.js │ │ │ ├── user-error.js │ │ │ ├── test-no-end.js │ │ │ ├── [post] │ │ │ └── [comment].js │ │ │ ├── error.js │ │ │ └── user-error-async.js │ ├── client-navigation │ │ ├── lib │ │ │ ├── data.json │ │ │ └── async-function.js │ │ ├── pages │ │ │ ├── no-default-export.js │ │ │ ├── index.js │ │ │ ├── with-cdm.js │ │ │ ├── exports.js │ │ │ ├── nested-cdm │ │ │ │ └── index.js │ │ │ ├── json.js │ │ │ └── stateless.js │ │ └── components │ │ │ ├── hello.jsx │ │ │ ├── hello1.js │ │ │ └── world.jsx │ ├── conflicting-public-file-page │ │ ├── public │ │ │ ├── hello │ │ │ ├── normal.txt │ │ │ └── another │ │ │ │ ├── index │ │ │ │ └── conflict │ │ └── pages │ │ │ ├── hello.js │ │ │ └── another │ │ │ ├── index.js │ │ │ └── conflict.js │ ├── css-fixtures │ │ ├── bad-custom-configuration-arr-6 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── npm-import-nested │ │ │ ├── styles │ │ │ │ └── global.css │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── other.css │ │ │ │ ├── index.mjs │ │ │ │ └── package.json │ │ ├── npm-import │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── dev-module │ │ │ └── pages │ │ │ │ └── index.module.css │ │ ├── hmr-module │ │ │ └── pages │ │ │ │ └── index.module.css │ │ ├── invalid-global │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── multi-global │ │ │ └── styles │ │ │ │ ├── global1.css │ │ │ │ └── global2.css │ │ ├── multi-module │ │ │ └── pages │ │ │ │ ├── red.module.css │ │ │ │ └── blue.module.css │ │ ├── multi-page │ │ │ └── styles │ │ │ │ ├── global1.css │ │ │ │ └── global2.css │ │ ├── npm-import-bad │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── prod-module │ │ │ └── pages │ │ │ │ └── index.module.css │ │ ├── single-global │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── with-styled-jsx │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── basic-module │ │ │ └── pages │ │ │ │ └── index.module.css │ │ ├── invalid-global-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.js │ │ │ │ ├── index.mjs │ │ │ │ └── index.css │ │ ├── single-global-src │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── bad-custom-configuration-arr-4 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── bad-custom-configuration-arr-5 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── composes-ordering │ │ │ └── pages │ │ │ │ ├── common.module.css │ │ │ │ └── other.module.css │ │ ├── import-global-from-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── index.js │ │ │ │ └── index.css │ │ ├── invalid-global-with-app │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── invalid-module-document │ │ │ ├── styles.module.css │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── multi-global-reversed │ │ │ └── styles │ │ │ │ ├── global1.css │ │ │ │ └── global2.css │ │ ├── multi-module-modern │ │ │ └── pages │ │ │ │ ├── blue.module.css │ │ │ │ └── red.module.css │ │ ├── transition-cleanup │ │ │ └── pages │ │ │ │ ├── common.module.css │ │ │ │ └── other.module.css │ │ ├── transition-reload │ │ │ └── pages │ │ │ │ ├── common.module.css │ │ │ │ └── other.module.css │ │ ├── valid-and-invalid-global │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── bad-custom-configuration-arr-3 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── catch-all-module │ │ │ └── pages │ │ │ │ └── [...post] │ │ │ │ ├── 55css.module.css │ │ │ │ └── index.module.css │ │ ├── global-and-module-ordering │ │ │ ├── styles │ │ │ │ └── global.css │ │ │ └── pages │ │ │ │ ├── index2.module.css │ │ │ │ └── index.module.css │ │ ├── hydrate-without-deps │ │ │ └── pages │ │ │ │ └── common.module.css │ │ ├── invalid-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── index.module.css │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ ├── next-issue-12343 │ │ │ ├── pages │ │ │ │ └── homepage.module.css │ │ │ └── components │ │ │ │ └── button.module.css │ │ ├── nm-module-nested │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── other2.css │ │ │ │ ├── index.mjs │ │ │ │ ├── other3.css │ │ │ │ └── package.json │ │ ├── nm-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── index.module.css │ │ │ │ └── package.json │ │ ├── unused │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── dynamic-route-module │ │ │ └── pages │ │ │ │ └── [post] │ │ │ │ └── index.module.css │ │ ├── bad-custom-configuration-arr-1 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── with-tailwindcss │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── styles │ │ │ │ └── global.css │ │ ├── bad-custom-configuration-arr-7 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── bad-custom-configuration │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── composes-external │ │ │ └── pages │ │ │ │ └── other.css │ │ ├── custom-configuration-arr │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── custom-configuration │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── nested-global │ │ │ └── styles │ │ │ │ ├── global1b.css │ │ │ │ ├── global1.css │ │ │ │ ├── global2b.css │ │ │ │ └── global2.css │ │ ├── bad-custom-configuration-arr-2 │ │ │ ├── .postcssrc.json │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── bad-custom-configuration-func │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── custom-configuration-legacy │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── url-global │ │ │ └── styles │ │ │ │ └── global2.css │ │ └── bad-custom-configuration-arr-8 │ │ │ └── pages │ │ │ └── index.js │ ├── dynamic-optional-routing │ │ ├── next.config.js │ │ └── pages │ │ │ └── api │ │ │ └── post │ │ │ └── [[...slug]].js │ ├── dynamic-route-rename │ │ └── pages │ │ │ └── [pid].js │ ├── invalid-config-values │ │ └── pages │ │ │ └── index.js │ ├── invalid-custom-routes │ │ └── pages │ │ │ └── index.js │ ├── ondemand │ │ ├── components │ │ │ └── hello.js │ │ ├── pages │ │ │ ├── about.js │ │ │ └── third.js │ │ └── next.config.js │ ├── re-export-all-exports-from-page-disallowed │ │ ├── world.txt │ │ └── component │ │ │ ├── child.js │ │ │ └── test.js │ ├── telemetry │ │ ├── pages │ │ │ ├── index.js │ │ │ ├── hello.test.skip │ │ │ ├── _app_withoutreportwebvitals.empty │ │ │ └── __ytho__ │ │ │ │ └── lel.js │ │ ├── .babelrc.default │ │ ├── .babelrc.preset │ │ └── next.config.webpack │ ├── auto-export-query-error │ │ └── pages │ │ │ └── hello.js │ ├── build-warnings │ │ └── pages │ │ │ └── index.js │ ├── dist-dir │ │ └── pages │ │ │ └── index.js │ ├── errors-on-output-to-public │ │ └── pages │ │ │ └── index.js │ ├── invalid-server-options │ │ └── pages │ │ │ └── index.js │ ├── non-next-dist-exclude │ │ └── app │ │ │ └── node_modules │ │ │ └── notnext │ │ │ └── .gitignore │ ├── nullish-config │ │ └── pages │ │ │ └── index.js │ ├── numeric-sep │ │ └── pages │ │ │ └── index.js │ ├── page-extensions │ │ └── pages │ │ │ └── index.js │ ├── serverless-runtime-configs │ │ └── pages │ │ │ └── index.js │ ├── size-limit │ │ └── pages │ │ │ └── about.js │ ├── typescript-paths │ │ ├── lib │ │ │ ├── a │ │ │ │ └── api.ts │ │ │ └── b │ │ │ │ ├── api.ts │ │ │ │ └── b-only.ts │ │ └── components │ │ │ ├── alias-to-d-ts.d.ts │ │ │ └── alias-to-d-ts.tsx │ ├── typescript │ │ ├── extension-order │ │ │ ├── js-first.js │ │ │ └── js-first.ts │ │ └── components │ │ │ ├── hello.module.sass │ │ │ ├── hello.module.css │ │ │ └── hello.module.scss │ ├── amphtml-ssg │ │ └── pages │ │ │ └── index.js │ ├── babel │ │ └── test │ │ │ └── namespace-exported-react.js │ ├── bundle-size-profiling │ │ └── pages │ │ │ └── index.js │ ├── compression │ │ └── pages │ │ │ └── index.js │ ├── config-empty │ │ ├── pages │ │ │ └── index.js │ │ └── next.config.js │ ├── config-experimental-warning │ │ └── pages │ │ │ └── index.js │ ├── development-runtime-config │ │ └── pages │ │ │ └── index.js │ ├── empty-object-getInitialProps │ │ └── pages │ │ │ └── static.js │ ├── modern-mode │ │ ├── pages │ │ │ └── index.js │ │ └── next.config.js │ ├── non-standard-node-env-warning │ │ └── pages │ │ │ └── index.js │ ├── preload-viewport │ │ ├── pages │ │ │ ├── first.js │ │ │ ├── another.js │ │ │ └── dynamic │ │ │ │ └── [hello].js │ │ └── next.config.js │ ├── rewrites-client-resolving │ │ └── pages │ │ │ ├── 404.js │ │ │ ├── product │ │ │ └── index.js │ │ │ └── category │ │ │ └── index.js │ ├── scss-fixtures │ │ ├── basic-module-include-paths │ │ │ └── styles │ │ │ │ └── _vars.scss │ │ ├── npm-import-bad │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── npm-import-nested │ │ │ ├── styles │ │ │ │ └── global.scss │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── other.scss │ │ │ │ └── package.json │ │ ├── npm-import │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── invalid-global │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── invalid-global-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.js │ │ │ │ ├── index.mjs │ │ │ │ └── index.scss │ │ ├── invalid-global-with-app │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── invalid-module-document │ │ │ ├── styles.module.scss │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── invalid-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── index.js │ │ │ │ ├── index.module.scss │ │ │ │ └── package.json │ │ ├── multi-page │ │ │ └── styles │ │ │ │ ├── global1.scss │ │ │ │ └── global2.scss │ │ ├── nm-module │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── package.json │ │ │ │ └── index.module.scss │ │ ├── unused │ │ │ └── pages │ │ │ │ └── index.js │ │ ├── basic-module-prepend-data │ │ │ └── pages │ │ │ │ └── index.module.scss │ │ ├── basic-module │ │ │ └── pages │ │ │ │ └── index.module.scss │ │ ├── catch-all-module │ │ │ └── pages │ │ │ │ └── [...post] │ │ │ │ └── index.module.scss │ │ ├── dev-module │ │ │ └── pages │ │ │ │ └── index.module.scss │ │ ├── hmr-module │ │ │ └── pages │ │ │ │ └── index.module.scss │ │ ├── multi-global │ │ │ └── styles │ │ │ │ ├── global1.scss │ │ │ │ └── global2.scss │ │ ├── multi-module │ │ │ └── pages │ │ │ │ ├── blue.module.scss │ │ │ │ └── red.module.scss │ │ ├── nm-module-nested │ │ │ └── node_modules │ │ │ │ └── example │ │ │ │ ├── index.mjs │ │ │ │ ├── other2.scss │ │ │ │ ├── other3.scss │ │ │ │ └── package.json │ │ ├── prod-module │ │ │ └── pages │ │ │ │ └── index.module.scss │ │ ├── single-global-src │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── single-global │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── webpack-error │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── with-styled-jsx │ │ │ └── styles │ │ │ │ └── global.scss │ │ ├── dynamic-route-module │ │ │ └── pages │ │ │ │ └── [post] │ │ │ │ └── index.module.scss │ │ ├── multi-global-reversed │ │ │ └── styles │ │ │ │ ├── global1.scss │ │ │ │ └── global2.scss │ │ ├── with-tailwindcss │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── styles │ │ │ │ └── global.scss │ │ └── valid-and-invalid-global │ │ │ └── styles │ │ │ └── global.scss │ ├── typescript-hmr │ │ └── pages │ │ │ ├── hello.tsx │ │ │ └── type-error-recover.tsx │ ├── 404-page-custom-error │ │ └── pages │ │ │ ├── _error.js │ │ │ └── index.js │ ├── amphtml │ │ ├── components │ │ │ └── hello.js │ │ └── pages │ │ │ └── root-hmr.js │ ├── api-catch-all │ │ └── pages │ │ │ └── api │ │ │ └── users │ │ │ ├── index.js │ │ │ └── [...slug].js │ ├── client-404 │ │ └── pages │ │ │ ├── index.js │ │ │ └── missing.js │ ├── dynamic-optional-routing-root-fallback │ │ └── next.config.js │ ├── dynamic-optional-routing-root-static-paths │ │ └── next.config.js │ ├── dynamic-require │ │ └── locales │ │ │ ├── en.js │ │ │ └── ru.js │ ├── export-subfolders │ │ └── pages │ │ │ ├── index.js │ │ │ ├── about.js │ │ │ └── posts │ │ │ ├── index.js │ │ │ └── single.js │ ├── legacy-pkg-gently │ │ └── next.config.js │ ├── route-load-cancel-css │ │ ├── pages │ │ │ └── page1.module.css │ │ └── next.config.js │ ├── src-dir-support-double-dir │ │ ├── pages │ │ │ └── index.js │ │ └── src │ │ │ └── pages │ │ │ ├── index.js │ │ │ └── hello.js │ ├── trailing-slash-dist │ │ ├── pages │ │ │ └── index.js │ │ └── next.config.js │ ├── app-aspath │ │ └── pages │ │ │ └── index.js │ ├── handle-non-page-in-pages │ │ ├── next.config.js │ │ └── pages │ │ │ ├── valid.tsx │ │ │ └── invalid.tsx │ ├── no-override-next-props │ │ └── pages │ │ │ └── index.js │ ├── production-config │ │ └── styles.css │ ├── src-dir-support │ │ ├── src │ │ │ └── pages │ │ │ │ └── another.js │ │ └── next.config.js │ ├── ssr-prepass │ │ └── next.config.js │ ├── amp-export-validation │ │ ├── next.config.js │ │ └── pages │ │ │ └── first.js │ ├── app-document │ │ └── next.config.js │ ├── app-functional │ │ └── next.config.js │ ├── data-fetching-errors │ │ └── pages │ │ │ └── index.js │ ├── production-build-dir │ │ └── build │ │ │ └── pages │ │ │ └── index.js │ ├── auto-export-serverless │ │ └── next.config.js │ ├── css-features │ │ └── fixtures │ │ │ ├── module-import-global │ │ │ └── pages │ │ │ │ ├── styles.module.css │ │ │ │ └── styles.css │ │ │ ├── module-import-global-invalid │ │ │ └── pages │ │ │ │ ├── styles.css │ │ │ │ └── styles.module.css │ │ │ ├── cp-ie-11 │ │ │ ├── package.json │ │ │ └── pages │ │ │ │ └── index.js │ │ │ ├── cp-modern │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ │ ├── browsers-new │ │ │ ├── pages │ │ │ │ └── index.js │ │ │ └── package.json │ │ │ ├── browsers-old │ │ │ └── pages │ │ │ │ └── index.js │ │ │ └── module-import-exports │ │ │ └── pages │ │ │ └── colors.module.css │ ├── custom-page-extension │ │ ├── pages │ │ │ └── blog │ │ │ │ └── index.page.js │ │ └── next.config.js │ ├── env-config │ │ └── app │ │ │ ├── package.json │ │ │ ├── pages │ │ │ └── global.js │ │ │ └── .env.test.local │ ├── export-progress-status-message │ │ └── pages │ │ │ └── index.js │ ├── export-subfolders-serverless │ │ ├── pages │ │ │ ├── about.js │ │ │ ├── index.js │ │ │ └── posts │ │ │ │ ├── single.js │ │ │ │ └── index.js │ │ └── next.config.js │ ├── no-anon-default-export │ │ ├── components │ │ │ └── Child.js │ │ └── pages │ │ │ └── page.js │ ├── route-indexes │ │ └── pages │ │ │ ├── api │ │ │ └── sub │ │ │ │ ├── [id].js │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ └── nested-index │ │ │ └── index │ │ │ └── index.js │ ├── typescript-only-remove-type-imports │ │ └── pages │ │ │ └── normal.tsx │ ├── auto-export-serverless-error │ │ ├── next.config.js │ │ └── pages │ │ │ └── index.js │ ├── babel-custom │ │ └── fixtures │ │ │ ├── targets-browsers │ │ │ └── pages │ │ │ │ └── index.js │ │ │ └── targets-string │ │ │ └── pages │ │ │ └── index.js │ ├── export-default-map-serverless │ │ └── next.config.js │ ├── invalid-href │ │ └── pages │ │ │ └── [post].js │ ├── invalid-page-automatic-static-optimization │ │ └── pages │ │ │ ├── also-invalid.js │ │ │ └── valid.js │ ├── jsconfig-baseurl │ │ └── jsconfig.json │ ├── route-index │ │ └── pages │ │ │ └── index │ │ │ └── index.js │ ├── static-page-name │ │ └── pages │ │ │ └── static.js │ ├── typescript-workspaces-paths │ │ └── packages │ │ │ └── www │ │ │ └── components │ │ │ └── alias-to-d-ts.d.ts │ ├── build-indicator │ │ └── pages │ │ │ ├── a.js │ │ │ └── b.js │ ├── build-output │ │ └── fixtures │ │ │ ├── with-amp │ │ │ └── pages │ │ │ │ ├── index.js │ │ │ │ ├── amp.js │ │ │ │ └── hybrid.js │ │ │ ├── with-app │ │ │ └── pages │ │ │ │ └── index.js │ │ │ ├── with-error │ │ │ └── pages │ │ │ │ └── index.js │ │ │ └── with-error-static │ │ │ └── pages │ │ │ └── index.js │ ├── duplicate-pages │ │ └── pages │ │ │ ├── hello.js │ │ │ └── hello │ │ │ └── index.js │ ├── firebase-grpc │ │ └── pages │ │ │ ├── page-1.js │ │ │ └── page-2.js │ ├── handles-export-errors │ │ └── pages │ │ │ ├── page-1.js │ │ │ ├── page-2.js │ │ │ ├── page-3.js │ │ │ ├── page-4.js │ │ │ ├── page-5.js │ │ │ ├── page-6.js │ │ │ ├── page-7.js │ │ │ ├── page-8.js │ │ │ ├── page-9.js │ │ │ ├── page.js │ │ │ ├── page-10.js │ │ │ ├── page-11.js │ │ │ ├── page-12.js │ │ │ └── page-13.js │ ├── legacy-sass │ │ ├── next.config.js │ │ └── styles │ │ │ └── style.scss │ ├── router-prefetch │ │ └── pages │ │ │ └── another-page.js │ ├── ssg-dynamic-routes-404-page │ │ └── pages │ │ │ └── 404.js │ ├── trailing-slashes-href-resolving │ │ └── next.config.js │ ├── gssp-redirect │ │ └── pages │ │ │ ├── 404.js │ │ │ ├── index.js │ │ │ └── another.js │ ├── plugin-mdx │ │ └── pages │ │ │ └── index.mdx │ ├── auto-export │ │ └── pages │ │ │ └── commonjs2.js │ ├── broken-webpack-plugin │ │ └── pages │ │ │ └── index.js │ ├── chunking │ │ └── pages │ │ │ └── index.js │ ├── config-resolve-alias │ │ └── pages │ │ │ └── index.js │ ├── conformance │ │ └── pages │ │ │ └── index.js │ ├── export-override-404 │ │ └── pages │ │ │ └── 404.js │ ├── prerender-fallback-aspath │ │ └── next.config.js │ ├── process-env-stub │ │ └── next.config.js │ ├── trailing-slashes-rewrite │ │ └── pages │ │ │ ├── index.js │ │ │ └── catch-all │ │ │ └── [...slug].js │ ├── webpack-config-mainjs │ │ └── pages │ │ │ └── static.js │ ├── config-promise-error │ │ └── pages │ │ │ └── index.js │ ├── export-default-map │ │ └── pages │ │ │ └── v1.12 │ │ │ ├── index.js │ │ │ └── docs.js │ ├── future │ │ └── next.config.js │ ├── no-duplicate-compile-error │ │ └── pages │ │ │ └── index.js │ ├── trailing-slashes │ │ ├── next.config.js │ │ └── pages │ │ │ └── 404.js │ └── missing-document-component-error │ │ └── pages │ │ └── index.js ├── acceptance │ └── .gitignore ├── test-file.txt ├── unit │ └── fixtures │ │ ├── config-down │ │ ├── one │ │ │ └── two │ │ │ │ └── three │ │ │ │ └── .gitkeep │ │ └── .testrc.json │ │ ├── config-json │ │ └── .testrc.json │ │ ├── config-long-json │ │ └── test.config.json │ │ ├── config-js │ │ └── .testrc.js │ │ ├── config-long-js │ │ └── test.config.js │ │ └── config-package-json │ │ └── package.json ├── .babelrc ├── eslint-plugin-next │ └── custom-pages │ │ ├── index.jsx │ │ └── list │ │ └── [id].jsx └── .stats-app │ └── pages │ └── index.js ├── bench ├── readdir │ ├── .gitignore │ └── create-fixtures.sh ├── recursive-delete │ └── .gitignore └── pages │ └── stateless.js ├── test-file.txt ├── .npmrc ├── .prettierrc.json ├── .github └── actions │ └── next-stats-action │ └── .gitignore └── SECURITY.md /examples/with-reasonml/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next-env/.gitignore: -------------------------------------------------------------------------------- 1 | types -------------------------------------------------------------------------------- /packages/next/client/dev/noop.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | packages/next/README.md -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/one.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bench/readdir/.gitignore: -------------------------------------------------------------------------------- 1 | fixtures 2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/aa/cache.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/aa/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/cc/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/one.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/two.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/production/public/file: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /test/isolated/.gitignore: -------------------------------------------------------------------------------- 1 | test_resolvedata -------------------------------------------------------------------------------- /test/isolated/_resolvedata/.gitignore: -------------------------------------------------------------------------------- 1 | !dist -------------------------------------------------------------------------------- /test/isolated/_resolvedata/bb/index.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/cc/index.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bench/recursive-delete/.gitignore: -------------------------------------------------------------------------------- 1 | fixtures-* 2 | -------------------------------------------------------------------------------- /examples/with-firebase-hosting/public/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/.gitignore: -------------------------------------------------------------------------------- 1 | /lib/ 2 | -------------------------------------------------------------------------------- /test-file.txt: -------------------------------------------------------------------------------- 1 | this is used for traverse testing -------------------------------------------------------------------------------- /test/acceptance/.gitignore: -------------------------------------------------------------------------------- 1 | **/__tmp__/** 2 | -------------------------------------------------------------------------------- /test/integration/basic/public/data/data.txt: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /test/integration/config/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules -------------------------------------------------------------------------------- /test/integration/empty-project/pages/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/export/.gitignore: -------------------------------------------------------------------------------- 1 | .next-dev 2 | -------------------------------------------------------------------------------- /test/integration/export/static/data/item.txt: -------------------------------------------------------------------------------- 1 | item -------------------------------------------------------------------------------- /test/integration/jsconfig-empty/jsconfig.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/jsconfig/jsconfig.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/integration/prerender/world.txt: -------------------------------------------------------------------------------- 1 | world 2 | -------------------------------------------------------------------------------- /test/integration/basepath/public/data.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /test/integration/export/public/about/data.txt: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /test/integration/getserversideprops/world.txt: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /test/integration/production/public/data/data.txt: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /test/integration/production/static/data/item.txt: -------------------------------------------------------------------------------- 1 | item -------------------------------------------------------------------------------- /test/isolated/_resolvedata/cache/test.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/nav/about.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/nav/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/prefered.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test-file.txt: -------------------------------------------------------------------------------- 1 | this is used for traverse testing -------------------------------------------------------------------------------- /test/unit/fixtures/config-down/one/two/three/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact = true 2 | tag-version-prefix="" 3 | -------------------------------------------------------------------------------- /test/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-server/static/hello.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /test/integration/file-serving/public/hello world.txt: -------------------------------------------------------------------------------- 1 | hi -------------------------------------------------------------------------------- /test/integration/file-serving/static/hello world.txt: -------------------------------------------------------------------------------- 1 | hi -------------------------------------------------------------------------------- /test/integration/jsconfig-paths/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/nested/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/prefered/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/with-mongodb-mongoose/.env.local.example: -------------------------------------------------------------------------------- 1 | MONGODB_URI= -------------------------------------------------------------------------------- /packages/next/build/polyfills/object.assign/auto.js: -------------------------------------------------------------------------------- 1 | // noop 2 | -------------------------------------------------------------------------------- /packages/next/data.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/lib/data' 2 | -------------------------------------------------------------------------------- /test/integration/cli/old-react-dom/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/public/hello.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /test/integration/dynamic-routing/static/hello.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /test/integration/export-serverless/.gitignore: -------------------------------------------------------------------------------- 1 | .next-dev 2 | -------------------------------------------------------------------------------- /test/integration/export-serverless/public/about/data.txt: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /test/integration/export-serverless/static/data/item.txt: -------------------------------------------------------------------------------- 1 | item -------------------------------------------------------------------------------- /test/integration/filesystempublicroutes/public/hello.txt: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /test/integration/serverless/public/hello.txt: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /test/integration/test-file.txt: -------------------------------------------------------------------------------- 1 | this is used for traverse testing -------------------------------------------------------------------------------- /test/isolated/_resolvedata/typescript-config/next.config.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/with-mongodb/.env.local.example: -------------------------------------------------------------------------------- 1 | MONGODB_URI= 2 | MONGODB_DB= -------------------------------------------------------------------------------- /test/integration/404-page-app/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/404-page-ssg/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/404-page/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/integration/cli/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'test' 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes-catchall/public/another.txt: -------------------------------------------------------------------------------- 1 | some text -------------------------------------------------------------------------------- /test/integration/custom-routes/public/static/hello.txt: -------------------------------------------------------------------------------- 1 | hello world! -------------------------------------------------------------------------------- /test/integration/dynamic-routing/public/hello+copy.txt: -------------------------------------------------------------------------------- 1 | hello world + -------------------------------------------------------------------------------- /test/integration/dynamic-routing/static/hello+copy.txt: -------------------------------------------------------------------------------- 1 | hello world + -------------------------------------------------------------------------------- /test/integration/index-index/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/public/hello.txt: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /test/integration/tsconfig-verifier/value.ts: -------------------------------------------------------------------------------- 1 | export default false 2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/readdir/pages/nav/products/product.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-down/.testrc.json: -------------------------------------------------------------------------------- 1 | { "foo": "bar" } 2 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-json/.testrc.json: -------------------------------------------------------------------------------- 1 | { "foo": "bar" } 2 | -------------------------------------------------------------------------------- /examples/with-jest/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-stomp/.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_STOMP_SERVER=wss://some.stomp.server -------------------------------------------------------------------------------- /packages/next/amp.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/next-server/lib/amp' 2 | -------------------------------------------------------------------------------- /packages/next/app.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/pages/_app') 2 | -------------------------------------------------------------------------------- /packages/next/babel.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/build/babel/preset' 2 | -------------------------------------------------------------------------------- /packages/next/data.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/lib/data') 2 | -------------------------------------------------------------------------------- /packages/next/link.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/client/link') 2 | -------------------------------------------------------------------------------- /packages/react-refresh-utils/.gitignore: -------------------------------------------------------------------------------- 1 | *.d.ts 2 | *.js 3 | *.js.map 4 | -------------------------------------------------------------------------------- /test/integration/basic/public/static/legacy.txt: -------------------------------------------------------------------------------- 1 | new static folder 2 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react-dom/.gitignore: -------------------------------------------------------------------------------- 1 | !node_modules 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/public/hello copy.txt: -------------------------------------------------------------------------------- 1 | hello world copy -------------------------------------------------------------------------------- /test/integration/dynamic-routing/public/hello%20copy.txt: -------------------------------------------------------------------------------- 1 | hello world %20 -------------------------------------------------------------------------------- /test/integration/dynamic-routing/static/hello copy.txt: -------------------------------------------------------------------------------- 1 | hello world copy -------------------------------------------------------------------------------- /test/integration/dynamic-routing/static/hello%20copy.txt: -------------------------------------------------------------------------------- 1 | hello world %20 -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/bad-export/.gitignore: -------------------------------------------------------------------------------- 1 | /out 2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/custom-export/.gitignore: -------------------------------------------------------------------------------- 1 | /out 2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/custom-out/.gitignore: -------------------------------------------------------------------------------- 1 | /lel 2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/no-export/.gitignore: -------------------------------------------------------------------------------- 1 | /out 2 | -------------------------------------------------------------------------------- /test/integration/link-ref/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/next-dynamic/apples/index.js: -------------------------------------------------------------------------------- 1 | export default 'foobar' 2 | -------------------------------------------------------------------------------- /test/integration/static-404/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-long-json/test.config.json: -------------------------------------------------------------------------------- 1 | { "foo": "bar" } 2 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "semi": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-docker/.dockerignore: -------------------------------------------------------------------------------- 1 | .next/ 2 | node_modules/ 3 | Dockerfile 4 | -------------------------------------------------------------------------------- /examples/with-flow/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint" 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-jss/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-realm-web/.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_REALM_APP_ID=realm-example-bspbt 2 | -------------------------------------------------------------------------------- /examples/with-reasonml/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-redux-wrapper/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /examples/with-tailwindcss-emotion/styles/tailwind.base.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | -------------------------------------------------------------------------------- /examples/with-yarn-workspaces/packages/foo/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'foo' 2 | -------------------------------------------------------------------------------- /packages/next/client.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/client/index') 2 | -------------------------------------------------------------------------------- /packages/next/error.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/pages/_error') 2 | -------------------------------------------------------------------------------- /packages/next/router.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/client/router') 2 | -------------------------------------------------------------------------------- /test/eslint-plugin-next/custom-pages/index.jsx: -------------------------------------------------------------------------------- 1 | export default () => {} 2 | -------------------------------------------------------------------------------- /test/eslint-plugin-next/custom-pages/list/[id].jsx: -------------------------------------------------------------------------------- 1 | export default () => {} 2 | -------------------------------------------------------------------------------- /test/integration/custom-server-types/.gitignore: -------------------------------------------------------------------------------- 1 | server.js 2 | pages/index.jsx -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/default-export/.gitignore: -------------------------------------------------------------------------------- 1 | /out 2 | -------------------------------------------------------------------------------- /test/integration/file-serving/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/file-serving/test-file.txt: -------------------------------------------------------------------------------- 1 | this is used for traverse testing -------------------------------------------------------------------------------- /test/integration/gip-identifier/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/page-config/config/index.js: -------------------------------------------------------------------------------- 1 | export const config = 'world' 2 | -------------------------------------------------------------------------------- /test/integration/page-config/something.js: -------------------------------------------------------------------------------- 1 | export const config = 'hello' 2 | -------------------------------------------------------------------------------- /test/integration/polyfilling-minimal/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/production/public/static/legacy.txt: -------------------------------------------------------------------------------- 1 | new static folder 2 | -------------------------------------------------------------------------------- /test/integration/serverless/public/static/legacy.txt: -------------------------------------------------------------------------------- 1 | new static folder 2 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-js/.testrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { foo: 'bar' } 2 | -------------------------------------------------------------------------------- /.github/actions/next-stats-action/.gitignore: -------------------------------------------------------------------------------- 1 | **/node_modules 2 | out.md 3 | .work -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | Visit https://vercel.com/security to view the disclosure policy. 2 | -------------------------------------------------------------------------------- /examples/with-mobx-react-lite/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-mux-video/.env.local.example: -------------------------------------------------------------------------------- 1 | MUX_TOKEN_ID= 2 | MUX_TOKEN_SECRET= 3 | -------------------------------------------------------------------------------- /examples/with-reasonml-todo/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-unsplash/.env.local.example: -------------------------------------------------------------------------------- 1 | UNSPLASH_ACCESS_KEY= 2 | UNSPLASH_USER= -------------------------------------------------------------------------------- /packages/next/amp.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next-server/lib/amp') 2 | -------------------------------------------------------------------------------- /packages/next/babel.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/build/babel/preset') 2 | -------------------------------------------------------------------------------- /packages/next/constants.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/next-server/lib/constants' 2 | -------------------------------------------------------------------------------- /packages/next/document.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/pages/_document') 2 | -------------------------------------------------------------------------------- /packages/next/head.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next-server/lib/head') 2 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/user.js: -------------------------------------------------------------------------------- 1 | export default () =>
User
2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/lib/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Vercel" 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/no-default-export.js: -------------------------------------------------------------------------------- 1 | export default {} 2 | -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/public/hello: -------------------------------------------------------------------------------- 1 | oops this is doesn't work -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/public/normal.txt: -------------------------------------------------------------------------------- 1 | no conflict here -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-6/.postcssrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/another/[id].js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/custom-server/pages/no-query.js: -------------------------------------------------------------------------------- 1 | export default () => 'test' 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-optional-routing/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-route-rename/pages/[pid].js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/invalid-config-values/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/invalid-custom-routes/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/ondemand/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello

2 | -------------------------------------------------------------------------------- /test/integration/production/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "cool-version" 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/re-export-all-exports-from-page-disallowed/world.txt: -------------------------------------------------------------------------------- 1 | world 2 | -------------------------------------------------------------------------------- /test/integration/serverless/pages/abc.js: -------------------------------------------------------------------------------- 1 | export default () =>
test
2 | -------------------------------------------------------------------------------- /test/integration/telemetry/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello World' 2 | -------------------------------------------------------------------------------- /examples/cms-datocms/.env.local.example: -------------------------------------------------------------------------------- 1 | DATOCMS_API_TOKEN= 2 | DATOCMS_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/with-custom-reverse-proxy/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-md/components/Layout/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Layout' 2 | -------------------------------------------------------------------------------- /examples/with-typescript-graphql/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/next/dynamic.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next-server/lib/dynamic') 2 | -------------------------------------------------------------------------------- /test/integration/404-page-app/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from index' 2 | -------------------------------------------------------------------------------- /test/integration/404-page-ssg/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from index' 2 | -------------------------------------------------------------------------------- /test/integration/404-page/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from index' 2 | -------------------------------------------------------------------------------- /test/integration/auto-export-query-error/pages/hello.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/build-warnings/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Build
2 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/node_modules/sass/index.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes/public/blog/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "hello": "world" 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/dist-dir/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello World
2 | -------------------------------------------------------------------------------- /test/integration/errors-on-output-to-public/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/invalid-server-options/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'test' 2 | -------------------------------------------------------------------------------- /test/integration/jsconfig-paths/lib/a/api.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from a' 2 | -------------------------------------------------------------------------------- /test/integration/jsconfig-paths/lib/b/api.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from b' 2 | -------------------------------------------------------------------------------- /test/integration/jsconfig/pages/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>
hello world
2 | -------------------------------------------------------------------------------- /test/integration/non-next-dist-exclude/app/node_modules/notnext/.gitignore: -------------------------------------------------------------------------------- 1 | !dist 2 | -------------------------------------------------------------------------------- /test/integration/nullish-config/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello World' 2 | -------------------------------------------------------------------------------- /test/integration/numeric-sep/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => `hello ${1_000}` 2 | -------------------------------------------------------------------------------- /test/integration/page-extensions/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello World' 2 | -------------------------------------------------------------------------------- /test/integration/polyfilling-minimal/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

hi

2 | -------------------------------------------------------------------------------- /test/integration/serverless-runtime-configs/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/pages/abc.js: -------------------------------------------------------------------------------- 1 | export default () =>
test
2 | -------------------------------------------------------------------------------- /test/integration/serverless/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello!

2 | -------------------------------------------------------------------------------- /test/integration/size-limit/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () =>
About
2 | -------------------------------------------------------------------------------- /test/integration/telemetry/.babelrc.default: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/telemetry/pages/hello.test.skip: -------------------------------------------------------------------------------- 1 | export default () => 'Hello Test' 2 | -------------------------------------------------------------------------------- /test/integration/typescript-paths/lib/a/api.ts: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from a' 2 | -------------------------------------------------------------------------------- /test/integration/typescript-paths/lib/b/api.ts: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from b' 2 | -------------------------------------------------------------------------------- /test/integration/typescript/extension-order/js-first.js: -------------------------------------------------------------------------------- 1 | export const value = 'OK' 2 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-long-js/test.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { foo: 'bar' } 2 | -------------------------------------------------------------------------------- /examples/blog-starter-typescript/@types/remark-html.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'remark-html' 2 | -------------------------------------------------------------------------------- /examples/with-linaria/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel", "linaria/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-intl/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-stencil/packages/test-component/src/components/my-component/my-component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/with-stencil/packages/test-component/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './components' 2 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-typescript-types/types/index.ts: -------------------------------------------------------------------------------- 1 | export type { TypeA } from './package-1' 2 | -------------------------------------------------------------------------------- /examples/with-userbase/.env.local.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_USERBASE_APP_ID= -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next/client/polyfills.js: -------------------------------------------------------------------------------- 1 | import 'next/dist/build/polyfills/polyfill-nomodule' 2 | -------------------------------------------------------------------------------- /packages/next/config.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next-server/lib/runtime-config') 2 | -------------------------------------------------------------------------------- /packages/next/constants.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next-server/lib/constants') 2 | -------------------------------------------------------------------------------- /test/integration/amphtml-ssg/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

normal old page

2 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
API - support
2 | -------------------------------------------------------------------------------- /test/integration/babel/test/namespace-exported-react.js: -------------------------------------------------------------------------------- 1 | export * as React from 'react' 2 | -------------------------------------------------------------------------------- /test/integration/basepath/components/hello1.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/basepath/components/hello2.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 2

2 | -------------------------------------------------------------------------------- /test/integration/basepath/components/hello3.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/basepath/components/hello4.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 2

2 | -------------------------------------------------------------------------------- /test/integration/basic/components/hello1.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/basic/components/hello2.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 2

2 | -------------------------------------------------------------------------------- /test/integration/basic/components/hello3.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/basic/components/hello4.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 2

2 | -------------------------------------------------------------------------------- /test/integration/bundle-size-profiling/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello World' 2 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/node_modules/node-sass/index.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/compression/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
OK
2 | -------------------------------------------------------------------------------- /test/integration/config-empty/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello World
2 | -------------------------------------------------------------------------------- /test/integration/config-experimental-warning/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/config/node_modules/module-only-package/modern.js: -------------------------------------------------------------------------------- 1 | export default 'OK' 2 | -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/public/another/index: -------------------------------------------------------------------------------- 1 | oops this is doesn't work -------------------------------------------------------------------------------- /test/integration/development-runtime-config/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'test' 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/pages/dash/[hello-world].js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/empty-object-getInitialProps/pages/static.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/jsconfig-paths/lib/b/b-only.js: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from only b' 2 | -------------------------------------------------------------------------------- /test/integration/modern-mode/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello World
2 | -------------------------------------------------------------------------------- /test/integration/non-standard-node-env-warning/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/preload-viewport/pages/first.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello world

2 | -------------------------------------------------------------------------------- /test/integration/rewrites-client-resolving/pages/404.js: -------------------------------------------------------------------------------- 1 | export default () => '404 page' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/basic-module-include-paths/styles/_vars.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | -------------------------------------------------------------------------------- /test/integration/typescript-hmr/pages/hello.tsx: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World

2 | -------------------------------------------------------------------------------- /test/integration/typescript-paths/components/alias-to-d-ts.d.ts: -------------------------------------------------------------------------------- 1 | export default () => any 2 | -------------------------------------------------------------------------------- /test/integration/typescript/components/hello.module.sass: -------------------------------------------------------------------------------- 1 | .hello 2 | content: 'hello' 3 | -------------------------------------------------------------------------------- /test/integration/typescript/extension-order/js-first.ts: -------------------------------------------------------------------------------- 1 | export const value = 'WRONG FILE' 2 | -------------------------------------------------------------------------------- /examples/with-cookie-auth-fauna/.env.local.example: -------------------------------------------------------------------------------- 1 | FAUNA_SERVER_KEY="" -------------------------------------------------------------------------------- /examples/with-cssed/lib/theme.js: -------------------------------------------------------------------------------- 1 | export const dark = '#333' 2 | export const light = '#ddd' 3 | -------------------------------------------------------------------------------- /examples/with-mocha/.mocharc.yml: -------------------------------------------------------------------------------- 1 | file: 2 | - mocha.setup.js 3 | require: '@babel/register' 4 | -------------------------------------------------------------------------------- /examples/with-next-css/component/hello-world.module.css: -------------------------------------------------------------------------------- 1 | .hello { 2 | font-size: 25px; 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-next-less/style.less: -------------------------------------------------------------------------------- 1 | @theme: red; 2 | 3 | .example { 4 | color: @theme; 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-storybook/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": [] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-typescript-graphql/lib/type-defs.graphqls: -------------------------------------------------------------------------------- 1 | type Query { 2 | viewer: User! 3 | } 4 | -------------------------------------------------------------------------------- /packages/next/build/polyfills/object.assign/implementation.js: -------------------------------------------------------------------------------- 1 | module.exports = Object.assign 2 | -------------------------------------------------------------------------------- /packages/next/compiled/chalk/package.json: -------------------------------------------------------------------------------- 1 | {"name":"chalk","main":"index.js","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/etag/package.json: -------------------------------------------------------------------------------- 1 | {"name":"etag","main":"index.js","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/ignore-loader/package.json: -------------------------------------------------------------------------------- 1 | {"name":"ignore-loader","main":"index.js"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/semver/package.json: -------------------------------------------------------------------------------- 1 | {"name":"semver","main":"index.js","license":"ISC"} 2 | -------------------------------------------------------------------------------- /test/integration/404-page-custom-error/pages/_error.js: -------------------------------------------------------------------------------- 1 | export { default } from 'next/error' 2 | -------------------------------------------------------------------------------- /test/integration/404-page-custom-error/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from index' 2 | -------------------------------------------------------------------------------- /test/integration/amphtml/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

hello

2 | -------------------------------------------------------------------------------- /test/integration/api-catch-all/pages/api/users/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './[...slug]' 2 | -------------------------------------------------------------------------------- /test/integration/basepath/pages/docs/another.js: -------------------------------------------------------------------------------- 1 | export default () =>

hello from another

2 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/node_modules/react/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { Suspense: true } 2 | -------------------------------------------------------------------------------- /test/integration/client-404/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
OK
2 | -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/public/another/conflict: -------------------------------------------------------------------------------- 1 | oops this is doesn't work -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import-nested/styles/global.css: -------------------------------------------------------------------------------- 1 | @import '~example/test.css'; 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import/styles/global.css: -------------------------------------------------------------------------------- 1 | @import '~nprogress/nprogress.css'; 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes-catchall/public/static/data.json: -------------------------------------------------------------------------------- 1 | { "field": "some data..." } 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/multi-rewrites.js: -------------------------------------------------------------------------------- 1 | export default () => 'multi-rewrites' 2 | -------------------------------------------------------------------------------- /test/integration/custom-server-types/pages/index.tsx: -------------------------------------------------------------------------------- 1 | export default () =>

hello world

2 | -------------------------------------------------------------------------------- /test/integration/dynamic-optional-routing-root-fallback/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-optional-routing-root-static-paths/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {} 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-require/locales/en.js: -------------------------------------------------------------------------------- 1 | ;(function en(props) { 2 | // no-nop 3 | })() 4 | -------------------------------------------------------------------------------- /test/integration/dynamic-require/locales/ru.js: -------------------------------------------------------------------------------- 1 | ;(function en(props) { 2 | // no-nop 3 | })() 4 | -------------------------------------------------------------------------------- /test/integration/export-subfolders/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a home page

2 | -------------------------------------------------------------------------------- /test/integration/filesystempublicroutes/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Index
2 | -------------------------------------------------------------------------------- /test/integration/legacy-pkg-gently/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { target: 'serverless' } 2 | -------------------------------------------------------------------------------- /test/integration/preload-viewport/pages/another.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello world

2 | -------------------------------------------------------------------------------- /test/integration/production/components/hello1.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/production/components/hello2.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 2

2 | -------------------------------------------------------------------------------- /test/integration/route-load-cancel-css/pages/page1.module.css: -------------------------------------------------------------------------------- 1 | .abc { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello!

2 | -------------------------------------------------------------------------------- /test/integration/src-dir-support-double-dir/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

PAGES

2 | -------------------------------------------------------------------------------- /test/integration/trailing-slash-dist/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from index' 2 | -------------------------------------------------------------------------------- /test/integration/typescript-paths/lib/b/b-only.ts: -------------------------------------------------------------------------------- 1 | export default () => 'Hello from only b' 2 | -------------------------------------------------------------------------------- /test/integration/typescript/components/hello.module.css: -------------------------------------------------------------------------------- 1 | .hello { 2 | content: 'hello'; 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/js-ts-config/next.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "__test__ext": "json" 3 | } 4 | -------------------------------------------------------------------------------- /bench/pages/stateless.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | export default () =>

My component!

3 | -------------------------------------------------------------------------------- /examples/custom-server-koa/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-koa/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-filbert/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["macros"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-lingui/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["macros"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-magic/.env.local.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY= 2 | MAGIC_SECRET_KEY= 3 | -------------------------------------------------------------------------------- /examples/with-react-md-typescript/components/Layout/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Layout' 2 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/.eslintignore: -------------------------------------------------------------------------------- 1 | **/node_modules/* 2 | **/out/* 3 | **/.next/* 4 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/test/__mocks__/fileMock.js: -------------------------------------------------------------------------------- 1 | module.exports = 'test-file-stub' 2 | -------------------------------------------------------------------------------- /examples/with-typescript-types/types/package-1.ts: -------------------------------------------------------------------------------- 1 | export type TypeA = { 2 | name: string 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-zeit-fetch/fetch/browser.js: -------------------------------------------------------------------------------- 1 | import fetch from 'unfetch' 2 | 3 | export default fetch 4 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/name-default-component/1-starts-with-number.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/name-default-component/existing-name-ignore.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/name-default-component/special-ch@racter.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-renamed.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/404-page/pages/404.js: -------------------------------------------------------------------------------- 1 | const page = () => 'custom 404 page' 2 | export default page 3 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api-conflict.js: -------------------------------------------------------------------------------- 1 | export default () =>
API - conflict
2 | -------------------------------------------------------------------------------- /test/integration/app-aspath/pages/index.js: -------------------------------------------------------------------------------- 1 | export default (props) => JSON.stringify(props, null, 2) 2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/components/hello.jsx: -------------------------------------------------------------------------------- 1 | export const Hello = () =>
Hello
2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/components/hello1.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World 1

2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/components/world.jsx: -------------------------------------------------------------------------------- 1 | export const World = () =>
World
2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/dev-module/pages/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/hmr-module/pages/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-global/styles/global.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-global/styles/global1.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-global/styles/global2.css: -------------------------------------------------------------------------------- 1 | .blue-text { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-module/pages/red.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-page/styles/global1.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-page/styles/global2.css: -------------------------------------------------------------------------------- 1 | .blue-text { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import-bad/styles/global.css: -------------------------------------------------------------------------------- 1 | @import 'nprogress/nprogress.css'; 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/prod-module/pages/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/single-global/styles/global.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/with-styled-jsx/styles/global.css: -------------------------------------------------------------------------------- 1 | .my-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/docs/v2/more/now-for-github.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi there' 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/redirect-override.js: -------------------------------------------------------------------------------- 1 | export default () => 'got to the page' 2 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/pages/catchall-dash/[...hello-world].js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | -------------------------------------------------------------------------------- /test/integration/export-subfolders/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am an about page

2 | -------------------------------------------------------------------------------- /test/integration/export/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

Welcome to dynamic imports.

2 | -------------------------------------------------------------------------------- /test/integration/handle-non-page-in-pages/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { target: 'serverless' } 2 | -------------------------------------------------------------------------------- /test/integration/next-dynamic/components/three.js: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return '3' 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/no-override-next-props/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello there 👋

2 | -------------------------------------------------------------------------------- /test/integration/preload-viewport/pages/dynamic/[hello].js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello world

2 | -------------------------------------------------------------------------------- /test/integration/production-config/styles.css: -------------------------------------------------------------------------------- 1 | p { 2 | font-size: 40px; 3 | color: red; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/re-export-all-exports-from-page-disallowed/component/child.js: -------------------------------------------------------------------------------- 1 | export const a = 5 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import-bad/styles/global.scss: -------------------------------------------------------------------------------- 1 | @import 'nprogress/nprogress.css'; 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import-nested/styles/global.scss: -------------------------------------------------------------------------------- 1 | @import '~example/test.scss'; 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import/styles/global.scss: -------------------------------------------------------------------------------- 1 | @import '~nprogress/nprogress.css'; 2 | -------------------------------------------------------------------------------- /test/integration/src-dir-support-double-dir/src/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

SRC

2 | -------------------------------------------------------------------------------- /test/integration/src-dir-support/src/pages/another.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from another!' 2 | -------------------------------------------------------------------------------- /test/integration/ssr-prepass/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/typescript/components/hello.module.scss: -------------------------------------------------------------------------------- 1 | .hello { 2 | content: 'hello'; 3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-cosmic/.env.local.example: -------------------------------------------------------------------------------- 1 | COSMIC_BUCKET_SLUG= 2 | COSMIC_READ_KEY= 3 | COSMIC_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/cms-cosmic/styles/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /examples/cms-datocms/styles/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /examples/cms-graphcms/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "." 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/custom-server-express/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-express/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-fastify/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-fastify/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-hapi/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-hapi/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-polka/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-polka/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-firebase-hosting/src/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | distDir: '../.next', 3 | } 4 | -------------------------------------------------------------------------------- /examples/with-reason-relay/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["relay"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-reason-relay/.env: -------------------------------------------------------------------------------- 1 | RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api 2 | -------------------------------------------------------------------------------- /examples/with-relay-modern/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["relay"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "singleQuote": true 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-unsplash/components/Social/Social.module.css: -------------------------------------------------------------------------------- 1 | .social_container { 2 | height: 60px; 3 | } 4 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/name-default-component/function-component-ignore.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next/app.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/pages/_app' 2 | export { default } from './dist/pages/_app' 3 | -------------------------------------------------------------------------------- /packages/next/compiled/async-retry/package.json: -------------------------------------------------------------------------------- 1 | {"name":"async-retry","main":"index.js","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/compression/package.json: -------------------------------------------------------------------------------- 1 | {"name":"compression","main":"index.js","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/devalue/package.json: -------------------------------------------------------------------------------- 1 | {"name":"devalue","main":"devalue.umd.js","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/lib/typescript/FatalTypeScriptError.ts: -------------------------------------------------------------------------------- 1 | export class FatalTypeScriptError extends Error {} 2 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/src/internal/components/Overlay/index.tsx: -------------------------------------------------------------------------------- 1 | export { Overlay } from './Overlay' 2 | -------------------------------------------------------------------------------- /test/integration/amp-export-validation/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // exportPathMap 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/bool.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.json(true) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/app-document/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | crossOrigin: 'anonymous', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/app-functional/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | crossOrigin: 'anonymous', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/basic/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () =>
About Page
2 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react/node_modules/react/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { Suspense: true } 2 | -------------------------------------------------------------------------------- /test/integration/cli/old-react-dom/node_modules/react-dom/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { Suspense: true } 2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/index.js: -------------------------------------------------------------------------------- 1 | import CDM from '../lib/cdm' 2 | export default CDM 3 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/with-cdm.js: -------------------------------------------------------------------------------- 1 | import CDM from '../lib/cdm' 2 | export default CDM 3 | -------------------------------------------------------------------------------- /test/integration/config/components/hello-webpack-css.css: -------------------------------------------------------------------------------- 1 | .helloWorld { 2 | font-size: 100px; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/basic-module/pages/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-global-module/node_modules/example/index.js: -------------------------------------------------------------------------------- 1 | require('./index.css') 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-global-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | import './index.css' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-module/pages/blue.module.css: -------------------------------------------------------------------------------- 1 | .blueText { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/single-global-src/styles/global.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-server/pages/asset.js: -------------------------------------------------------------------------------- 1 | export default () =>
asset page
2 | -------------------------------------------------------------------------------- /test/integration/custom-server/pages/dashboard/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

made it to dashboard

2 | -------------------------------------------------------------------------------- /test/integration/data-fetching-errors/pages/index.js: -------------------------------------------------------------------------------- 1 | const Page = () => 'hi' 2 | export default Page 3 | -------------------------------------------------------------------------------- /test/integration/export-subfolders/pages/posts/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a list of posts

2 | -------------------------------------------------------------------------------- /test/integration/export-subfolders/pages/posts/single.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a single post

2 | -------------------------------------------------------------------------------- /test/integration/prerender/pages/normal.js: -------------------------------------------------------------------------------- 1 | export default () =>

a normal page

2 | -------------------------------------------------------------------------------- /test/integration/production-build-dir/build/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello World
2 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/no-css.js: -------------------------------------------------------------------------------- 1 | export default () =>

Without CSS

2 | -------------------------------------------------------------------------------- /test/integration/re-export-all-exports-from-page-disallowed/component/test.js: -------------------------------------------------------------------------------- 1 | export * from './child' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-global/styles/global.scss: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/src-dir-support-double-dir/src/pages/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

PAGES DIR

2 | -------------------------------------------------------------------------------- /test/integration/telemetry/.babelrc.preset: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel", "@babel/preset-flow"] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/trailing-slash-dist/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | distDir: '.next/', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/typescript-hmr/pages/type-error-recover.tsx: -------------------------------------------------------------------------------- 1 | export default () =>

Hello world

2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/js-ts-config/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | __test__ext: 'js', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/js-ts-config/next.config.ts: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | __test__ext: 'ts', 3 | } 4 | -------------------------------------------------------------------------------- /test/unit/fixtures/config-package-json/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": { 3 | "foo": "bar" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/basic-export/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-strapi/.env.local.example: -------------------------------------------------------------------------------- 1 | STRAPI_PREVIEW_SECRET= 2 | NEXT_PUBLIC_STRAPI_API_URL=http://localhost:1337 -------------------------------------------------------------------------------- /examples/custom-server-actionhero/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-actionhero/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-typescript/pages/a.tsx: -------------------------------------------------------------------------------- 1 | export default function A() { 2 | return
a
3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-typescript/pages/b.tsx: -------------------------------------------------------------------------------- 1 | export default function B() { 2 | return
b
3 | } 4 | -------------------------------------------------------------------------------- /examples/using-preact/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-app-layout/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
test
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-semantic-ui/.nowignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | /*.* 4 | !package.json 5 | !next.config.js 6 | -------------------------------------------------------------------------------- /examples/with-sentry-simple/README.md: -------------------------------------------------------------------------------- 1 | This example has been moved to [examples/with-sentry](../with-sentry). 2 | -------------------------------------------------------------------------------- /examples/with-typescript-graphql/lib/partial.graphql: -------------------------------------------------------------------------------- 1 | fragment Partial on User { 2 | id 3 | name 4 | } 5 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/name-default-component/function-expression-ignore.output.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/next/lib/typescript/TypeScriptCompileError.ts: -------------------------------------------------------------------------------- 1 | export class TypeScriptCompileError extends Error {} 2 | -------------------------------------------------------------------------------- /packages/next/link.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/client/link' 2 | export { default } from './dist/client/link' 3 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/src/internal/components/Terminal/index.tsx: -------------------------------------------------------------------------------- 1 | export { Terminal } from './Terminal' 2 | -------------------------------------------------------------------------------- /test/integration/auto-export-serverless/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/basepath/pages/other-page.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello Other

2 | -------------------------------------------------------------------------------- /test/integration/basic/components/hello-chunkfilename.js: -------------------------------------------------------------------------------- 1 | export default () =>
test chunkfilename
2 | -------------------------------------------------------------------------------- /test/integration/config/node_modules/css-framework/framework.css: -------------------------------------------------------------------------------- 1 | .frameworkClass { 2 | background: blue 3 | } -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/pages/hello.js: -------------------------------------------------------------------------------- 1 | export default () => `oops this is doesn't work` 2 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/module-import-global/pages/styles.module.css: -------------------------------------------------------------------------------- 1 | @import './styles.css'; 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-4/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [5] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-5/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": null 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/composes-ordering/pages/common.module.css: -------------------------------------------------------------------------------- 1 | .colorRed { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/import-global-from-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export default 'hello' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-global-with-app/styles/global.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module-document/styles.module.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-global-reversed/styles/global1.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-global-reversed/styles/global2.css: -------------------------------------------------------------------------------- 1 | .blue-text { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-module-modern/pages/blue.module.css: -------------------------------------------------------------------------------- 1 | .blueText { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/multi-module-modern/pages/red.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/transition-cleanup/pages/common.module.css: -------------------------------------------------------------------------------- 1 | .colorRed { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/transition-reload/pages/common.module.css: -------------------------------------------------------------------------------- 1 | .colorRed { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/valid-and-invalid-global/styles/global.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-page-extension/pages/blog/index.page.js: -------------------------------------------------------------------------------- 1 | export default () =>
Blog - CPE
2 | -------------------------------------------------------------------------------- /test/integration/env-config/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "env-config", 3 | "dependencies": {} 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/no-export/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello Export
2 | -------------------------------------------------------------------------------- /test/integration/export-progress-status-message/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a home page

2 | -------------------------------------------------------------------------------- /test/integration/export-subfolders-serverless/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am an about page

2 | -------------------------------------------------------------------------------- /test/integration/export-subfolders-serverless/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a home page

2 | -------------------------------------------------------------------------------- /test/integration/export/pages/api/data.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.send('Hello World') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/jsconfig-empty/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Abc() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/modern-mode/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | experimental: { modern: true }, 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/no-anon-default-export/components/Child.js: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/no-anon-default-export/pages/page.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/with-css.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () =>
About Page
2 | -------------------------------------------------------------------------------- /test/integration/production/pages/amp.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | export const config = { amp: true } 3 | -------------------------------------------------------------------------------- /test/integration/route-indexes/pages/api/sub/[id].js: -------------------------------------------------------------------------------- 1 | export default (req, res) => res.end('hi from sub id') 2 | -------------------------------------------------------------------------------- /test/integration/route-indexes/pages/index.js: -------------------------------------------------------------------------------- 1 | const page = () => 'hello from index' 2 | export default page 3 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.js: -------------------------------------------------------------------------------- 1 | require('./index.scss') 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | import './index.scss' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-global-with-app/styles/global.scss: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module-document/styles.module.scss: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/typescript-only-remove-type-imports/pages/normal.tsx: -------------------------------------------------------------------------------- 1 | export default () => 'A normal one' 2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/js-ts-config/next.config.jsx: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | __test__ext: 'jsx', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/js-ts-config/next.config.tsx: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | __test__ext: 'tsx', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/valid-target/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/without-function/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | customConfig: true, 3 | } 4 | -------------------------------------------------------------------------------- /examples/analyze-bundles/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/basic-export/pages/about2.js: -------------------------------------------------------------------------------- 1 | export default function About2() { 2 | return
About 2
3 | } 4 | -------------------------------------------------------------------------------- /examples/basic-export/pages/day/index.js: -------------------------------------------------------------------------------- 1 | export default function Day() { 2 | return
Hello Day
3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-kontent/.env.local.example: -------------------------------------------------------------------------------- 1 | KONTENT_PROJECT_ID= 2 | KONTENT_PREVIEW_SECRET= 3 | KONTENT_PREVIEW_API_KEY= -------------------------------------------------------------------------------- /examples/cms-sanity/.env.local.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_SANITY_PROJECT_ID= 2 | SANITY_API_TOKEN= 3 | SANITY_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/cms-takeshape/.env.local.example: -------------------------------------------------------------------------------- 1 | TAKESHAPE_API_KEY= 2 | TAKESHAPE_PROJECT_ID= 3 | TAKESHAPE_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/hello-world/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function AboutPage() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/svg-components/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["inline-react-svg"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-absolute-imports/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "." 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-cssed/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["babel-plugin-macros"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-react-ga/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-relay-modern/.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api 2 | -------------------------------------------------------------------------------- /examples/with-strict-csp/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
Hello World
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-webassembly/src/add.rs: -------------------------------------------------------------------------------- 1 | #[no_mangle] 2 | pub extern "C" fn add_one(x: i32) -> i32 { 3 | x + 1 4 | } -------------------------------------------------------------------------------- /examples/with-zeit-fetch/fetch/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": "./browser.js", 3 | "main": "./server.js" 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-zeit-fetch/fetch/server.js: -------------------------------------------------------------------------------- 1 | import zeitFetch from '@zeit/fetch' 2 | 3 | export default zeitFetch() 4 | -------------------------------------------------------------------------------- /examples/with-zones/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "with-zones", 3 | "private": true, 4 | "license": "MIT" 5 | } 6 | -------------------------------------------------------------------------------- /packages/next/client.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/client/index' 2 | export { default } from './dist/client/index' 3 | -------------------------------------------------------------------------------- /packages/next/error.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/pages/_error' 2 | export { default } from './dist/pages/_error' 3 | -------------------------------------------------------------------------------- /packages/next/router.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/client/router' 2 | export { default } from './dist/client/router' 3 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/src/internal/components/CodeFrame/index.tsx: -------------------------------------------------------------------------------- 1 | export { CodeFrame } from './CodeFrame' 2 | -------------------------------------------------------------------------------- /test/integration/auto-export-serverless-error/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/babel-custom/fixtures/targets-browsers/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World

2 | -------------------------------------------------------------------------------- /test/integration/babel-custom/fixtures/targets-string/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello World

2 | -------------------------------------------------------------------------------- /test/integration/basepath/components/hello-chunkfilename.js: -------------------------------------------------------------------------------- 1 | export default () =>
test chunkfilename
2 | -------------------------------------------------------------------------------- /test/integration/basic/pages/process-env.js: -------------------------------------------------------------------------------- 1 | export default () =>
{process.env.NODE_ENV}
2 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react-dom/node_modules/react-dom/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { Suspense: true } 2 | -------------------------------------------------------------------------------- /test/integration/cli/old-react-dom/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

Hello

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

Hello

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/module-import-global-invalid/pages/styles.css: -------------------------------------------------------------------------------- 1 | a { 2 | all: initial; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/module-import-global/pages/styles.css: -------------------------------------------------------------------------------- 1 | a .foo { 2 | all: initial; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-3/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [[5, null]] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/catch-all-module/pages/[...post]/55css.module.css: -------------------------------------------------------------------------------- 1 | .home { 2 | color: green; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/global-and-module-ordering/styles/global.css: -------------------------------------------------------------------------------- 1 | .textGlobal { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/hydrate-without-deps/pages/common.module.css: -------------------------------------------------------------------------------- 1 | .colorRed { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/import-global-from-module/node_modules/example/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'hello' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export * from './index.module.css' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/next-issue-12343/pages/homepage.module.css: -------------------------------------------------------------------------------- 1 | .button { 2 | background: lime; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module-nested/node_modules/example/other2.css: -------------------------------------------------------------------------------- 1 | .other2 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module/node_modules/example/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import-nested/node_modules/example/other.css: -------------------------------------------------------------------------------- 1 | .other { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/unused/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/env-config/app/pages/global.js: -------------------------------------------------------------------------------- 1 | export default () =>

{process.env.NEXT_PUBLIC_TEST_DEST}

2 | -------------------------------------------------------------------------------- /test/integration/export-default-map-serverless/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/custom-export/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello Export
2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/custom-out/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello Export
2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/default-export/pages/index.js: -------------------------------------------------------------------------------- 1 | export default () =>
Hello Export
2 | -------------------------------------------------------------------------------- /test/integration/export-serverless/components/hello.js: -------------------------------------------------------------------------------- 1 | export default () =>

Welcome to dynamic imports.

2 | -------------------------------------------------------------------------------- /test/integration/export-subfolders-serverless/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'serverless', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/export-subfolders-serverless/pages/posts/single.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a single post

2 | -------------------------------------------------------------------------------- /test/integration/getserversideprops/pages/normal.js: -------------------------------------------------------------------------------- 1 | export default () =>

a normal page

2 | -------------------------------------------------------------------------------- /test/integration/handle-non-page-in-pages/pages/valid.tsx: -------------------------------------------------------------------------------- 1 | export default (): JSX.Element =>

Hello world

2 | -------------------------------------------------------------------------------- /test/integration/invalid-href/pages/[post].js: -------------------------------------------------------------------------------- 1 | export default function Page() { 2 | return 'hi from post' 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/invalid-page-automatic-static-optimization/pages/also-invalid.js: -------------------------------------------------------------------------------- 1 | export default 'just a string' 2 | -------------------------------------------------------------------------------- /test/integration/invalid-page-automatic-static-optimization/pages/valid.js: -------------------------------------------------------------------------------- 1 | export default () =>

Hello world

2 | -------------------------------------------------------------------------------- /test/integration/jsconfig-baseurl/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "." 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/jsconfig-paths/node_modules/mypackage/myfile.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | hello: 'world', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/nested/with-css-2.module.css: -------------------------------------------------------------------------------- 1 | .text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/logo/logo.module.css: -------------------------------------------------------------------------------- 1 | .logo { 2 | background-image: url(dark.svg); 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/route-index/pages/index/index.js: -------------------------------------------------------------------------------- 1 | const page = () => 'hello from index' 2 | export default page 3 | -------------------------------------------------------------------------------- /test/integration/route-indexes/pages/api/sub/index.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => res.end('hi from sub index') 2 | -------------------------------------------------------------------------------- /test/integration/route-indexes/pages/nested-index/index/index.js: -------------------------------------------------------------------------------- 1 | export default () => 'hello from nested index' 2 | -------------------------------------------------------------------------------- /test/integration/route-load-cancel-css/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { target: 'experimental-serverless-trace' } 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export * from './index.module.scss' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-page/styles/global1.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/unused/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/serverless/pages/api/hello.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.send('hello world') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/static-page-name/pages/static.js: -------------------------------------------------------------------------------- 1 | export default () =>

hello from static page

2 | -------------------------------------------------------------------------------- /test/integration/typescript-workspaces-paths/packages/www/components/alias-to-d-ts.d.ts: -------------------------------------------------------------------------------- 1 | export default () => any 2 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/invalid-target/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'nonexistent', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/server/static/development/pages/_error.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | test: 'error', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/server/static/development/pages/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | test: 'hello', 3 | } 4 | -------------------------------------------------------------------------------- /test/isolated/_resolvedata/server/static/development/pages/world.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | test: 'world', 3 | } 4 | -------------------------------------------------------------------------------- /examples/blog-starter/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: ['tailwindcss', 'postcss-preset-env'], 3 | } 4 | -------------------------------------------------------------------------------- /examples/hello-world/pages/day/index.js: -------------------------------------------------------------------------------- 1 | export default function DayPage() { 2 | return
Hello Day
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-babel-macros/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["babel-plugin-macros"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-carbon-components/styles/custom-theme.scss: -------------------------------------------------------------------------------- 1 | @import '~carbon-components/scss/globals/scss/styles.scss'; 2 | -------------------------------------------------------------------------------- /examples/with-firebase-hosting/.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-flow/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["transform-flow-strip-types"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-flow/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/* 3 | 4 | [include] 5 | 6 | [libs] 7 | 8 | [options] 9 | -------------------------------------------------------------------------------- /examples/with-flow/with-flow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-flow/with-flow.gif -------------------------------------------------------------------------------- /examples/with-loading/pages/index.js: -------------------------------------------------------------------------------- 1 | const IndexPage = () =>

Hello Next.js!

2 | 3 | export default IndexPage 4 | -------------------------------------------------------------------------------- /examples/with-next-sass/components/hello-world.module.scss: -------------------------------------------------------------------------------- 1 | $color: red; 2 | 3 | .hello { 4 | color: $color; 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-next-sitemap/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-react-helmet/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
Hello World!
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-intl/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-shallow-routing/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return
About us
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-stitches/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-storybook/components/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
Hello World
3 | } 4 | -------------------------------------------------------------------------------- /examples/with-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-unsplash/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-yarn-workspaces/packages/bar/index.js: -------------------------------------------------------------------------------- 1 | const Bar = () => bar 2 | 3 | export default Bar 4 | -------------------------------------------------------------------------------- /packages/next-env/README.md: -------------------------------------------------------------------------------- 1 | # `@next/env` 2 | 3 | Next.js' util for loading dotenv files in with the proper priorities 4 | -------------------------------------------------------------------------------- /packages/next/build/polyfills/object.assign/polyfill.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | return Object.assign 3 | } 4 | -------------------------------------------------------------------------------- /packages/next/build/polyfills/object.assign/shim.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | return Object.assign 3 | } 4 | -------------------------------------------------------------------------------- /packages/next/build/webpack/config/blocks/css/loaders/index.ts: -------------------------------------------------------------------------------- 1 | export * from './global' 2 | export * from './modules' 3 | -------------------------------------------------------------------------------- /packages/next/document.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/pages/_document' 2 | export { default } from './dist/pages/_document' 3 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/redirect-error.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.redirect(307) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/redirect-null.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.redirect(null) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/basepath/external/page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | hello from external 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/integration/build-indicator/pages/a.js: -------------------------------------------------------------------------------- 1 | export default function Page() { 2 | return

Hello from a

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-indicator/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function Page() { 2 | return

Hello from b

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-amp/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-app/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

Hello

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

Hello

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/node_modules/react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react", 3 | "version": "16.9.0" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/client-navigation/lib/async-function.js: -------------------------------------------------------------------------------- 1 | module.exports = async function () { 2 | return 'test' 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/exports.js: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return
module.exports
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/nested-cdm/index.js: -------------------------------------------------------------------------------- 1 | import CDM from '../../lib/cdm' 2 | export default CDM 3 | -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/pages/another/index.js: -------------------------------------------------------------------------------- 1 | export default () => `oops this is doesn't work` 2 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/cp-ie-11/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browserslist": [ 3 | "ie 11" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/cp-ie-11/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/cp-modern/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/module-import-global-invalid/pages/styles.module.css: -------------------------------------------------------------------------------- 1 | @import './styles.css'; 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/catch-all-module/pages/[...post]/index.module.css: -------------------------------------------------------------------------------- 1 | .home { 2 | background: #f00; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/dynamic-route-module/pages/[post]/index.module.css: -------------------------------------------------------------------------------- 1 | .home { 2 | background: #f00; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/global-and-module-ordering/pages/index2.module.css: -------------------------------------------------------------------------------- 1 | .textModule { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-global-module/node_modules/example/index.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: 'red'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module/node_modules/example/index.module.css: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: 'red'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/next-issue-12343/components/button.module.css: -------------------------------------------------------------------------------- 1 | .button { 2 | background: hotpink; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module-nested/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module-nested/node_modules/example/other3.css: -------------------------------------------------------------------------------- 1 | .other3 { 2 | color: violet; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import-nested/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/api/hello.js: -------------------------------------------------------------------------------- 1 | export default async (req, res) => res.json({ query: req.query }) 2 | -------------------------------------------------------------------------------- /test/integration/duplicate-pages/pages/hello.js: -------------------------------------------------------------------------------- 1 | export default () => ( 2 | <> 3 |

Hi 👋

4 | 5 | ) 6 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/pages/p1/p2/nested-all-ssg/[...rest]/styles.module.css: -------------------------------------------------------------------------------- 1 | .test { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/export-serverless/pages/api/data.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.send('Hello World') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/export-subfolders-serverless/pages/posts/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

I am a list of posts

2 | -------------------------------------------------------------------------------- /test/integration/firebase-grpc/pages/page-1.js: -------------------------------------------------------------------------------- 1 | import 'firebase/firestore' 2 | export default () =>
Firebase
3 | -------------------------------------------------------------------------------- /test/integration/firebase-grpc/pages/page-2.js: -------------------------------------------------------------------------------- 1 | import 'firebase/firestore' 2 | export default () =>
Firebase
3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-1.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-2.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-3.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-4.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-5.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-6.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-7.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-8.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-9.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/legacy-sass/next.config.js: -------------------------------------------------------------------------------- 1 | const withSass = require('@zeit/next-sass') 2 | module.exports = withSass() 3 | -------------------------------------------------------------------------------- /test/integration/legacy-sass/styles/style.scss: -------------------------------------------------------------------------------- 1 | $color: #2ecc71; 2 | .example { 3 | background-color: $color; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/many-modules/with-css-2.module.css: -------------------------------------------------------------------------------- 1 | .text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/nested/with-css.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/pages/amp-hybrid.js: -------------------------------------------------------------------------------- 1 | export default () => 'hi' 2 | export const config = { amp: 'hybrid' } 3 | -------------------------------------------------------------------------------- /test/integration/production/pages/api/hello.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.end('API hello works') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/pages/api/index.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.end('API index works') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/rewrites-client-resolving/pages/product/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

products

2 | -------------------------------------------------------------------------------- /test/integration/router-prefetch/pages/another-page.js: -------------------------------------------------------------------------------- 1 | export default function AnotherPage() { 2 | return null 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/basic-module-prepend-data/pages/index.module.scss: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: $var; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/basic-module/pages/index.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/catch-all-module/pages/[...post]/index.module.scss: -------------------------------------------------------------------------------- 1 | .home { 2 | background: #f00; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/dev-module/pages/index.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/hmr-module/pages/index.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-global/styles/global1.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-global/styles/global2.scss: -------------------------------------------------------------------------------- 1 | $var: blue; 2 | .blue-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-module/pages/blue.module.scss: -------------------------------------------------------------------------------- 1 | $var: blue; 2 | .blueText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-module/pages/red.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-page/styles/global2.scss: -------------------------------------------------------------------------------- 1 | $var: blue; 2 | .blue-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module-nested/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/prod-module/pages/index.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/single-global-src/styles/global.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/single-global/styles/global.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/webpack-error/styles/global.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/with-styled-jsx/styles/global.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .my-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/pages/api/hello.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.send('hello world') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/serverless/pages/api/posts/[id].js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.json(query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/ssg-dynamic-routes-404-page/pages/404.js: -------------------------------------------------------------------------------- 1 | const page = () => 'custom 404 page' 2 | export default page 3 | -------------------------------------------------------------------------------- /test/integration/telemetry/pages/_app_withoutreportwebvitals.empty: -------------------------------------------------------------------------------- 1 | import App from 'next/app' 2 | export default App 3 | -------------------------------------------------------------------------------- /test/integration/trailing-slashes-href-resolving/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | trailingSlash: true, 3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-buttercms/.env.local.example: -------------------------------------------------------------------------------- 1 | # Copy this file as .env.local 2 | BUTTERCMS_API_KEY= 3 | BUTTERCMS_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/cms-prismic/.env.local.example: -------------------------------------------------------------------------------- 1 | PRISMIC_API_TOKEN= 2 | PRISMIC_REPOSITORY_NAME= 3 | PRISMIC_REPOSITORY_LOCALE="en-us" -------------------------------------------------------------------------------- /examples/cms-storyblok/.env.local.example: -------------------------------------------------------------------------------- 1 | # Copy this file as .env.local 2 | STORYBLOK_API_KEY= 3 | STORYBLOK_PREVIEW_SECRET= -------------------------------------------------------------------------------- /examples/with-astroturf/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | 'postcss-nested': {}, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-expo-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-expo/public/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-expo/public/demo.png -------------------------------------------------------------------------------- /examples/with-magic/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | devIndicators: { 3 | autoPrerender: false, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-prefetching/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

This is the HOME page

3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-with-styles/defaultTheme.js: -------------------------------------------------------------------------------- 1 | export default { 2 | color: { 3 | primary: 'salmon', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr1.png -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr2.png -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr3.png -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr4.png -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr5.png -------------------------------------------------------------------------------- /examples/with-redis/docs/lstr6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/docs/lstr6.png -------------------------------------------------------------------------------- /examples/with-stripe-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | yarn.lock 4 | package-lock.json 5 | public 6 | -------------------------------------------------------------------------------- /examples/with-typescript-graphql/lib/user.graphqls: -------------------------------------------------------------------------------- 1 | type User { 2 | id: ID! 3 | name: String! 4 | status: String! 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-typescript-types/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-webassembly/add.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-webassembly/add.wasm -------------------------------------------------------------------------------- /packages/next/compiled/jsonwebtoken/package.json: -------------------------------------------------------------------------------- 1 | {"name":"jsonwebtoken","main":"index.js","author":"auth0","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/telemetry/events/index.ts: -------------------------------------------------------------------------------- 1 | export * from './version' 2 | export * from './build' 3 | export * from './plugins' 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/parse.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.status(200).json(req.body) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/query.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.status(200).send(req.query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/redirect-307.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.redirect('/login') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-error/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/node_modules/sass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sass", 3 | "version": "1.0.0" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react-dom/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return

Hello

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/client-404/pages/missing.js: -------------------------------------------------------------------------------- 1 | export default function Missing() { 2 | return

poof

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/conflicting-public-file-page/pages/another/conflict.js: -------------------------------------------------------------------------------- 1 | export default () => `oops this is doesn't work` 2 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/browsers-new/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/browsers-old/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/cp-modern/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browserslist": [ 3 | "chrome 78" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-1/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [["postcss-trolling"]] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/global-and-module-ordering/pages/index.module.css: -------------------------------------------------------------------------------- 1 | .textModule { 2 | color: yellow; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/import-global-from-module/node_modules/example/index.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: 'red'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module/node_modules/example/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./index.module.css') 2 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/with-tailwindcss/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-routes/pages/api/dynamic/[slug].js: -------------------------------------------------------------------------------- 1 | export default async (req, res) => res.json({ query: req.query }) 2 | -------------------------------------------------------------------------------- /test/integration/export-intent/fixtures/custom-out/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | exportTrailingSlash: true, 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/filesystempublicroutes/pages/exportpathmap-route.js: -------------------------------------------------------------------------------- 1 | export default () =>
exportpathmap was here
2 | -------------------------------------------------------------------------------- /test/integration/gssp-redirect/pages/404.js: -------------------------------------------------------------------------------- 1 | export default function NotFound() { 2 | return

oops not found

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-10.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-11.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-12.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/handles-export-errors/pages/page-13.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => hello.world 3 | -------------------------------------------------------------------------------- /test/integration/index-index/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return
index
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/ondemand/pages/about.js: -------------------------------------------------------------------------------- 1 | export default () => ( 2 |
3 |

About Page

4 |
5 | ) 6 | -------------------------------------------------------------------------------- /test/integration/ondemand/pages/third.js: -------------------------------------------------------------------------------- 1 | export default () => ( 2 |
3 |

Third Page

4 |
5 | ) 6 | -------------------------------------------------------------------------------- /test/integration/page-config/pages/invalid/no-init.js: -------------------------------------------------------------------------------- 1 | // export let config 2 | 3 | export default () =>

hello world

4 | -------------------------------------------------------------------------------- /test/integration/plugin-mdx/pages/index.mdx: -------------------------------------------------------------------------------- 1 | ## Hello MDX 2 | 3 | Here's a simple mdx file!! 4 | 5 |

Have p tag!

6 | -------------------------------------------------------------------------------- /test/integration/prerender/pages/api/bad.js: -------------------------------------------------------------------------------- 1 | export default function handler(req, res) { 2 | throw new Error('lol') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/many-imports/with-css-1.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/many-imports/with-css-2.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/many-imports/with-css-3.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/many-modules/with-css.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/rewrites-client-resolving/pages/category/index.js: -------------------------------------------------------------------------------- 1 | export default () =>

categories

2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/dynamic-route-module/pages/[post]/index.module.scss: -------------------------------------------------------------------------------- 1 | .home { 2 | background: #f00; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.scss: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: 'red'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module/node_modules/example/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./index.module.scss') 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module/node_modules/example/index.module.scss: -------------------------------------------------------------------------------- 1 | .redText { 2 | color: 'red'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-global-reversed/styles/global1.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import-nested/node_modules/example/index.mjs: -------------------------------------------------------------------------------- 1 | export const message = 'Why hello there' 2 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/with-tailwindcss/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/pages/api/posts/[id].js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.json(query) 3 | } 4 | -------------------------------------------------------------------------------- /examples/blog-starter-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/blog-starter-typescript/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: ['tailwindcss', 'postcss-preset-env'], 3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-server-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-aws-amplify-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-chakra-ui-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-grommet/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": [["styled-components", { "ssr": true }]] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-jest/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-jest/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-next-css/style.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --some-color: red; 3 | } 4 | 5 | body { 6 | color: var(--some-color); 7 | } 8 | -------------------------------------------------------------------------------- /examples/with-next-sass/styles.scss: -------------------------------------------------------------------------------- 1 | $backgroundColor: #2ecc71; 2 | 3 | .app { 4 | background-color: $backgroundColor; 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-prefetching/pages/about.js: -------------------------------------------------------------------------------- 1 | export default function About() { 2 | return

This is the ABOUT page.

3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-md-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-react-relay-network-modern/.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api 2 | -------------------------------------------------------------------------------- /examples/with-redis/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/public/logo.png -------------------------------------------------------------------------------- /examples/with-redis/public/lstr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/public/lstr.png -------------------------------------------------------------------------------- /examples/with-sw-precache/README.md: -------------------------------------------------------------------------------- 1 | We recommend using https://github.com/vercel/next.js/tree/canary/examples/with-next-offline 2 | -------------------------------------------------------------------------------- /examples/with-typescript-eslint-jest/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-unsplash/components/Stats/Stats.module.css: -------------------------------------------------------------------------------- 1 | .stats_container { 2 | padding: 10px 0px; 3 | font-size: 12px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import.input.js: -------------------------------------------------------------------------------- 1 | import { withAmp } from 'next/amp' 2 | -------------------------------------------------------------------------------- /packages/next/client/dev/error-overlay/format-webpack-messages.d.ts: -------------------------------------------------------------------------------- 1 | export default function formatWebpackMessages(json: any): any 2 | -------------------------------------------------------------------------------- /packages/next/compiled/arg/package.json: -------------------------------------------------------------------------------- 1 | {"name":"arg","main":"index.js","author":"Josh Junon ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/async-sema/package.json: -------------------------------------------------------------------------------- 1 | {"name":"async-sema","main":"index.js","author":"Olli Vanhoja","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/comment-json/package.json: -------------------------------------------------------------------------------- 1 | {"name":"comment-json","main":"index.js","author":"kaelzhang","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/node-fetch/package.json: -------------------------------------------------------------------------------- 1 | {"name":"node-fetch","main":"index.js","author":"David Frank","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/head.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/next-server/lib/head' 2 | export { default } from './dist/next-server/lib/head' 3 | -------------------------------------------------------------------------------- /test/integration/api-catch-all/pages/api/users/[...slug].js: -------------------------------------------------------------------------------- 1 | export default function (req, res) { 2 | res.json(req.query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/cookies.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.status(200).send(req.cookies) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/redirect-301.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.redirect(301, '/login') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/user-error.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | throw new Error('User error') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/auto-export-serverless-error/pages/index.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | export default () => something.error 3 | -------------------------------------------------------------------------------- /test/integration/auto-export/pages/commonjs2.js: -------------------------------------------------------------------------------- 1 | const React = require('react') 2 | 3 | module.exports = () =>
test2
4 | -------------------------------------------------------------------------------- /test/integration/broken-webpack-plugin/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Test() { 2 | return

hello from index

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-amp/pages/amp.js: -------------------------------------------------------------------------------- 1 | export const config = { amp: true } 2 | export default () => 'hi' 3 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-error-static/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/chunking/pages/index.js: -------------------------------------------------------------------------------- 1 | const Page = () => { 2 | return
index
3 | } 4 | 5 | export default Page 6 | -------------------------------------------------------------------------------- /test/integration/config-resolve-alias/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index(props) { 2 | return
Index
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/config/components/hello-webpack-sass.scss: -------------------------------------------------------------------------------- 1 | $color: yellow; 2 | 3 | .helloWorldSass { 4 | color: $color; 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/conformance/pages/index.js: -------------------------------------------------------------------------------- 1 | const Page = () => { 2 | return
index
3 | } 4 | 5 | export default Page 6 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-7/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [["postcss-trolling", 5]] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/composes-external/pages/other.css: -------------------------------------------------------------------------------- 1 | .className { 2 | background: red; 3 | color: yellow; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/custom-configuration-arr/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/custom-configuration/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nested-global/styles/global1b.css: -------------------------------------------------------------------------------- 1 | .red-text { 2 | color: purple; 3 | font-weight: bolder; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/custom-server-types/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | experimental: { 3 | modern: true, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/dynamic-routing/pages/another.js: -------------------------------------------------------------------------------- 1 | export default function Another() { 2 | return 'hello from another!' 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/export-override-404/pages/404.js: -------------------------------------------------------------------------------- 1 | export default () =>

this is a 404 page override the default 404.html

2 | -------------------------------------------------------------------------------- /test/integration/gssp-redirect/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return

Index Page

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/prerender-fallback-aspath/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'experimental-serverless-trace', 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/process-env-stub/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | experimental: { 3 | pageEnv: true, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/shared-css-module/with-css-2.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/shared-css-module/with-css-shared.module.css: -------------------------------------------------------------------------------- 1 | .text { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/production/components/dynamic-css/shared-css-module/with-css.module.css: -------------------------------------------------------------------------------- 1 | .content { 2 | color: inherit; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/multi-global-reversed/styles/global2.scss: -------------------------------------------------------------------------------- 1 | $var: blue; 2 | .blue-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/valid-and-invalid-global/styles/global.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .red-text { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/serverless/pages/api/dynamic/[path]/index.js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.json(query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/src-dir-support/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | experimental: { 3 | modern: true, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/telemetry/next.config.webpack: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | webpack(config) { 3 | return config 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/trailing-slashes-rewrite/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return

index page

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/webpack-config-mainjs/pages/static.js: -------------------------------------------------------------------------------- 1 | export default function StaticPage() { 2 | return <>Hello World 3 | } 4 | -------------------------------------------------------------------------------- /examples/analyze-bundles/pages/contact.js: -------------------------------------------------------------------------------- 1 | export default function Contact() { 2 | return
This is the contact page.
3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-kontent/kontent-backup.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/cms-kontent/kontent-backup.zip -------------------------------------------------------------------------------- /examples/with-ant-design-pro-layout-less/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-atlaskit/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": [["styled-components", { "ssr": true }]] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-hls-js/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-hls-js/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-magic/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-magic/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-mobx-state-tree-typescript/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-msw/public/book-cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-msw/public/book-cover.jpg -------------------------------------------------------------------------------- /examples/with-prefetching/pages/contact.js: -------------------------------------------------------------------------------- 1 | export default function Contact() { 2 | return

This is the CONTACT page.

3 | } 4 | -------------------------------------------------------------------------------- /examples/with-react-native-web/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "with-react-native-web", 3 | "displayName": "with-react-native-web" 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-redis/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-redis/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-yarn-workspaces/packages/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo", 3 | "version": "1.0.0", 4 | "license": "ISC" 5 | } 6 | -------------------------------------------------------------------------------- /packages/next-codemod/.gitignore: -------------------------------------------------------------------------------- 1 | *.d.ts 2 | *.js 3 | *.js.map 4 | !transforms/__tests__/**/*.js 5 | !transforms/__testfixtures__/**/*.js -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/no-transform.input.js: -------------------------------------------------------------------------------- 1 | export default class extends React.Component {} -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/no-transform.output.js: -------------------------------------------------------------------------------- 1 | export default class extends React.Component {} -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-single.output.js: -------------------------------------------------------------------------------- 1 | import { useAmp } from 'next/amp'; 2 | -------------------------------------------------------------------------------- /packages/next/client/next.js: -------------------------------------------------------------------------------- 1 | import initNext, * as next from './' 2 | 3 | window.next = next 4 | 5 | initNext().catch(console.error) 6 | -------------------------------------------------------------------------------- /packages/next/dynamic.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/next-server/lib/dynamic' 2 | export { default } from './dist/next-server/lib/dynamic' 3 | -------------------------------------------------------------------------------- /test/integration/amphtml/pages/root-hmr.js: -------------------------------------------------------------------------------- 1 | export const config = { amp: true } 2 | 3 | export default () =>

I'm an AMP page!

4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/test-no-end.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | console.log('hi') 3 | return {} 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/basepath/pages/amp-hybrid.js: -------------------------------------------------------------------------------- 1 | export const config = { amp: 'hybrid' } 2 | 3 | export default () =>

Hello amp

4 | -------------------------------------------------------------------------------- /test/integration/build-output/fixtures/with-amp/pages/hybrid.js: -------------------------------------------------------------------------------- 1 | export const config = { amp: 'hybrid' } 2 | export default () => 'hi' 3 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/node_modules/node-sass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-sass", 3 | "version": "1.0.0" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/cli/duplicate-sass/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "node-sass": "*", 4 | "sass": "*" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/integration/cli/old-react-dom/node_modules/react-dom/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-dom", 3 | "version": "16.9.0" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/cli/old-react-dom/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react": "*", 4 | "react-dom": "*" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react": "*", 4 | "react-dom": "*" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/json.js: -------------------------------------------------------------------------------- 1 | import data from '../lib/data' 2 | 3 | export default () =>
{data.name}
4 | -------------------------------------------------------------------------------- /test/integration/client-navigation/pages/stateless.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export default () =>

My component!

4 | -------------------------------------------------------------------------------- /test/integration/config-empty/next.config.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | { 3 | experimental: { 4 | basePath: '/docs' 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/integration/config-promise-error/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index(props) { 2 | return
Index Page
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/config/pages/build-id.js: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return

{process.env.CONFIG_BUILD_ID}

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-2/.postcssrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [["postcss-trolling", null]] 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-func/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/custom-configuration-legacy/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nested-global/styles/global1.css: -------------------------------------------------------------------------------- 1 | @import './global1b.css'; 2 | 3 | .red-text { 4 | color: red; 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nested-global/styles/global2b.css: -------------------------------------------------------------------------------- 1 | .blue-text { 2 | color: orange; 3 | font-weight: bolder; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/url-global/styles/global2.css: -------------------------------------------------------------------------------- 1 | @import './global2b.css'; 2 | 3 | .blue-text { 4 | color: blue; 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/with-tailwindcss/styles/global.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /test/integration/duplicate-pages/pages/hello/index.js: -------------------------------------------------------------------------------- 1 | export default () => ( 2 | <> 3 |

Hi 👋... again

4 | 5 | ) 6 | -------------------------------------------------------------------------------- /test/integration/env-config/app/.env.test.local: -------------------------------------------------------------------------------- 1 | LOCAL_TEST_ENV_FILE_KEY=localtest 2 | ENV_FILE_TEST_LOCAL_OVERRIDEOVERRIDE_TEST=localtest -------------------------------------------------------------------------------- /test/integration/export-default-map/pages/v1.12/index.js: -------------------------------------------------------------------------------- 1 | export default function Index(props) { 2 | return
Hello 👋
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/future/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | future: { 3 | excludeDefaultMomentLocales: true, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/no-duplicate-compile-error/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Abc() { 2 | return
hello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/ondemand/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | onDemandEntries: { 3 | maxInactiveAge: 1000 * 5, 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/page-config/lib/data.js: -------------------------------------------------------------------------------- 1 | import { meta } from '../pages/blog/post' 2 | 3 | export default { 4 | post: meta, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/production/pages/api/[post]/index.js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.status(200).json(query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module-nested/node_modules/example/other2.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .other2 { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module-nested/node_modules/example/other3.scss: -------------------------------------------------------------------------------- 1 | $var: violet; 2 | .other3 { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module/node_modules/example/index.module.scss: -------------------------------------------------------------------------------- 1 | $var: red; 2 | .redText { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import-nested/node_modules/example/other.scss: -------------------------------------------------------------------------------- 1 | $var: blue; 2 | .other { 3 | color: $var; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/with-tailwindcss/styles/global.scss: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/pages/api/dynamic/[path]/index.js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.json(query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/serverless/pages/some-amp.js: -------------------------------------------------------------------------------- 1 | export default () => `Hi Im an AMP page!` 2 | export const config = { amp: 'hybrid' } 3 | -------------------------------------------------------------------------------- /test/integration/trailing-slashes/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // trailingSlash: boolean, 3 | // basePath: '/docs', 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/trailing-slashes/pages/404.js: -------------------------------------------------------------------------------- 1 | export default function NotFound() { 2 | return
404
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/typescript-paths/components/alias-to-d-ts.tsx: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return <>Not aliased to d.ts file 3 | } 4 | -------------------------------------------------------------------------------- /bench/readdir/create-fixtures.sh: -------------------------------------------------------------------------------- 1 | # Uses https://github.com/divmain/fuzzponent 2 | mkdir fixtures 3 | cd fixtures 4 | fuzzponent -d 2 -s 20 5 | -------------------------------------------------------------------------------- /examples/amp/pages/normal.js: -------------------------------------------------------------------------------- 1 | export default function NormalPage() { 2 | return

I'm just a normal old page, no AMP for me

3 | } 4 | -------------------------------------------------------------------------------- /examples/cms-wordpress/docs/new-post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/cms-wordpress/docs/new-post.png -------------------------------------------------------------------------------- /examples/custom-server-actionhero/dump.rdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/custom-server-actionhero/dump.rdb -------------------------------------------------------------------------------- /examples/with-electron-typescript/renderer/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-expo/pages/_document.js: -------------------------------------------------------------------------------- 1 | // @generated: @expo/next-adapter@2.1.5 2 | export { default } from '@expo/next-adapter/document' 3 | -------------------------------------------------------------------------------- /examples/with-filbert/public/filbert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-filbert/public/filbert.png -------------------------------------------------------------------------------- /examples/with-firebase/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-firebase/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-mongodb/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-mongodb/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-mux-video/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-mux-video/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-next-routes/readme.md: -------------------------------------------------------------------------------- 1 | Dynamic routes are now supported by default in Next.js: https://nextjs.org/docs/routing/dynamic-routes 2 | -------------------------------------------------------------------------------- /examples/with-prefetching/pages/features.js: -------------------------------------------------------------------------------- 1 | export default function Features() { 2 | return

This is the FEATURES page.

3 | } 4 | -------------------------------------------------------------------------------- /examples/with-sitemap/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-sitemap/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-stitches/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-stitches/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-styled-components/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": [["styled-components", { "ssr": true }]] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-tailwindcss-emotion/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["macros", "@emotion/babel-plugin"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-typescript-styled-components/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /examples/with-unsplash/docs/api-keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-unsplash/docs/api-keys.png -------------------------------------------------------------------------------- /examples/with-unsplash/docs/app-form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-unsplash/docs/app-form.png -------------------------------------------------------------------------------- /examples/with-unsplash/docs/app-terms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-unsplash/docs/app-terms.png -------------------------------------------------------------------------------- /examples/with-unsplash/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-unsplash/public/favicon.ico -------------------------------------------------------------------------------- /packages/next/compiled/cache-loader/package.json: -------------------------------------------------------------------------------- 1 | {"name":"cache-loader","main":"cjs.js","author":"Tobias Koppers @sokra","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/debug/package.json: -------------------------------------------------------------------------------- 1 | {"name":"debug","main":"index.js","author":"TJ Holowaychuk ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/file-loader/package.json: -------------------------------------------------------------------------------- 1 | {"name":"file-loader","main":"cjs.js","author":"Tobias Koppers @sokra","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/nanoid/package.json: -------------------------------------------------------------------------------- 1 | {"name":"nanoid","main":"index.js","author":"Andrey Sitnik ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/recast/package.json: -------------------------------------------------------------------------------- 1 | {"name":"recast","main":"main.js","author":"Ben Newman ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/send/package.json: -------------------------------------------------------------------------------- 1 | {"name":"send","main":"index.js","author":"TJ Holowaychuk ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/thread-loader/package.json: -------------------------------------------------------------------------------- 1 | {"name":"thread-loader","main":"cjs.js","author":"Tobias Koppers @sokra","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/README.md: -------------------------------------------------------------------------------- 1 | # `@next/react-dev-overlay` 2 | 3 | A development-only overlay for developing React applications. 4 | -------------------------------------------------------------------------------- /packages/react-dev-overlay/src/internal/components/Toast/index.tsx: -------------------------------------------------------------------------------- 1 | export { styles } from './styles' 2 | export { Toast } from './Toast' 3 | -------------------------------------------------------------------------------- /test/.stats-app/pages/index.js: -------------------------------------------------------------------------------- 1 | const Page = () => 'Hello world 👋' 2 | 3 | Page.getInitialProps = () => ({}) 4 | 5 | export default Page 6 | -------------------------------------------------------------------------------- /test/integration/amp-export-validation/pages/first.js: -------------------------------------------------------------------------------- 1 | export const config = { amp: true } 2 | 3 | export default () =>

Hello AMP!

4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/[post]/[comment].js: -------------------------------------------------------------------------------- 1 | export default ({ query }, res) => { 2 | res.status(200).json(query) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/error.js: -------------------------------------------------------------------------------- 1 | export default (req, res) => { 2 | res.status(500).json({ error: 'Server error!' }) 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/api/user-error-async.js: -------------------------------------------------------------------------------- 1 | export default async (req, res) => { 2 | throw new Error('User error') 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react": "*", 4 | "react-dom": "*" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/browsers-new/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browserslist": [ 3 | "last 1 chrome version" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-features/fixtures/module-import-exports/pages/colors.module.css: -------------------------------------------------------------------------------- 1 | :export { 2 | w1: #ffffff; 3 | b1: #000000; 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-1/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-2/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-3/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-4/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-5/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-6/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-7/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/bad-custom-configuration-arr-8/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/composes-ordering/pages/other.module.css: -------------------------------------------------------------------------------- 1 | .root { 2 | composes: colorRed from './common.module.css'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/invalid-module-document/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
Hello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nested-global/styles/global2.css: -------------------------------------------------------------------------------- 1 | @import './global2b.css'; 2 | 3 | .blue-text { 4 | color: blue; 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/nm-module-nested/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/npm-import-nested/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/transition-cleanup/pages/other.module.css: -------------------------------------------------------------------------------- 1 | .root { 2 | composes: colorRed from './common.module.css'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/css-fixtures/transition-reload/pages/other.module.css: -------------------------------------------------------------------------------- 1 | .root { 2 | composes: colorRed from './common.module.css'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/custom-page-extension/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'server', 3 | pageExtensions: ['page.js'], 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/dynamic-optional-routing/pages/api/post/[[...slug]].js: -------------------------------------------------------------------------------- 1 | export default (req, res) => res.json({ slug: req.query.slug }) 2 | -------------------------------------------------------------------------------- /test/integration/export-default-map/pages/v1.12/docs.js: -------------------------------------------------------------------------------- 1 | export default function Docs(props) { 2 | return
Hello again 👋
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/gssp-redirect/pages/another.js: -------------------------------------------------------------------------------- 1 | export default function Another() { 2 | return

another Page

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/handle-non-page-in-pages/pages/invalid.tsx: -------------------------------------------------------------------------------- 1 | const Invalid = (): JSX.Element =>

Hello world

2 | export { Invalid } 3 | -------------------------------------------------------------------------------- /test/integration/index-index/pages/index/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return
index > index
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/index-index/pages/index/user.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return
index > user
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/missing-document-component-error/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | return

Index page

3 | } 4 | -------------------------------------------------------------------------------- /test/integration/page-config/pages/blog/post.js: -------------------------------------------------------------------------------- 1 | export const meta = { 2 | hello: 'world', 3 | } 4 | 5 | export default () =>

hi

6 | -------------------------------------------------------------------------------- /test/integration/preload-viewport/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | generateBuildId() { 3 | return 'test-build' 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/invalid-module-document/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | return
Hello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/nm-module-nested/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/scss-fixtures/npm-import-nested/node_modules/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "main": "index" 4 | } 5 | -------------------------------------------------------------------------------- /test/integration/serverless-trace/pages/some-amp.js: -------------------------------------------------------------------------------- 1 | export default () => `Hi Im an AMP page!` 2 | export const config = { amp: 'hybrid' } 3 | -------------------------------------------------------------------------------- /test/integration/telemetry/pages/__ytho__/lel.js: -------------------------------------------------------------------------------- 1 | export default () => { 2 | return 'oops, I happen to look like a React component' 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/trailing-slashes-rewrite/pages/catch-all/[...slug].js: -------------------------------------------------------------------------------- 1 | export default function Page() { 2 | return

catch-all

3 | } 4 | -------------------------------------------------------------------------------- /examples/amp-first/public/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/amp-first/public/static/favicon.ico -------------------------------------------------------------------------------- /examples/blog-starter-typescript/types/author.ts: -------------------------------------------------------------------------------- 1 | type Author = { 2 | name: string 3 | picture: string 4 | } 5 | 6 | export default Author 7 | -------------------------------------------------------------------------------- /examples/cms-wordpress/docs/wp-graphiql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/cms-wordpress/docs/wp-graphiql.png -------------------------------------------------------------------------------- /examples/with-custom-babel-config/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": ["@babel/plugin-proposal-do-expressions"] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-reactstrap/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-reactstrap/public/favicon.ico -------------------------------------------------------------------------------- /examples/with-redux/pages/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../components/page' 2 | 3 | export default function Index() { 4 | return 5 | } 6 | -------------------------------------------------------------------------------- /examples/with-sitemap/.env: -------------------------------------------------------------------------------- 1 | # Used to add the domain to sitemap.xml, replace it with a real domain in production 2 | WEBSITE_URL=http://localhost:3000 -------------------------------------------------------------------------------- /examples/with-styled-components-rtl/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"], 3 | "plugins": [["styled-components", { "ssr": true }]] 4 | } 5 | -------------------------------------------------------------------------------- /examples/with-three-js/public/glb/parrot.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-three-js/public/glb/parrot.glb -------------------------------------------------------------------------------- /examples/with-three-js/public/glb/stork.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidthesloth92/next.js/canary/examples/with-three-js/public/glb/stork.glb -------------------------------------------------------------------------------- /examples/with-xstate/components/index.js: -------------------------------------------------------------------------------- 1 | import Counter from './Counter' 2 | import Toggle from './Toggle' 3 | 4 | export { Counter, Toggle } 5 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-renamed.input.js: -------------------------------------------------------------------------------- 1 | import { withAmp as apples } from 'next/amp' 2 | -------------------------------------------------------------------------------- /packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-single.input.js: -------------------------------------------------------------------------------- 1 | import { withAmp, useAmp } from 'next/amp' 2 | -------------------------------------------------------------------------------- /packages/next/compiled/cookie/package.json: -------------------------------------------------------------------------------- 1 | {"name":"cookie","main":"index.js","author":"Roman Shtylman ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/json5/package.json: -------------------------------------------------------------------------------- 1 | {"name":"json5","main":"index.js","author":"Aseem Kishore ","license":"MIT"} 2 | -------------------------------------------------------------------------------- /packages/next/compiled/lru-cache/package.json: -------------------------------------------------------------------------------- 1 | {"name":"lru-cache","main":"index.js","author":"Isaac Z. Schlueter ","license":"ISC"} 2 | --------------------------------------------------------------------------------