├── 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 () =>
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 () =>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 () =>normal old page
2 | -------------------------------------------------------------------------------- /test/integration/api-support/pages/index.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 () =>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="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 () =>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 () =>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 World 1
2 | -------------------------------------------------------------------------------- /test/integration/client-navigation/components/world.jsx: -------------------------------------------------------------------------------- 1 | export const World = () =>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 () =>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 () =>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 () =>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 | returnI 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 () =>Hello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/old-react/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | returnHello
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 () =>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 | returnHello 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 | ///Hello from a
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/build-indicator/pages/b.js: -------------------------------------------------------------------------------- 1 | export default function Page() { 2 | returnHello 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 | returnHello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/cli/experimental-react/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Home() { 2 | returnHello
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 | returnI am a list of posts
2 | -------------------------------------------------------------------------------- /test/integration/firebase-grpc/pages/page-1.js: -------------------------------------------------------------------------------- 1 | import 'firebase/firestore' 2 | 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 | ///Hello
3 | } 4 | -------------------------------------------------------------------------------- /test/integration/client-404/pages/missing.js: -------------------------------------------------------------------------------- 1 | export default function Missing() { 2 | returnpoof
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 () =>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 | returnAbout Page
4 |Third Page
4 |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 | ///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 | returnthis is a 404 page override the default 404.html
2 | -------------------------------------------------------------------------------- /test/integration/gssp-redirect/pages/index.js: -------------------------------------------------------------------------------- 1 | export default function Index() { 2 | returnIndex 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 | returnindex 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 | returnI'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 () =>{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 |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 | ///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 | returnanother 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 | returnIndex 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 | returncatch-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