├── data.sqlite
├── packages
├── next
│ ├── data.sqlite
│ ├── 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
│ ├── image.js
│ ├── lib
│ │ ├── fatal-error.ts
│ │ └── compile-error.ts
│ ├── router.js
│ ├── amp.js
│ ├── babel.js
│ ├── constants.d.ts
│ ├── document.js
│ ├── head.js
│ ├── compiled
│ │ ├── babel
│ │ │ ├── core.js
│ │ │ ├── traverse.js
│ │ │ ├── code-frame.js
│ │ │ ├── generator.js
│ │ │ ├── preset-env.js
│ │ │ ├── eslint-parser.js
│ │ │ ├── preset-react.js
│ │ │ ├── core-lib-config.js
│ │ │ ├── plugin-syntax-jsx.js
│ │ │ ├── core-lib-plugin-pass.js
│ │ │ ├── preset-typescript.js
│ │ │ ├── plugin-syntax-bigint.js
│ │ │ ├── core-lib-normalize-file.js
│ │ │ ├── core-lib-normalize-opts.js
│ │ │ ├── plugin-transform-define.js
│ │ │ ├── plugin-transform-runtime.js
│ │ │ ├── core-lib-block-hoist-plugin.js
│ │ │ ├── plugin-syntax-dynamic-import.js
│ │ │ └── plugin-proposal-class-properties.js
│ │ ├── ignore-loader
│ │ │ └── package.json
│ │ ├── semver
│ │ │ └── package.json
│ │ ├── webpack
│ │ │ ├── package.js
│ │ │ ├── sources.js
│ │ │ ├── webpack-lib.js
│ │ │ ├── GraphHelpers.js
│ │ │ ├── NormalModule.js
│ │ │ ├── NodeTargetPlugin.js
│ │ │ ├── ModuleFilenameHelpers.js
│ │ │ ├── NodeEnvironmentPlugin.js
│ │ │ ├── BasicEvaluatedExpression.js
│ │ │ └── package.json
│ │ ├── async-retry
│ │ │ └── package.json
│ │ ├── compression
│ │ │ └── package.json
│ │ ├── devalue
│ │ │ └── package.json
│ │ ├── neo-async
│ │ │ └── package.json
│ │ ├── find-cache-dir
│ │ │ └── package.json
│ │ ├── jsonwebtoken
│ │ │ └── package.json
│ │ ├── arg
│ │ │ └── package.json
│ │ ├── async-sema
│ │ │ └── package.json
│ │ ├── comment-json
│ │ │ └── package.json
│ │ ├── sass-loader
│ │ │ └── package.json
│ │ └── css-loader
│ │ │ └── package.json
│ ├── dynamic.js
│ ├── bundles
│ │ ├── babel
│ │ │ └── packages
│ │ │ │ ├── core.js
│ │ │ │ ├── code-frame.js
│ │ │ │ ├── generator.js
│ │ │ │ ├── preset-env.js
│ │ │ │ ├── traverse.js
│ │ │ │ ├── preset-react.js
│ │ │ │ ├── core-lib-config.js
│ │ │ │ ├── eslint-parser.js
│ │ │ │ ├── plugin-syntax-jsx.js
│ │ │ │ ├── preset-typescript.js
│ │ │ │ ├── core-lib-plugin-pass.js
│ │ │ │ ├── plugin-syntax-bigint.js
│ │ │ │ ├── core-lib-normalize-file.js
│ │ │ │ ├── core-lib-normalize-opts.js
│ │ │ │ ├── plugin-transform-define.js
│ │ │ │ ├── plugin-transform-runtime.js
│ │ │ │ ├── core-lib-block-hoist-plugin.js
│ │ │ │ └── plugin-syntax-dynamic-import.js
│ │ └── webpack
│ │ │ └── packages
│ │ │ ├── package.js
│ │ │ ├── sources.js
│ │ │ ├── webpack-lib.js
│ │ │ ├── GraphHelpers.js
│ │ │ ├── NormalModule.js
│ │ │ ├── NodeTargetPlugin.js
│ │ │ ├── ModuleFilenameHelpers.js
│ │ │ ├── NodeEnvironmentPlugin.js
│ │ │ └── BasicEvaluatedExpression.js
│ ├── config.js
│ ├── constants.js
│ ├── experimental-script.js
│ ├── app.d.ts
│ ├── link.d.ts
│ ├── client.d.ts
│ ├── error.d.ts
│ ├── image.d.ts
│ ├── next-server
│ │ └── lib
│ │ │ └── router
│ │ │ └── utils
│ │ │ └── resolve-rewrites-noop.ts
│ ├── router.d.ts
│ ├── document.d.ts
│ ├── telemetry
│ │ └── events
│ │ │ └── index.ts
│ ├── head.d.ts
│ └── dynamic.d.ts
├── next-env
│ ├── .gitignore
│ └── README.md
├── react-dev-overlay
│ ├── .gitignore
│ └── src
│ │ └── internal
│ │ └── components
│ │ ├── Overlay
│ │ └── index.tsx
│ │ ├── Terminal
│ │ └── index.tsx
│ │ └── CodeFrame
│ │ └── index.tsx
├── 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
│ │ ├── 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
├── examples
├── with-reasonml
│ ├── index.js
│ └── .babelrc
├── with-firebase-hosting
│ ├── public
│ │ └── .gitignore
│ ├── src
│ │ └── next.config.js
│ └── .firebaserc
├── with-storybook
│ ├── public
│ │ └── serve.json
│ ├── .babelrc
│ └── components
│ │ └── index.js
├── with-mongodb-mongoose
│ └── .env.local.example
├── with-deta-base
│ ├── .env.local.example
│ └── public
│ │ └── favicon.ico
├── with-mongodb
│ ├── .env.local.example
│ └── public
│ │ └── favicon.ico
├── with-jest
│ ├── .babelrc
│ └── public
│ │ └── favicon.ico
├── with-msw
│ ├── .env.development
│ ├── .env.production
│ └── public
│ │ └── book-cover.jpg
├── with-stomp
│ └── .env
├── cms-ghost
│ ├── .env.local.example
│ ├── styles
│ │ └── index.css
│ └── next.config.js
├── with-facebook-pixel
│ └── .env.local.example
├── with-flow
│ ├── .eslintrc.json
│ ├── with-flow.gif
│ ├── .babelrc
│ └── .flowconfig
├── with-google-analytics
│ └── .env.local.example
├── with-plausible
│ └── .env.local.example
├── with-react-jss
│ └── .babelrc
├── with-realm-web
│ └── .env
├── with-redux-wrapper
│ └── .npmrc
├── with-yarn-workspaces
│ └── packages
│ │ ├── foo
│ │ ├── index.js
│ │ └── package.json
│ │ └── bar
│ │ └── index.js
├── 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
├── custom-server-typescript
│ ├── .babelrc
│ ├── pages
│ │ ├── a.tsx
│ │ └── b.tsx
│ └── next-env.d.ts
├── with-custom-reverse-proxy
│ └── .babelrc
├── with-eslint
│ ├── .eslintrc
│ └── next.config.js
├── with-google-tag-manager
│ └── .env.local.example
├── with-knex
│ ├── .env.local.example
│ └── public
│ │ └── favicon.ico
├── with-react-md
│ └── components
│ │ └── Layout
│ │ └── index.js
├── with-typescript-graphql
│ ├── .babelrc
│ └── lib
│ │ ├── partial.graphql
│ │ └── user.graphqls
├── blog-starter-typescript
│ ├── @types
│ │ └── remark-html.d.ts
│ ├── postcss.config.js
│ └── next-env.d.ts
├── with-linaria
│ ├── .babelrc
│ └── next.config.js
├── 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-zones
│ ├── blog
│ │ └── next.config.js
│ ├── package.json
│ ├── docs
│ │ ├── import-blog.jpg
│ │ └── import-home.jpg
│ └── home
│ │ └── .env
├── 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
├── cms-prepr
│ ├── jsconfig.json
│ └── next.config.js
├── custom-server-koa
│ └── pages
│ │ ├── a.js
│ │ └── b.js
├── with-filbert
│ ├── .babelrc
│ └── public
│ │ └── filbert.png
├── with-lingui
│ └── .babelrc
├── with-react-md-typescript
│ ├── components
│ │ └── Layout
│ │ │ └── index.ts
│ └── next-env.d.ts
├── cms-cosmic
│ ├── .env.local.example
│ └── styles
│ │ └── index.css
├── cms-graphcms
│ ├── jsconfig.json
│ └── next.config.js
├── 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
├── with-vercel-fetch
│ └── fetch
│ │ ├── browser.js
│ │ └── package.json
├── 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
├── 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
├── blog-starter
│ └── postcss.config.js
├── blog
│ ├── public
│ │ ├── favicon.ico
│ │ └── images
│ │ │ ├── photo.jpg
│ │ │ └── photo2.jpg
│ └── pages
│ │ └── posts
│ │ └── index.md
├── cms-kontent
│ ├── .env.local.example
│ └── kontent-backup.zip
├── cms-takeshape
│ └── .env.local.example
├── hello-world
│ └── pages
│ │ ├── about.js
│ │ └── day
│ │ └── index.js
├── svg-components
│ └── .babelrc
├── with-absolute-imports
│ └── jsconfig.json
├── with-mysql
│ └── next-env.d.ts
├── with-polyfills
│ └── pages
│ │ └── index.js
├── with-react-ga
│ └── pages
│ │ └── about.js
├── with-strict-csp
│ └── pages
│ │ └── index.js
├── with-web-worker
│ └── next.config.js
├── with-webassembly
│ ├── src
│ │ └── add.rs
│ └── add.wasm
├── with-babel-macros
│ └── .babelrc
├── with-carbon-components
│ └── styles
│ │ └── custom-theme.scss
├── with-docker
│ ├── .dockerignore
│ └── public
│ │ └── favicon.ico
├── with-expo
│ └── public
│ │ └── demo.png
├── 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-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-compiled-css
│ └── .babelrc
├── with-emotion-vanilla
│ └── .babelrc
├── with-expo-typescript
│ └── next-env.d.ts
├── with-gsap
│ └── public
│ │ └── favicon.ico
├── with-ionic-typescript
│ └── next-env.d.ts
├── with-paste-typescript
│ └── next-env.d.ts
├── with-prefetching
│ └── pages
│ │ ├── index.js
│ │ ├── about.js
│ │ └── contact.js
├── with-react-with-styles
│ └── defaultTheme.js
├── with-service-worker
│ └── pages
│ │ └── index.js
├── with-stripe-typescript
│ └── next-env.d.ts
├── cms-wordpress
│ └── docs
│ │ └── new-post.png
├── image-component
│ ├── next.config.js
│ └── public
│ │ └── vercel.png
├── with-aws-amplify-typescript
│ └── next-env.d.ts
├── with-chakra-ui-typescript
│ └── next-env.d.ts
├── with-clerk
│ └── public
│ │ └── favicon.ico
├── with-grommet
│ └── .babelrc
├── with-hls-js
│ └── public
│ │ └── favicon.ico
├── with-magic
│ └── public
│ │ └── favicon.ico
├── with-neo4j
│ └── public
│ │ └── favicon.ico
├── with-react-relay-network-modern
│ └── .env
├── with-redis
│ └── public
│ │ └── favicon.ico
├── with-sitemap
│ └── public
│ │ └── favicon.ico
├── with-sw-precache
│ └── README.md
├── with-atlaskit
│ └── .babelrc
├── with-firebase
│ └── public
│ │ └── favicon.ico
├── with-graphql-hooks
│ └── components
│ │ └── app.js
├── with-mdbreact
│ └── public
│ │ └── favicon.ico
├── with-mobx-state-tree-typescript
│ └── next-env.d.ts
├── with-react-native-web
│ └── app.json
├── with-redux-toolkit-typescript
│ └── next-env.d.ts
├── with-stitches
│ └── public
│ │ └── favicon.ico
└── with-storybook-styled-jsx-scss
│ └── next-env.d.ts
├── 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
│ │ │ │ ├── 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
│ ├── 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
│ ├── 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
│ │ └── external
│ │ │ └── page.html
│ ├── getserversideprops
│ │ ├── world.txt
│ │ └── pages
│ │ │ └── normal.js
│ ├── image-optimizer
│ │ ├── public
│ │ │ └── text.txt
│ │ └── next.config.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
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── old-react
│ │ │ ├── .gitignore
│ │ │ ├── node_modules
│ │ │ │ └── react
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── package.json
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── duplicate-sass
│ │ │ ├── .gitignore
│ │ │ ├── node_modules
│ │ │ │ ├── sass
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── package.json
│ │ │ │ └── node-sass
│ │ │ │ │ └── index.js
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── experimental-react
│ │ │ ├── .gitignore
│ │ │ ├── node_modules
│ │ │ │ └── react
│ │ │ │ │ └── index.js
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── 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
│ ├── 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
│ │ └── components
│ │ │ └── hello.js
│ ├── test-file.txt
│ ├── with-electron
│ │ └── app
│ │ │ └── .gitignore
│ ├── 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
│ ├── 500-page
│ │ ├── next.config.js
│ │ └── pages
│ │ │ └── index.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
│ ├── serverless-trace
│ │ ├── public
│ │ │ └── hello.txt
│ │ ├── pages
│ │ │ ├── abc.js
│ │ │ └── api
│ │ │ │ ├── hello.js
│ │ │ │ └── posts
│ │ │ │ └── [id].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
│ │ │ ├── four.js
│ │ │ └── three.js
│ ├── src-dir-support
│ │ ├── next.config.js
│ │ └── src
│ │ │ └── pages
│ │ │ └── another.js
│ ├── static-404
│ │ └── pages
│ │ │ └── index.js
│ ├── client-navigation-a11y
│ │ └── next.config.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
│ ├── polyfilling-minimal
│ │ ├── next.config.js
│ │ └── pages
│ │ │ └── index.js
│ ├── api-support
│ │ └── pages
│ │ │ ├── user.js
│ │ │ ├── index.js
│ │ │ ├── api-conflict.js
│ │ │ └── api
│ │ │ ├── bool.js
│ │ │ ├── undefined.js
│ │ │ ├── redirect-error.js
│ │ │ ├── redirect-null.js
│ │ │ ├── parse.js
│ │ │ ├── query.js
│ │ │ ├── redirect-307.js
│ │ │ ├── cookies.js
│ │ │ ├── redirect-301.js
│ │ │ └── user-error.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
│ │ └── 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
│ │ ├── npm-import-nested
│ │ │ ├── styles
│ │ │ │ └── global.css
│ │ │ └── node_modules
│ │ │ │ └── example
│ │ │ │ ├── other.css
│ │ │ │ └── index.mjs
│ │ ├── 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
│ │ ├── transition-react
│ │ │ └── pages
│ │ │ │ └── other.module.css
│ │ ├── bad-custom-configuration-arr-4
│ │ │ └── .postcssrc.json
│ │ ├── bad-custom-configuration-arr-5
│ │ │ └── .postcssrc.json
│ │ ├── composes-ordering
│ │ │ └── pages
│ │ │ │ └── common.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
│ │ ├── multi-global-reversed
│ │ │ └── styles
│ │ │ │ ├── global1.css
│ │ │ │ └── global2.css
│ │ ├── transition-cleanup
│ │ │ └── pages
│ │ │ │ └── common.module.css
│ │ ├── transition-reload
│ │ │ └── pages
│ │ │ │ └── common.module.css
│ │ ├── valid-and-invalid-global
│ │ │ └── styles
│ │ │ │ └── global.css
│ │ ├── bad-custom-configuration-arr-3
│ │ │ └── .postcssrc.json
│ │ ├── 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
│ │ ├── next-issue-12343
│ │ │ ├── pages
│ │ │ │ └── homepage.module.css
│ │ │ └── components
│ │ │ │ └── button.module.css
│ │ ├── nm-module-nested
│ │ │ └── node_modules
│ │ │ │ └── example
│ │ │ │ ├── other2.css
│ │ │ │ ├── index.mjs
│ │ │ │ └── other3.css
│ │ ├── 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
│ │ ├── with-tailwindcss
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── bad-custom-configuration-arr-7
│ │ │ └── .postcssrc.json
│ │ ├── bad-custom-configuration
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── composes-external
│ │ │ └── pages
│ │ │ │ └── other.css
│ │ ├── csp-style-src-nonce
│ │ │ └── pages
│ │ │ │ └── other.module.css
│ │ ├── custom-configuration-arr
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ ├── custom-configuration
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ └── nested-global
│ │ │ └── styles
│ │ │ └── global1b.css
│ ├── dynamic-optional-routing
│ │ └── next.config.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
│ ├── re-export-all-exports-from-page-disallowed
│ │ ├── world.txt
│ │ └── component
│ │ │ ├── child.js
│ │ │ └── test.js
│ ├── telemetry
│ │ ├── pages
│ │ │ ├── index.js
│ │ │ ├── hello.test.skip
│ │ │ └── _app_withoutreportwebvitals.empty
│ │ ├── .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
│ ├── errors-on-output-to-static
│ │ └── pages
│ │ │ └── index.js
│ ├── eslint
│ │ ├── first-time-setup
│ │ │ ├── .eslintrc
│ │ │ └── next.config.js
│ │ └── custom-config
│ │ │ └── next.config.js
│ ├── image-component
│ │ ├── basic
│ │ │ └── public
│ │ │ │ └── styles.css
│ │ └── base-path
│ │ │ └── next.config.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
│ ├── 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
│ ├── config-experimental-warning
│ │ └── pages
│ │ │ └── index.js
│ ├── development-runtime-config
│ │ └── pages
│ │ │ └── index.js
│ ├── empty-object-getInitialProps
│ │ └── pages
│ │ │ └── static.js
│ ├── externals
│ │ └── node_modules
│ │ │ └── esm-package
│ │ │ └── correct.js
│ ├── non-standard-node-env-warning
│ │ └── pages
│ │ │ └── index.js
│ ├── preload-viewport
│ │ └── pages
│ │ │ ├── first.js
│ │ │ ├── another.js
│ │ │ └── dynamic
│ │ │ └── [hello].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
│ │ ├── 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
│ │ ├── invalid-module
│ │ │ └── node_modules
│ │ │ │ └── example
│ │ │ │ ├── index.mjs
│ │ │ │ ├── index.js
│ │ │ │ └── index.module.scss
│ │ ├── multi-page
│ │ │ └── styles
│ │ │ │ ├── global1.scss
│ │ │ │ └── global2.scss
│ │ ├── nm-module
│ │ │ └── node_modules
│ │ │ │ └── example
│ │ │ │ ├── index.mjs
│ │ │ │ └── package.json
│ │ ├── 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
│ │ ├── 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
│ │ └── 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
│ ├── font-optimization
│ │ └── fixtures
│ │ │ ├── with-google
│ │ │ └── next.config.js
│ │ │ └── with-typekit
│ │ │ └── next.config.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
│ │ └── next.config.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
│ ├── no-override-next-props
│ │ └── pages
│ │ │ └── index.js
│ ├── production-config
│ │ └── styles.css
│ ├── ssr-prepass
│ │ └── next.config.js
│ ├── amp-export-validation
│ │ └── next.config.js
│ ├── app-document
│ │ └── next.config.js
│ ├── app-functional
│ │ └── next.config.js
│ ├── data-fetching-errors
│ │ └── pages
│ │ │ └── index.js
│ ├── production-build-dir
│ │ └── build
│ │ │ └── pages
│ │ │ └── index.js
│ ├── undefined-webpack-config
│ │ ├── next.config.js
│ │ └── 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
│ │ │ ├── browsers-old
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ │ └── inline-comments
│ │ │ └── pages
│ │ │ └── index.js
│ ├── custom-page-extension
│ │ └── pages
│ │ │ └── blog
│ │ │ └── index.page.js
│ ├── document-file-dependencies
│ │ └── css
│ │ │ ├── 404.module.css
│ │ │ ├── error.module.css
│ │ │ ├── index.module.css
│ │ │ └── global.css
│ ├── env-config
│ │ └── app
│ │ │ ├── package.json
│ │ │ └── pages
│ │ │ └── global.js
│ ├── export-progress-status-message
│ │ └── pages
│ │ │ └── index.js
│ ├── export-subfolders-serverless
│ │ ├── pages
│ │ │ ├── about.js
│ │ │ ├── index.js
│ │ │ └── posts
│ │ │ │ ├── single.js
│ │ │ │ └── index.js
│ │ └── next.config.js
│ ├── getinitialprops
│ │ └── pages
│ │ │ └── normal.js
│ ├── gssp-redirect-base-path
│ │ └── 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
│ ├── script-loader
│ │ └── next.config.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
│ │ │ ├── with-app
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ │ ├── with-error
│ │ │ └── pages
│ │ │ │ └── index.js
│ │ │ └── with-error-static
│ │ │ └── pages
│ │ │ └── index.js
│ ├── duplicate-pages
│ │ └── pages
│ │ │ └── hello.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
│ ├── build-stats
│ │ ├── next.config.js
│ │ └── pages
│ │ │ └── index.js
│ ├── gssp-redirect
│ │ └── pages
│ │ │ └── 404.js
│ ├── next-dynamic-css
│ │ └── next.config.js
│ ├── plugin-mdx
│ │ └── pages
│ │ │ └── index.mdx
│ ├── webpack-require-hook
│ │ └── pages
│ │ │ └── hello.js
│ ├── 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
│ ├── i18n-support-custom-error
│ │ └── pages
│ │ │ └── index.js
│ ├── prerender-fallback-aspath
│ │ └── next.config.js
│ ├── process-env-stub
│ │ └── next.config.js
│ ├── production-browser-sourcemaps
│ │ └── next.config.js
│ ├── required-server-files-ssr-404
│ │ └── pages
│ │ │ └── 404.js
│ ├── ssg-data-404
│ │ └── pages
│ │ │ └── index.js
│ ├── trailing-slashes-rewrite
│ │ └── pages
│ │ │ └── index.js
│ ├── typescript-external-dir
│ │ └── shared
│ │ │ └── libs
│ │ │ └── inc.ts
│ └── webpack-config-mainjs
│ │ └── pages
│ │ └── static.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
├── package-managers
│ └── pnpm
│ │ └── app
│ │ └── pages
│ │ └── index.js
└── .stats-app
│ └── pages
│ ├── css.module.css
│ └── nextjs.png
├── bench
├── readdir
│ └── .gitignore
├── recursive-delete
│ └── .gitignore
└── pages
│ └── stateless.js
├── test-file.txt
├── .npmrc
├── .prettierrc.json
├── .github
└── actions
│ └── next-stats-action
│ └── .gitignore
├── SECURITY.md
└── vercel.json
/data.sqlite:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next/data.sqlite:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/examples/with-storybook/public/serve.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/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/image-optimizer/public/text.txt:
--------------------------------------------------------------------------------
1 | hi
--------------------------------------------------------------------------------
/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/integration/with-electron/app/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/typescript-config/next.config.ts:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/with-deta-base/.env.local.example:
--------------------------------------------------------------------------------
1 | DETA_PROJECT_KEY=
2 |
--------------------------------------------------------------------------------
/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/500-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-msw/.env.development:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_API_MOCKING=enabled
2 |
--------------------------------------------------------------------------------
/examples/with-msw/.env.production:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_API_MOCKING=enabled
2 |
--------------------------------------------------------------------------------
/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/src-dir-support/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
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/cms-ghost/.env.local.example:
--------------------------------------------------------------------------------
1 | GHOST_API_URL=
2 | GHOST_API_KEY=
3 |
--------------------------------------------------------------------------------
/examples/with-facebook-pixel/.env.local.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_FACEBOOK_PIXEL_ID=
--------------------------------------------------------------------------------
/examples/with-flow/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "parser": "babel-eslint"
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-google-analytics/.env.local.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_GA_ID=123
2 |
--------------------------------------------------------------------------------
/examples/with-plausible/.env.local.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_DOMAIN=example.com
2 |
--------------------------------------------------------------------------------
/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-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/image.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/client/image')
2 |
--------------------------------------------------------------------------------
/packages/next/lib/fatal-error.ts:
--------------------------------------------------------------------------------
1 | export class FatalError extends 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/client-navigation-a11y/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
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-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 |
--------------------------------------------------------------------------------
/packages/next/lib/compile-error.ts:
--------------------------------------------------------------------------------
1 | export class CompileError extends Error {}
2 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/user.js:
--------------------------------------------------------------------------------
1 | export default () =>
User
2 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/lib/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Vercel"
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/pages/no-default-export.js:
--------------------------------------------------------------------------------
1 | export default {}
2 |
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/public/hello:
--------------------------------------------------------------------------------
1 | oops this is doesn't work
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/public/normal.txt:
--------------------------------------------------------------------------------
1 | no conflict here
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-6/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/another/[id].js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/custom-server/pages/no-query.js:
--------------------------------------------------------------------------------
1 | export default () => 'test'
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-optional-routing/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-route-rename/pages/[pid].js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/invalid-config-values/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/invalid-custom-routes/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/ondemand/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => Hello
2 |
--------------------------------------------------------------------------------
/test/integration/production/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "cool-version"
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/re-export-all-exports-from-page-disallowed/world.txt:
--------------------------------------------------------------------------------
1 | world
2 |
--------------------------------------------------------------------------------
/test/integration/serverless/pages/abc.js:
--------------------------------------------------------------------------------
1 | export default () => test
2 |
--------------------------------------------------------------------------------
/test/integration/telemetry/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello World'
2 |
--------------------------------------------------------------------------------
/examples/cms-datocms/.env.local.example:
--------------------------------------------------------------------------------
1 | DATOCMS_API_TOKEN=
2 | DATOCMS_PREVIEW_SECRET=
--------------------------------------------------------------------------------
/examples/custom-server-typescript/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-custom-reverse-proxy/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-eslint/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next",
3 | "root": true
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-google-tag-manager/.env.local.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID=
--------------------------------------------------------------------------------
/examples/with-knex/.env.local.example:
--------------------------------------------------------------------------------
1 | PG_URI=postgres://admin:pass@localhost:5432/mydb
--------------------------------------------------------------------------------
/examples/with-react-md/components/Layout/index.js:
--------------------------------------------------------------------------------
1 | export { default } from './Layout'
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-graphql/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').core()
2 |
--------------------------------------------------------------------------------
/packages/next/dynamic.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/next-server/lib/dynamic')
2 |
--------------------------------------------------------------------------------
/test/integration/404-page-app/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/404-page-ssg/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/404-page/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/500-page/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/auto-export-query-error/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/build-warnings/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Build
2 |
--------------------------------------------------------------------------------
/test/integration/cli/duplicate-sass/node_modules/sass/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/public/blog/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "hello": "world"
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/dist-dir/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/errors-on-output-to-public/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/errors-on-output-to-static/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/eslint/first-time-setup/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next"
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/image-component/basic/public/styles.css:
--------------------------------------------------------------------------------
1 | p {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/invalid-server-options/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'test'
2 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-paths/lib/a/api.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from a'
2 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-paths/lib/b/api.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from b'
2 |
--------------------------------------------------------------------------------
/test/integration/jsconfig/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => hello world
2 |
--------------------------------------------------------------------------------
/test/integration/non-next-dist-exclude/app/node_modules/notnext/.gitignore:
--------------------------------------------------------------------------------
1 | !dist
2 |
--------------------------------------------------------------------------------
/test/integration/nullish-config/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello World'
2 |
--------------------------------------------------------------------------------
/test/integration/numeric-sep/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => `hello ${1_000}`
2 |
--------------------------------------------------------------------------------
/test/integration/page-extensions/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello World'
2 |
--------------------------------------------------------------------------------
/test/integration/polyfilling-minimal/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => hi
2 |
--------------------------------------------------------------------------------
/test/integration/serverless-runtime-configs/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/serverless-trace/pages/abc.js:
--------------------------------------------------------------------------------
1 | export default () => test
2 |
--------------------------------------------------------------------------------
/test/integration/serverless/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => Hello!
2 |
--------------------------------------------------------------------------------
/test/integration/size-limit/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => About
2 |
--------------------------------------------------------------------------------
/test/integration/telemetry/.babelrc.default:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/telemetry/pages/hello.test.skip:
--------------------------------------------------------------------------------
1 | export default () => 'Hello Test'
2 |
--------------------------------------------------------------------------------
/test/integration/typescript-paths/lib/a/api.ts:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from a'
2 |
--------------------------------------------------------------------------------
/test/integration/typescript-paths/lib/b/api.ts:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from b'
2 |
--------------------------------------------------------------------------------
/test/integration/typescript/extension-order/js-first.js:
--------------------------------------------------------------------------------
1 | export const value = 'OK'
2 |
--------------------------------------------------------------------------------
/test/unit/fixtures/config-long-js/test.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { foo: 'bar' }
2 |
--------------------------------------------------------------------------------
/examples/blog-starter-typescript/@types/remark-html.d.ts:
--------------------------------------------------------------------------------
1 | declare module 'remark-html'
2 |
--------------------------------------------------------------------------------
/examples/with-linaria/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel", "linaria/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-intl/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-stencil/packages/test-component/src/components/my-component/my-component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/with-stencil/packages/test-component/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './components'
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-typescript-types/types/index.ts:
--------------------------------------------------------------------------------
1 | export type { TypeA } from './package-1'
2 |
--------------------------------------------------------------------------------
/examples/with-userbase/.env.local.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_USERBASE_APP_ID=
--------------------------------------------------------------------------------
/examples/with-zones/blog/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | basePath: '/blog',
3 | }
4 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').core()
2 |
--------------------------------------------------------------------------------
/packages/next/client/polyfills.js:
--------------------------------------------------------------------------------
1 | import 'next/dist/build/polyfills/polyfill-nomodule'
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/traverse.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').traverse()
2 |
--------------------------------------------------------------------------------
/packages/next/config.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/next-server/lib/runtime-config')
2 |
--------------------------------------------------------------------------------
/packages/next/constants.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/next-server/lib/constants')
2 |
--------------------------------------------------------------------------------
/test/integration/amphtml-ssg/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => normal old page
2 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => API - support
2 |
--------------------------------------------------------------------------------
/test/integration/babel/test/namespace-exported-react.js:
--------------------------------------------------------------------------------
1 | export * as React from 'react'
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/components/hello1.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/components/hello2.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 2
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/components/hello3.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/components/hello4.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 2
2 |
--------------------------------------------------------------------------------
/test/integration/basic/components/hello1.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/basic/components/hello2.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 2
2 |
--------------------------------------------------------------------------------
/test/integration/basic/components/hello3.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/basic/components/hello4.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 2
2 |
--------------------------------------------------------------------------------
/test/integration/bundle-size-profiling/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello World'
2 |
--------------------------------------------------------------------------------
/test/integration/cli/duplicate-sass/node_modules/node-sass/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/compression/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => OK
2 |
--------------------------------------------------------------------------------
/test/integration/config-empty/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/config-experimental-warning/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/config/node_modules/module-only-package/modern.js:
--------------------------------------------------------------------------------
1 | export default 'OK'
2 |
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/public/another/index:
--------------------------------------------------------------------------------
1 | oops this is doesn't work
--------------------------------------------------------------------------------
/test/integration/development-runtime-config/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'test'
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-routing/pages/dash/[hello-world].js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/empty-object-getInitialProps/pages/static.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/externals/node_modules/esm-package/correct.js:
--------------------------------------------------------------------------------
1 | module.exports = 'World'
2 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-paths/lib/b/b-only.js:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from only b'
2 |
--------------------------------------------------------------------------------
/test/integration/non-standard-node-env-warning/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/preload-viewport/pages/first.js:
--------------------------------------------------------------------------------
1 | export default () => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/rewrites-client-resolving/pages/404.js:
--------------------------------------------------------------------------------
1 | export default () => '404 page'
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/basic-module-include-paths/styles/_vars.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 |
--------------------------------------------------------------------------------
/test/integration/typescript-hmr/pages/hello.tsx:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/typescript-paths/components/alias-to-d-ts.d.ts:
--------------------------------------------------------------------------------
1 | export default () => any
2 |
--------------------------------------------------------------------------------
/test/integration/typescript/components/hello.module.sass:
--------------------------------------------------------------------------------
1 | .hello
2 | content: 'hello'
3 |
--------------------------------------------------------------------------------
/test/integration/typescript/extension-order/js-first.ts:
--------------------------------------------------------------------------------
1 | export const value = 'WRONG FILE'
2 |
--------------------------------------------------------------------------------
/test/package-managers/pnpm/app/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/examples/with-cookie-auth-fauna/.env.local.example:
--------------------------------------------------------------------------------
1 | FAUNA_SERVER_KEY=""
--------------------------------------------------------------------------------
/examples/with-cssed/lib/theme.js:
--------------------------------------------------------------------------------
1 | export const dark = '#333'
2 | export const light = '#ddd'
3 |
--------------------------------------------------------------------------------
/examples/with-mocha/.mocharc.yml:
--------------------------------------------------------------------------------
1 | file:
2 | - mocha.setup.js
3 | require: '@babel/register'
4 |
--------------------------------------------------------------------------------
/examples/with-next-css/component/hello-world.module.css:
--------------------------------------------------------------------------------
1 | .hello {
2 | font-size: 25px;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-storybook/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": []
4 | }
5 |
--------------------------------------------------------------------------------
/packages/next/build/polyfills/object.assign/implementation.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.assign
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/code-frame.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').codeFrame()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/generator.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').generator()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/preset-env.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetEnv()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/ignore-loader/package.json:
--------------------------------------------------------------------------------
1 | {"name":"ignore-loader","main":"index.js"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/semver/package.json:
--------------------------------------------------------------------------------
1 | {"name":"semver","main":"index.js","license":"ISC"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/package.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').package
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/sources.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').sources
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/webpack-lib.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').webpack
2 |
--------------------------------------------------------------------------------
/test/integration/404-page-custom-error/pages/_error.js:
--------------------------------------------------------------------------------
1 | export { default } from 'next/error'
2 |
--------------------------------------------------------------------------------
/test/integration/404-page-custom-error/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/amphtml/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => hello
2 |
--------------------------------------------------------------------------------
/test/integration/api-catch-all/pages/api/users/index.js:
--------------------------------------------------------------------------------
1 | export { default } from './[...slug]'
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/pages/docs/another.js:
--------------------------------------------------------------------------------
1 | export default () => hello from another
2 |
--------------------------------------------------------------------------------
/test/integration/cli/old-react/node_modules/react/index.js:
--------------------------------------------------------------------------------
1 | module.exports = { Suspense: true }
2 |
--------------------------------------------------------------------------------
/test/integration/client-404/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => OK
2 |
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/public/another/conflict:
--------------------------------------------------------------------------------
1 | oops this is doesn't work
--------------------------------------------------------------------------------
/test/integration/css-fixtures/npm-import-nested/styles/global.css:
--------------------------------------------------------------------------------
1 | @import '~example/test.css';
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/npm-import/styles/global.css:
--------------------------------------------------------------------------------
1 | @import '~nprogress/nprogress.css';
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes-catchall/public/static/data.json:
--------------------------------------------------------------------------------
1 | { "field": "some data..." }
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/multi-rewrites.js:
--------------------------------------------------------------------------------
1 | export default () => 'multi-rewrites'
2 |
--------------------------------------------------------------------------------
/test/integration/custom-server-types/pages/index.tsx:
--------------------------------------------------------------------------------
1 | export default () => hello world
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-optional-routing-root-fallback/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-optional-routing-root-static-paths/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-require/locales/en.js:
--------------------------------------------------------------------------------
1 | ;(function en(props) {
2 | // no-nop
3 | })()
4 |
--------------------------------------------------------------------------------
/test/integration/dynamic-require/locales/ru.js:
--------------------------------------------------------------------------------
1 | ;(function en(props) {
2 | // no-nop
3 | })()
4 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => I am a home page
2 |
--------------------------------------------------------------------------------
/test/integration/filesystempublicroutes/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Index
2 |
--------------------------------------------------------------------------------
/test/integration/font-optimization/fixtures/with-google/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/font-optimization/fixtures/with-typekit/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/test/integration/legacy-pkg-gently/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { target: 'serverless' }
2 |
--------------------------------------------------------------------------------
/test/integration/next-dynamic/components/four.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | return '4'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/preload-viewport/pages/another.js:
--------------------------------------------------------------------------------
1 | export default () => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/production/components/hello1.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/production/components/hello2.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 2
2 |
--------------------------------------------------------------------------------
/test/integration/route-load-cancel-css/pages/page1.module.css:
--------------------------------------------------------------------------------
1 | .abc {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/serverless-trace/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => Hello!
2 |
--------------------------------------------------------------------------------
/test/integration/src-dir-support-double-dir/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => PAGES
2 |
--------------------------------------------------------------------------------
/test/integration/trailing-slash-dist/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from index'
2 |
--------------------------------------------------------------------------------
/test/integration/typescript-paths/lib/b/b-only.ts:
--------------------------------------------------------------------------------
1 | export default () => 'Hello from only b'
2 |
--------------------------------------------------------------------------------
/test/integration/typescript/components/hello.module.css:
--------------------------------------------------------------------------------
1 | .hello {
2 | content: 'hello';
3 | }
4 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/js-ts-config/next.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "__test__ext": "json"
3 | }
4 |
--------------------------------------------------------------------------------
/bench/pages/stateless.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | export default () => My component!
3 |
--------------------------------------------------------------------------------
/examples/cms-prepr/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "."
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/examples/custom-server-koa/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-koa/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-filbert/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["macros"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-lingui/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["macros"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-react-md-typescript/components/Layout/index.ts:
--------------------------------------------------------------------------------
1 | export { default } from './Layout'
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/.eslintignore:
--------------------------------------------------------------------------------
1 | **/node_modules/*
2 | **/out/*
3 | **/.next/*
4 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/test/__mocks__/fileMock.js:
--------------------------------------------------------------------------------
1 | module.exports = 'test-file-stub'
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-types/types/package-1.ts:
--------------------------------------------------------------------------------
1 | export type TypeA = {
2 | name: string
3 | }
4 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/name-default-component/1-starts-with-number.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/name-default-component/existing-name-ignore.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/name-default-component/special-ch@racter.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-renamed.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/code-frame.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').codeFrame()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/generator.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').generator()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/preset-env.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetEnv()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/traverse.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').traverse()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/package.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').package
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/sources.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').sources
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/eslint-parser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').eslintParser()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/preset-react.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetReact()
2 |
--------------------------------------------------------------------------------
/packages/next/experimental-script.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/client/experimental-script')
2 |
--------------------------------------------------------------------------------
/test/integration/404-page/pages/404.js:
--------------------------------------------------------------------------------
1 | const page = () => 'custom 404 page'
2 | export default page
3 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api-conflict.js:
--------------------------------------------------------------------------------
1 | export default () => API - conflict
2 |
--------------------------------------------------------------------------------
/test/integration/app-aspath/pages/index.js:
--------------------------------------------------------------------------------
1 | export default (props) => JSON.stringify(props, null, 2)
2 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/components/hello.jsx:
--------------------------------------------------------------------------------
1 | export const Hello = () => Hello
2 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/components/hello1.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World 1
2 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/components/world.jsx:
--------------------------------------------------------------------------------
1 | export const World = () => World
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/dev-module/pages/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/hmr-module/pages/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-global/styles/global.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-global/styles/global1.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-global/styles/global2.css:
--------------------------------------------------------------------------------
1 | .blue-text {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-module/pages/red.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-page/styles/global1.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-page/styles/global2.css:
--------------------------------------------------------------------------------
1 | .blue-text {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/npm-import-bad/styles/global.css:
--------------------------------------------------------------------------------
1 | @import 'nprogress/nprogress.css';
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/prod-module/pages/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/single-global/styles/global.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/with-styled-jsx/styles/global.css:
--------------------------------------------------------------------------------
1 | .my-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/docs/v2/more/now-for-github.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi there'
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/redirect-override.js:
--------------------------------------------------------------------------------
1 | export default () => 'got to the page'
2 |
--------------------------------------------------------------------------------
/test/integration/dynamic-routing/pages/catchall-dash/[...hello-world].js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => I am an about page
2 |
--------------------------------------------------------------------------------
/test/integration/export/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => Welcome to dynamic imports.
2 |
--------------------------------------------------------------------------------
/test/integration/handle-non-page-in-pages/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { target: 'serverless' }
2 |
--------------------------------------------------------------------------------
/test/integration/next-dynamic/components/three.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | return '3'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/no-override-next-props/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello there 👋
2 |
--------------------------------------------------------------------------------
/test/integration/preload-viewport/pages/dynamic/[hello].js:
--------------------------------------------------------------------------------
1 | export default () => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/production-config/styles.css:
--------------------------------------------------------------------------------
1 | p {
2 | font-size: 40px;
3 | color: red;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/re-export-all-exports-from-page-disallowed/component/child.js:
--------------------------------------------------------------------------------
1 | export const a = 5
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/npm-import-bad/styles/global.scss:
--------------------------------------------------------------------------------
1 | @import 'nprogress/nprogress.css';
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/npm-import-nested/styles/global.scss:
--------------------------------------------------------------------------------
1 | @import '~example/test.scss';
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/npm-import/styles/global.scss:
--------------------------------------------------------------------------------
1 | @import '~nprogress/nprogress.css';
2 |
--------------------------------------------------------------------------------
/test/integration/src-dir-support-double-dir/src/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => SRC
2 |
--------------------------------------------------------------------------------
/test/integration/src-dir-support/src/pages/another.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from another!'
2 |
--------------------------------------------------------------------------------
/test/integration/ssr-prepass/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/typescript/components/hello.module.scss:
--------------------------------------------------------------------------------
1 | .hello {
2 | content: 'hello';
3 | }
4 |
--------------------------------------------------------------------------------
/examples/cms-cosmic/.env.local.example:
--------------------------------------------------------------------------------
1 | COSMIC_BUCKET_SLUG=
2 | COSMIC_READ_KEY=
3 | COSMIC_PREVIEW_SECRET=
--------------------------------------------------------------------------------
/examples/cms-cosmic/styles/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/examples/cms-datocms/styles/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/examples/cms-ghost/styles/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/examples/cms-graphcms/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "."
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/examples/custom-server-express/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-express/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-fastify/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-fastify/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-hapi/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-hapi/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-polka/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-polka/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-firebase-hosting/src/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | distDir: '../.next',
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-reason-relay/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["relay"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-relay-modern/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["relay"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "semi": false,
3 | "singleQuote": true
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-unsplash/components/Social/Social.module.css:
--------------------------------------------------------------------------------
1 | .social_container {
2 | height: 60px;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-vercel-fetch/fetch/browser.js:
--------------------------------------------------------------------------------
1 | import fetch from 'unfetch'
2 |
3 | export default fetch
4 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/name-default-component/function-component-ignore.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next/app.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/pages/_app'
2 | export { default } from './dist/pages/_app'
3 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/preset-react.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetReact()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/webpack-lib.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').webpack
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/async-retry/package.json:
--------------------------------------------------------------------------------
1 | {"name":"async-retry","main":"index.js","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core-lib-config.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibConfig()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-syntax-jsx.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxJsx()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/compression/package.json:
--------------------------------------------------------------------------------
1 | {"name":"compression","main":"index.js","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/devalue/package.json:
--------------------------------------------------------------------------------
1 | {"name":"devalue","main":"devalue.umd.js","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/neo-async/package.json:
--------------------------------------------------------------------------------
1 | {"name":"neo-async","main":"async.js","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/GraphHelpers.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').GraphHelpers
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/NormalModule.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NormalModule
2 |
--------------------------------------------------------------------------------
/packages/react-dev-overlay/src/internal/components/Overlay/index.tsx:
--------------------------------------------------------------------------------
1 | export { Overlay } from './Overlay'
2 |
--------------------------------------------------------------------------------
/test/integration/amp-export-validation/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | // exportPathMap
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/bool.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.json(true)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/app-document/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | crossOrigin: 'anonymous',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/app-functional/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | crossOrigin: 'anonymous',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/basic/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => About Page
2 |
--------------------------------------------------------------------------------
/test/integration/cli/experimental-react/node_modules/react/index.js:
--------------------------------------------------------------------------------
1 | module.exports = { Suspense: true }
2 |
--------------------------------------------------------------------------------
/test/integration/cli/old-react-dom/node_modules/react-dom/index.js:
--------------------------------------------------------------------------------
1 | module.exports = { Suspense: true }
2 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/pages/index.js:
--------------------------------------------------------------------------------
1 | import CDM from '../lib/cdm'
2 | export default CDM
3 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/pages/with-cdm.js:
--------------------------------------------------------------------------------
1 | import CDM from '../lib/cdm'
2 | export default CDM
3 |
--------------------------------------------------------------------------------
/test/integration/config/components/hello-webpack-css.css:
--------------------------------------------------------------------------------
1 | .helloWorld {
2 | font-size: 100px;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/basic-module/pages/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-global-module/node_modules/example/index.js:
--------------------------------------------------------------------------------
1 | require('./index.css')
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-global-module/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | import './index.css'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-module/pages/blue.module.css:
--------------------------------------------------------------------------------
1 | .blueText {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/single-global-src/styles/global.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/transition-react/pages/other.module.css:
--------------------------------------------------------------------------------
1 | .root {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/custom-server/pages/asset.js:
--------------------------------------------------------------------------------
1 | export default () => asset page
2 |
--------------------------------------------------------------------------------
/test/integration/custom-server/pages/dashboard/index.js:
--------------------------------------------------------------------------------
1 | export default () => made it to dashboard
2 |
--------------------------------------------------------------------------------
/test/integration/data-fetching-errors/pages/index.js:
--------------------------------------------------------------------------------
1 | const Page = () => 'hi'
2 | export default Page
3 |
--------------------------------------------------------------------------------
/test/integration/eslint/custom-config/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { experimental: { eslint: true } }
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders/pages/posts/index.js:
--------------------------------------------------------------------------------
1 | export default () => I am a list of posts
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders/pages/posts/single.js:
--------------------------------------------------------------------------------
1 | export default () => I am a single post
2 |
--------------------------------------------------------------------------------
/test/integration/prerender/pages/normal.js:
--------------------------------------------------------------------------------
1 | export default () => a normal page
2 |
--------------------------------------------------------------------------------
/test/integration/production-build-dir/build/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/no-css.js:
--------------------------------------------------------------------------------
1 | export default () => Without CSS
2 |
--------------------------------------------------------------------------------
/test/integration/re-export-all-exports-from-page-disallowed/component/test.js:
--------------------------------------------------------------------------------
1 | export * from './child'
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-global/styles/global.scss:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/src-dir-support-double-dir/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { target: 'serverless' }
2 |
--------------------------------------------------------------------------------
/test/integration/src-dir-support-double-dir/src/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => PAGES DIR
2 |
--------------------------------------------------------------------------------
/test/integration/telemetry/.babelrc.preset:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel", "@babel/preset-flow"]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/trailing-slash-dist/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | distDir: '.next/',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/typescript-hmr/pages/type-error-recover.tsx:
--------------------------------------------------------------------------------
1 | export default () => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/undefined-webpack-config/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | webpack() {},
3 | }
4 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "github": {
3 | "silent": true,
4 | "autoJobCancelation": true
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/examples/basic-export/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/cms-strapi/.env.local.example:
--------------------------------------------------------------------------------
1 | STRAPI_PREVIEW_SECRET=
2 | NEXT_PUBLIC_STRAPI_API_URL=http://localhost:1337
--------------------------------------------------------------------------------
/examples/custom-server-actionhero/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-actionhero/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-typescript/pages/a.tsx:
--------------------------------------------------------------------------------
1 | export default function A() {
2 | return a
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-typescript/pages/b.tsx:
--------------------------------------------------------------------------------
1 | export default function B() {
2 | return b
3 | }
4 |
--------------------------------------------------------------------------------
/examples/using-preact/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-app-layout/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return test
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-semantic-ui/.nowignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .next
3 | /*.*
4 | !package.json
5 | !next.config.js
6 |
--------------------------------------------------------------------------------
/examples/with-sentry-simple/README.md:
--------------------------------------------------------------------------------
1 | This example has been moved to [examples/with-sentry](../with-sentry).
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-graphql/lib/partial.graphql:
--------------------------------------------------------------------------------
1 | fragment Partial on User {
2 | id
3 | name
4 | }
5 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/name-default-component/function-expression-ignore.output.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core-lib-config.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibConfig()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/eslint-parser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').eslintParser()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/GraphHelpers.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').GraphHelpers
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/NormalModule.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NormalModule
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core-lib-plugin-pass.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibPluginPass()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/preset-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetTypescript()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/NodeTargetPlugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NodeTargetPlugin
2 |
--------------------------------------------------------------------------------
/packages/next/link.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/client/link'
2 | export { default } from './dist/client/link'
3 |
--------------------------------------------------------------------------------
/packages/react-dev-overlay/src/internal/components/Terminal/index.tsx:
--------------------------------------------------------------------------------
1 | export { Terminal } from './Terminal'
2 |
--------------------------------------------------------------------------------
/test/integration/auto-export-serverless/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/basepath/pages/other-page.js:
--------------------------------------------------------------------------------
1 | export default () => Hello Other
2 |
--------------------------------------------------------------------------------
/test/integration/basic/components/hello-chunkfilename.js:
--------------------------------------------------------------------------------
1 | export default () => test chunkfilename
2 |
--------------------------------------------------------------------------------
/test/integration/config/node_modules/css-framework/framework.css:
--------------------------------------------------------------------------------
1 | .frameworkClass {
2 | background: blue
3 | }
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => `oops this is doesn't work`
2 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/module-import-global/pages/styles.module.css:
--------------------------------------------------------------------------------
1 | @import './styles.css';
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-4/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [5]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-5/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": null
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/composes-ordering/pages/common.module.css:
--------------------------------------------------------------------------------
1 | .colorRed {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/import-global-from-module/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export default 'hello'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-global-with-app/styles/global.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-module-document/styles.module.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-global-reversed/styles/global1.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/multi-global-reversed/styles/global2.css:
--------------------------------------------------------------------------------
1 | .blue-text {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/transition-cleanup/pages/common.module.css:
--------------------------------------------------------------------------------
1 | .colorRed {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/transition-reload/pages/common.module.css:
--------------------------------------------------------------------------------
1 | .colorRed {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/valid-and-invalid-global/styles/global.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/custom-page-extension/pages/blog/index.page.js:
--------------------------------------------------------------------------------
1 | export default () => Blog - CPE
2 |
--------------------------------------------------------------------------------
/test/integration/document-file-dependencies/css/404.module.css:
--------------------------------------------------------------------------------
1 | .notFound {
2 | color: rgb(0, 255, 0);
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/document-file-dependencies/css/error.module.css:
--------------------------------------------------------------------------------
1 | .error {
2 | color: rgb(255, 0, 0);
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/document-file-dependencies/css/index.module.css:
--------------------------------------------------------------------------------
1 | .index {
2 | color: rgb(0, 0, 255);
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/env-config/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "env-config",
3 | "dependencies": {}
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/eslint/first-time-setup/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { experimental: { eslint: true } }
2 |
--------------------------------------------------------------------------------
/test/integration/export-intent/fixtures/no-export/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello Export
2 |
--------------------------------------------------------------------------------
/test/integration/export-progress-status-message/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => I am a home page
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders-serverless/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => I am an about page
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders-serverless/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => I am a home page
2 |
--------------------------------------------------------------------------------
/test/integration/export/pages/api/data.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.send('Hello World')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/getinitialprops/pages/normal.js:
--------------------------------------------------------------------------------
1 | export default () => a normal page
2 |
--------------------------------------------------------------------------------
/test/integration/gssp-redirect-base-path/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | basePath: '/docs',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/image-component/base-path/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | basePath: '/docs',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/image-optimizer/next.config.js:
--------------------------------------------------------------------------------
1 | // prettier-ignore
2 | module.exports = { /* replaceme */ }
3 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-empty/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Abc() {
2 | return
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/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => About Page
2 |
--------------------------------------------------------------------------------
/test/integration/production/pages/amp.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 | export const config = { amp: true }
3 |
--------------------------------------------------------------------------------
/test/integration/route-indexes/pages/api/sub/[id].js:
--------------------------------------------------------------------------------
1 | export default (req, res) => res.end('hi from sub id')
2 |
--------------------------------------------------------------------------------
/test/integration/route-indexes/pages/index.js:
--------------------------------------------------------------------------------
1 | const page = () => 'hello from index'
2 | export default page
3 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.js:
--------------------------------------------------------------------------------
1 | require('./index.scss')
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | import './index.scss'
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-global-with-app/styles/global.scss:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-module-document/styles.module.scss:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/typescript-only-remove-type-imports/pages/normal.tsx:
--------------------------------------------------------------------------------
1 | export default () => 'A normal one'
2 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/js-ts-config/next.config.jsx:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | __test__ext: 'jsx',
3 | }
4 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/js-ts-config/next.config.tsx:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | __test__ext: 'tsx',
3 | }
4 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/valid-target/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/isolated/_resolvedata/without-function/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | customConfig: true,
3 | }
4 |
--------------------------------------------------------------------------------
/examples/analyze-bundles/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/basic-export/pages/about2.js:
--------------------------------------------------------------------------------
1 | export default function About2() {
2 | return About 2
3 | }
4 |
--------------------------------------------------------------------------------
/examples/basic-export/pages/day/index.js:
--------------------------------------------------------------------------------
1 | export default function Day() {
2 | return Hello Day
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blog-starter/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: ['tailwindcss', 'autoprefixer'],
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blog/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/blog/public/favicon.ico
--------------------------------------------------------------------------------
/examples/cms-kontent/.env.local.example:
--------------------------------------------------------------------------------
1 | KONTENT_PROJECT_ID=
2 | KONTENT_PREVIEW_SECRET=
3 | KONTENT_PREVIEW_API_KEY=
--------------------------------------------------------------------------------
/examples/cms-takeshape/.env.local.example:
--------------------------------------------------------------------------------
1 | TAKESHAPE_API_KEY=
2 | TAKESHAPE_PROJECT_ID=
3 | TAKESHAPE_PREVIEW_SECRET=
--------------------------------------------------------------------------------
/examples/hello-world/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function AboutPage() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/svg-components/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["inline-react-svg"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-absolute-imports/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "."
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-cssed/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["babel-plugin-macros"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-eslint/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | experimental: {
3 | eslint: true,
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-flow/with-flow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-flow/with-flow.gif
--------------------------------------------------------------------------------
/examples/with-mysql/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-polyfills/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello World
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-ga/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-reason-relay/.env:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api
2 |
--------------------------------------------------------------------------------
/examples/with-relay-modern/.env:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api
2 |
--------------------------------------------------------------------------------
/examples/with-strict-csp/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello World
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-vercel-fetch/fetch/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browser": "./browser.js",
3 | "main": "./server.js"
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-web-worker/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | future: {
3 | webpack5: true,
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-webassembly/src/add.rs:
--------------------------------------------------------------------------------
1 | #[no_mangle]
2 | pub extern "C" fn add_one(x: i32) -> i32 {
3 | x + 1
4 | }
--------------------------------------------------------------------------------
/examples/with-zones/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "with-zones",
3 | "private": true,
4 | "license": "MIT"
5 | }
6 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/plugin-syntax-jsx.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxJsx()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/preset-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').presetTypescript()
2 |
--------------------------------------------------------------------------------
/packages/next/client.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/client/index'
2 | export { default } from './dist/client/index'
3 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-syntax-bigint.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxBigint()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/find-cache-dir/package.json:
--------------------------------------------------------------------------------
1 | {"name":"find-cache-dir","main":"index.js","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/error.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/pages/_error'
2 | export { default } from './dist/pages/_error'
3 |
--------------------------------------------------------------------------------
/packages/next/image.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/client/image'
2 | export { default } from './dist/client/image'
3 |
--------------------------------------------------------------------------------
/packages/next/next-server/lib/router/utils/resolve-rewrites-noop.ts:
--------------------------------------------------------------------------------
1 | export default function resolveRewrites() {}
2 |
--------------------------------------------------------------------------------
/packages/next/router.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/client/router'
2 | export { default } from './dist/client/router'
3 |
--------------------------------------------------------------------------------
/packages/react-dev-overlay/src/internal/components/CodeFrame/index.tsx:
--------------------------------------------------------------------------------
1 | export { CodeFrame } from './CodeFrame'
2 |
--------------------------------------------------------------------------------
/test/.stats-app/pages/css.module.css:
--------------------------------------------------------------------------------
1 | .helloWorld {
2 | color: green;
3 | background: url('nextjs.png');
4 | }
5 |
--------------------------------------------------------------------------------
/test/.stats-app/pages/nextjs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/test/.stats-app/pages/nextjs.png
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/undefined.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.json(undefined)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/auto-export-serverless-error/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/babel-custom/fixtures/targets-browsers/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/babel-custom/fixtures/targets-string/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello World
2 |
--------------------------------------------------------------------------------
/test/integration/basepath/components/hello-chunkfilename.js:
--------------------------------------------------------------------------------
1 | export default () => test chunkfilename
2 |
--------------------------------------------------------------------------------
/test/integration/basic/pages/process-env.js:
--------------------------------------------------------------------------------
1 | export default () => {process.env.NODE_ENV}
2 |
--------------------------------------------------------------------------------
/test/integration/cli/experimental-react-dom/node_modules/react-dom/index.js:
--------------------------------------------------------------------------------
1 | module.exports = { Suspense: true }
2 |
--------------------------------------------------------------------------------
/test/integration/cli/old-react-dom/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/cli/old-react/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/module-import-global-invalid/pages/styles.css:
--------------------------------------------------------------------------------
1 | a {
2 | all: initial;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/module-import-global/pages/styles.css:
--------------------------------------------------------------------------------
1 | a .foo {
2 | all: initial;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-3/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [[5, null]]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/catch-all-module/pages/[...post]/55css.module.css:
--------------------------------------------------------------------------------
1 | .home {
2 | color: green;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/global-and-module-ordering/styles/global.css:
--------------------------------------------------------------------------------
1 | .textGlobal {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/hydrate-without-deps/pages/common.module.css:
--------------------------------------------------------------------------------
1 | .colorRed {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/import-global-from-module/node_modules/example/index.js:
--------------------------------------------------------------------------------
1 | module.exports = 'hello'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-module/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export * from './index.module.css'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/next-issue-12343/pages/homepage.module.css:
--------------------------------------------------------------------------------
1 | .button {
2 | background: lime;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module-nested/node_modules/example/other2.css:
--------------------------------------------------------------------------------
1 | .other2 {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export const message = 'Why hello there'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module/node_modules/example/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/npm-import-nested/node_modules/example/other.css:
--------------------------------------------------------------------------------
1 | .other {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/unused/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/env-config/app/pages/global.js:
--------------------------------------------------------------------------------
1 | export default () => {process.env.NEXT_PUBLIC_TEST_DEST}
2 |
--------------------------------------------------------------------------------
/test/integration/export-default-map-serverless/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/export-intent/fixtures/custom-export/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello Export
2 |
--------------------------------------------------------------------------------
/test/integration/export-intent/fixtures/custom-out/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello Export
2 |
--------------------------------------------------------------------------------
/test/integration/export-intent/fixtures/default-export/pages/index.js:
--------------------------------------------------------------------------------
1 | export default () => Hello Export
2 |
--------------------------------------------------------------------------------
/test/integration/export-serverless/components/hello.js:
--------------------------------------------------------------------------------
1 | export default () => Welcome to dynamic imports.
2 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders-serverless/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'serverless',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders-serverless/pages/posts/single.js:
--------------------------------------------------------------------------------
1 | export default () => I am a single post
2 |
--------------------------------------------------------------------------------
/test/integration/getserversideprops/pages/normal.js:
--------------------------------------------------------------------------------
1 | export default () => a normal page
2 |
--------------------------------------------------------------------------------
/test/integration/handle-non-page-in-pages/pages/valid.tsx:
--------------------------------------------------------------------------------
1 | export default (): JSX.Element => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/invalid-href/pages/[post].js:
--------------------------------------------------------------------------------
1 | export default function Page() {
2 | return 'hi from post'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/invalid-page-automatic-static-optimization/pages/also-invalid.js:
--------------------------------------------------------------------------------
1 | export default 'just a string'
2 |
--------------------------------------------------------------------------------
/test/integration/invalid-page-automatic-static-optimization/pages/valid.js:
--------------------------------------------------------------------------------
1 | export default () => Hello world
2 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-baseurl/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "."
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/jsconfig-paths/node_modules/mypackage/myfile.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | hello: 'world',
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/nested/with-css-2.module.css:
--------------------------------------------------------------------------------
1 | .text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/logo/logo.module.css:
--------------------------------------------------------------------------------
1 | .logo {
2 | background-image: url(dark.svg);
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/route-index/pages/index/index.js:
--------------------------------------------------------------------------------
1 | const page = () => 'hello from index'
2 | export default page
3 |
--------------------------------------------------------------------------------
/test/integration/route-indexes/pages/api/sub/index.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => res.end('hi from sub index')
2 |
--------------------------------------------------------------------------------
/test/integration/route-indexes/pages/nested-index/index/index.js:
--------------------------------------------------------------------------------
1 | export default () => 'hello from nested index'
2 |
--------------------------------------------------------------------------------
/test/integration/route-load-cancel-css/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { target: 'experimental-serverless-trace' }
2 |
--------------------------------------------------------------------------------
/test/integration/script-loader/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | experimental: { scriptLoader: true },
3 | }
4 |
--------------------------------------------------------------------------------
/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/pages/posts/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | type: posts
3 | title: Posts
4 | date: 2021-03-18
5 | ---
6 |
7 | # Posts
8 |
--------------------------------------------------------------------------------
/examples/cms-prepr/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | images: {
3 | domains: ['b-cdn.net'],
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/hello-world/pages/day/index.js:
--------------------------------------------------------------------------------
1 | export default function DayPage() {
2 | return Hello Day
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-babel-macros/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["babel-plugin-macros"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-carbon-components/styles/custom-theme.scss:
--------------------------------------------------------------------------------
1 | @import '~carbon-components/scss/globals/scss/styles.scss';
2 |
--------------------------------------------------------------------------------
/examples/with-docker/.dockerignore:
--------------------------------------------------------------------------------
1 | Dockerfile
2 | .dockerignore
3 | node_modules
4 | npm-debug.log
5 | README.md
6 | .next
--------------------------------------------------------------------------------
/examples/with-expo/public/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-expo/public/demo.png
--------------------------------------------------------------------------------
/examples/with-firebase-hosting/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": ""
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-flow/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["transform-flow-strip-types"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-flow/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | .*/node_modules/*
3 |
4 | [include]
5 |
6 | [libs]
7 |
8 | [options]
9 |
--------------------------------------------------------------------------------
/examples/with-loading/pages/index.js:
--------------------------------------------------------------------------------
1 | const IndexPage = () => Hello Next.js!
2 |
3 | export default IndexPage
4 |
--------------------------------------------------------------------------------
/examples/with-next-sass/components/hello-world.module.scss:
--------------------------------------------------------------------------------
1 | $color: red;
2 |
3 | .hello {
4 | color: $color;
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-next-sitemap/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-react-helmet/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello World!
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-intl/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-shallow-routing/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return About us
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-storybook/components/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello World
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-unsplash/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-webassembly/add.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-webassembly/add.wasm
--------------------------------------------------------------------------------
/examples/with-yarn-workspaces/packages/bar/index.js:
--------------------------------------------------------------------------------
1 | const Bar = () => bar
2 |
3 | export default Bar
4 |
--------------------------------------------------------------------------------
/packages/next-env/README.md:
--------------------------------------------------------------------------------
1 | # `@next/env`
2 |
3 | Next.js' util for loading dotenv files in with the proper priorities
4 |
--------------------------------------------------------------------------------
/packages/next/build/polyfills/object.assign/polyfill.js:
--------------------------------------------------------------------------------
1 | module.exports = function () {
2 | return Object.assign
3 | }
4 |
--------------------------------------------------------------------------------
/packages/next/build/polyfills/object.assign/shim.js:
--------------------------------------------------------------------------------
1 | module.exports = function () {
2 | return Object.assign
3 | }
4 |
--------------------------------------------------------------------------------
/packages/next/build/webpack/config/blocks/css/loaders/index.ts:
--------------------------------------------------------------------------------
1 | export * from './global'
2 | export * from './modules'
3 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core-lib-plugin-pass.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibPluginPass()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/plugin-syntax-bigint.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxBigint()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/NodeTargetPlugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NodeTargetPlugin
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core-lib-normalize-file.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibNormalizeFile()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core-lib-normalize-opts.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibNormalizeOpts()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-transform-define.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginTransformDefine()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-transform-runtime.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginTransformRuntime()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/ModuleFilenameHelpers.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').ModuleFilenameHelpers
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/NodeEnvironmentPlugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NodeEnvironmentPlugin
2 |
--------------------------------------------------------------------------------
/packages/next/document.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/pages/_document'
2 | export { default } from './dist/pages/_document'
3 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/redirect-error.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.redirect(307)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/redirect-null.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.redirect(null)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/basepath/external/page.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | hello from external
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/integration/build-indicator/pages/a.js:
--------------------------------------------------------------------------------
1 | export default function Page() {
2 | return Hello from a
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-indicator/pages/b.js:
--------------------------------------------------------------------------------
1 | export default function Page() {
2 | return Hello from b
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-output/fixtures/with-amp/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-output/fixtures/with-app/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/cli/duplicate-sass/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/cli/experimental-react/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/cli/old-react/node_modules/react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react",
3 | "version": "16.9.0"
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/lib/async-function.js:
--------------------------------------------------------------------------------
1 | module.exports = async function () {
2 | return 'test'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/pages/exports.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | return module.exports
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/client-navigation/pages/nested-cdm/index.js:
--------------------------------------------------------------------------------
1 | import CDM from '../../lib/cdm'
2 | export default CDM
3 |
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/pages/another/index.js:
--------------------------------------------------------------------------------
1 | export default () => `oops this is doesn't work`
2 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/cp-ie-11/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browserslist": [
3 | "ie 11"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/cp-ie-11/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/cp-modern/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/module-import-global-invalid/pages/styles.module.css:
--------------------------------------------------------------------------------
1 | @import './styles.css';
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/catch-all-module/pages/[...post]/index.module.css:
--------------------------------------------------------------------------------
1 | .home {
2 | background: #f00;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/dynamic-route-module/pages/[post]/index.module.css:
--------------------------------------------------------------------------------
1 | .home {
2 | background: #f00;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/global-and-module-ordering/pages/index2.module.css:
--------------------------------------------------------------------------------
1 | .textModule {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-global-module/node_modules/example/index.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: 'red';
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-module/node_modules/example/index.module.css:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: 'red';
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/next-issue-12343/components/button.module.css:
--------------------------------------------------------------------------------
1 | .button {
2 | background: hotpink;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module-nested/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export const message = 'Why hello there'
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module-nested/node_modules/example/other3.css:
--------------------------------------------------------------------------------
1 | .other3 {
2 | color: violet;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/npm-import-nested/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export const message = 'Why hello there'
2 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/api/hello.js:
--------------------------------------------------------------------------------
1 | export default async (req, res) => res.json({ query: req.query })
2 |
--------------------------------------------------------------------------------
/test/integration/document-file-dependencies/css/global.css:
--------------------------------------------------------------------------------
1 | .global {
2 | background-color: rgb(200, 200, 200);
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/duplicate-pages/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => (
2 | <>
3 | Hi 👋
4 | >
5 | )
6 |
--------------------------------------------------------------------------------
/test/integration/dynamic-routing/pages/p1/p2/nested-all-ssg/[...rest]/styles.module.css:
--------------------------------------------------------------------------------
1 | .test {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/export-serverless/pages/api/data.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.send('Hello World')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/export-subfolders-serverless/pages/posts/index.js:
--------------------------------------------------------------------------------
1 | export default () => I am a list of posts
2 |
--------------------------------------------------------------------------------
/test/integration/firebase-grpc/pages/page-1.js:
--------------------------------------------------------------------------------
1 | import 'firebase/firestore'
2 | export default () => Firebase
3 |
--------------------------------------------------------------------------------
/test/integration/firebase-grpc/pages/page-2.js:
--------------------------------------------------------------------------------
1 | import 'firebase/firestore'
2 | export default () => Firebase
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-1.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-2.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-3.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-4.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-5.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-6.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-7.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-8.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-9.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/legacy-sass/next.config.js:
--------------------------------------------------------------------------------
1 | const withSass = require('@zeit/next-sass')
2 | module.exports = withSass()
3 |
--------------------------------------------------------------------------------
/test/integration/legacy-sass/styles/style.scss:
--------------------------------------------------------------------------------
1 | $color: #2ecc71;
2 | .example {
3 | background-color: $color;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/many-modules/with-css-2.module.css:
--------------------------------------------------------------------------------
1 | .text {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/nested/with-css.module.css:
--------------------------------------------------------------------------------
1 | .content {
2 | color: inherit;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/pages/amp-hybrid.js:
--------------------------------------------------------------------------------
1 | export default () => 'hi'
2 | export const config = { amp: 'hybrid' }
3 |
--------------------------------------------------------------------------------
/test/integration/production/pages/api/hello.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.end('API hello works')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/pages/api/index.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.end('API index works')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/rewrites-client-resolving/pages/product/index.js:
--------------------------------------------------------------------------------
1 | export default () => products
2 |
--------------------------------------------------------------------------------
/test/integration/router-prefetch/pages/another-page.js:
--------------------------------------------------------------------------------
1 | export default function AnotherPage() {
2 | return null
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/basic-module-prepend-data/pages/index.module.scss:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: $var;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/basic-module/pages/index.module.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .redText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/catch-all-module/pages/[...post]/index.module.scss:
--------------------------------------------------------------------------------
1 | .home {
2 | background: #f00;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/dev-module/pages/index.module.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .redText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/hmr-module/pages/index.module.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .redText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-global/styles/global1.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .red-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-global/styles/global2.scss:
--------------------------------------------------------------------------------
1 | $var: blue;
2 | .blue-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-module/pages/blue.module.scss:
--------------------------------------------------------------------------------
1 | $var: blue;
2 | .blueText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-module/pages/red.module.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .redText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-page/styles/global2.scss:
--------------------------------------------------------------------------------
1 | $var: blue;
2 | .blue-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/nm-module-nested/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export const message = 'Why hello there'
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/prod-module/pages/index.module.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .redText {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/single-global-src/styles/global.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .red-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/single-global/styles/global.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .red-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/webpack-error/styles/global.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .red-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/with-styled-jsx/styles/global.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .my-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/serverless-trace/pages/api/hello.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.send('hello world')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/serverless/pages/api/posts/[id].js:
--------------------------------------------------------------------------------
1 | export default ({ query }, res) => {
2 | res.json(query)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/ssg-dynamic-routes-404-page/pages/404.js:
--------------------------------------------------------------------------------
1 | const page = () => 'custom 404 page'
2 | export default page
3 |
--------------------------------------------------------------------------------
/test/integration/telemetry/pages/_app_withoutreportwebvitals.empty:
--------------------------------------------------------------------------------
1 | import App from 'next/app'
2 | export default App
3 |
--------------------------------------------------------------------------------
/test/integration/trailing-slashes-href-resolving/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | trailingSlash: true,
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blog-starter-typescript/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: ['tailwindcss', 'autoprefixer'],
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blog/public/images/photo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/blog/public/images/photo.jpg
--------------------------------------------------------------------------------
/examples/cms-buttercms/.env.local.example:
--------------------------------------------------------------------------------
1 | # Copy this file as .env.local
2 | BUTTERCMS_API_KEY=
3 | BUTTERCMS_PREVIEW_SECRET=
--------------------------------------------------------------------------------
/examples/cms-ghost/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | images: {
3 | domains: ['static.gotsby.org'],
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/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-compiled-css/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": ["@babel/plugin-syntax-jsx"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-emotion-vanilla/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [["next/babel"]],
3 | "plugins": ["@emotion/babel-plugin"]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-expo-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-gsap/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-gsap/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-ionic-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-jest/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-jest/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-knex/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-knex/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-linaria/next.config.js:
--------------------------------------------------------------------------------
1 | const withLinaria = require('next-linaria')
2 |
3 | module.exports = withLinaria({})
4 |
--------------------------------------------------------------------------------
/examples/with-paste-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-prefetching/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return This is the HOME page
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-with-styles/defaultTheme.js:
--------------------------------------------------------------------------------
1 | export default {
2 | color: {
3 | primary: 'salmon',
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-service-worker/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return with-service-worker
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-stripe-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/.prettierignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .next
3 | yarn.lock
4 | package-lock.json
5 | public
6 |
--------------------------------------------------------------------------------
/examples/with-typescript-graphql/lib/user.graphqls:
--------------------------------------------------------------------------------
1 | type User {
2 | id: ID!
3 | name: String!
4 | status: String!
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-typescript-types/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core-lib-normalize-file.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibNormalizeFile()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core-lib-normalize-opts.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibNormalizeOpts()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/plugin-transform-define.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginTransformDefine()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/core-lib-block-hoist-plugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibBlockHoistPlugin()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/jsonwebtoken/package.json:
--------------------------------------------------------------------------------
1 | {"name":"jsonwebtoken","main":"index.js","author":"auth0","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/BasicEvaluatedExpression.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').BasicEvaluatedExpression
2 |
--------------------------------------------------------------------------------
/packages/next/telemetry/events/index.ts:
--------------------------------------------------------------------------------
1 | export * from './version'
2 | export * from './build'
3 | export * from './plugins'
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/parse.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.status(200).json(req.body)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/query.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.status(200).send(req.query)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/redirect-307.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.redirect('/login')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-output/fixtures/with-error/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-stats/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | experimental: {
3 | stats: true,
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/build-stats/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Index(props) {
2 | return Hello world
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/cli/duplicate-sass/node_modules/sass/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sass",
3 | "version": "1.0.0"
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/cli/experimental-react-dom/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return Hello
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/client-404/pages/missing.js:
--------------------------------------------------------------------------------
1 | export default function Missing() {
2 | return poof
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/conflicting-public-file-page/pages/another/conflict.js:
--------------------------------------------------------------------------------
1 | export default () => `oops this is doesn't work`
2 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/browsers-new/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/browsers-old/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/cp-modern/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "browserslist": [
3 | "chrome 78"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-1/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [["postcss-trolling"]]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/global-and-module-ordering/pages/index.module.css:
--------------------------------------------------------------------------------
1 | .textModule {
2 | color: yellow;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/import-global-from-module/node_modules/example/index.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: 'red';
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/invalid-module/node_modules/example/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./index.module.css')
2 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/with-tailwindcss/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/custom-routes/pages/api/dynamic/[slug].js:
--------------------------------------------------------------------------------
1 | export default async (req, res) => res.json({ query: req.query })
2 |
--------------------------------------------------------------------------------
/test/integration/export-intent/fixtures/custom-out/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | exportTrailingSlash: true,
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/filesystempublicroutes/pages/exportpathmap-route.js:
--------------------------------------------------------------------------------
1 | export default () => exportpathmap was here
2 |
--------------------------------------------------------------------------------
/test/integration/gssp-redirect/pages/404.js:
--------------------------------------------------------------------------------
1 | export default function NotFound() {
2 | return oops not found
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-10.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-11.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-12.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/handles-export-errors/pages/page-13.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => hello.world
3 |
--------------------------------------------------------------------------------
/test/integration/index-index/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Index() {
2 | return index
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/next-dynamic-css/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | future: {
3 | webpack5: false,
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/ondemand/pages/about.js:
--------------------------------------------------------------------------------
1 | export default () => (
2 |
5 | )
6 |
--------------------------------------------------------------------------------
/test/integration/ondemand/pages/third.js:
--------------------------------------------------------------------------------
1 | export default () => (
2 |
5 | )
6 |
--------------------------------------------------------------------------------
/test/integration/page-config/pages/invalid/no-init.js:
--------------------------------------------------------------------------------
1 | // export let config
2 |
3 | export default () => hello world
4 |
--------------------------------------------------------------------------------
/test/integration/plugin-mdx/pages/index.mdx:
--------------------------------------------------------------------------------
1 | ## Hello MDX
2 |
3 | Here's a simple mdx file!!
4 |
5 | Have p tag!
6 |
--------------------------------------------------------------------------------
/test/integration/prerender/pages/api/bad.js:
--------------------------------------------------------------------------------
1 | export default function handler(req, res) {
2 | throw new Error('lol')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/many-imports/with-css-1.module.css:
--------------------------------------------------------------------------------
1 | .content {
2 | color: inherit;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/many-imports/with-css-2.module.css:
--------------------------------------------------------------------------------
1 | .content {
2 | color: inherit;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/many-imports/with-css-3.module.css:
--------------------------------------------------------------------------------
1 | .content {
2 | color: inherit;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/production/components/dynamic-css/many-modules/with-css.module.css:
--------------------------------------------------------------------------------
1 | .content {
2 | color: inherit;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/rewrites-client-resolving/pages/category/index.js:
--------------------------------------------------------------------------------
1 | export default () => categories
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/dynamic-route-module/pages/[post]/index.module.scss:
--------------------------------------------------------------------------------
1 | .home {
2 | background: #f00;
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-global-module/node_modules/example/index.scss:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: 'red';
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-module/node_modules/example/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./index.module.scss')
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/invalid-module/node_modules/example/index.module.scss:
--------------------------------------------------------------------------------
1 | .redText {
2 | color: 'red';
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/multi-global-reversed/styles/global1.scss:
--------------------------------------------------------------------------------
1 | $var: red;
2 | .red-text {
3 | color: $var;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/npm-import-nested/node_modules/example/index.mjs:
--------------------------------------------------------------------------------
1 | export const message = 'Why hello there'
2 |
--------------------------------------------------------------------------------
/test/integration/scss-fixtures/with-tailwindcss/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/serverless-trace/pages/api/posts/[id].js:
--------------------------------------------------------------------------------
1 | export default ({ query }, res) => {
2 | res.json(query)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/undefined-webpack-config/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Page() {
2 | return 'Index page'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/webpack-require-hook/pages/hello.js:
--------------------------------------------------------------------------------
1 | export default () => (
2 | <>
3 | Hi 👋
4 | >
5 | )
6 |
--------------------------------------------------------------------------------
/examples/blog-starter-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/blog/public/images/photo2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/blog/public/images/photo2.jpg
--------------------------------------------------------------------------------
/examples/cms-graphcms/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | images: {
3 | domains: ['media.graphcms.com'],
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/cms-kontent/kontent-backup.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/cms-kontent/kontent-backup.zip
--------------------------------------------------------------------------------
/examples/cms-wordpress/docs/new-post.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/cms-wordpress/docs/new-post.png
--------------------------------------------------------------------------------
/examples/custom-server-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/image-component/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | images: {
3 | domains: ['assets.vercel.com'],
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-aws-amplify-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-chakra-ui-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-clerk/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-clerk/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-docker/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-docker/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-filbert/public/filbert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-filbert/public/filbert.png
--------------------------------------------------------------------------------
/examples/with-grommet/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": [["styled-components", { "ssr": true }]]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-hls-js/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-hls-js/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-magic/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-magic/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-mongodb/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-mongodb/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-msw/public/book-cover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-msw/public/book-cover.jpg
--------------------------------------------------------------------------------
/examples/with-neo4j/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-neo4j/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-next-css/style.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --some-color: red;
3 | }
4 |
5 | body {
6 | color: var(--some-color);
7 | }
8 |
--------------------------------------------------------------------------------
/examples/with-next-sass/styles.scss:
--------------------------------------------------------------------------------
1 | $backgroundColor: #2ecc71;
2 |
3 | .app {
4 | background-color: $backgroundColor;
5 | }
6 |
--------------------------------------------------------------------------------
/examples/with-prefetching/pages/about.js:
--------------------------------------------------------------------------------
1 | export default function About() {
2 | return This is the ABOUT page.
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-md-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-react-relay-network-modern/.env:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_RELAY_ENDPOINT=https://nextjs-graphql-with-prisma-relay.vercel.app/api
2 |
--------------------------------------------------------------------------------
/examples/with-redis/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-redis/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-sitemap/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-sitemap/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-sw-precache/README.md:
--------------------------------------------------------------------------------
1 | We recommend using https://github.com/vercel/next.js/tree/canary/examples/with-next-offline
2 |
--------------------------------------------------------------------------------
/examples/with-typescript-eslint-jest/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-unsplash/components/Stats/Stats.module.css:
--------------------------------------------------------------------------------
1 | .stats_container {
2 | padding: 10px 0px;
3 | font-size: 12px;
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-unsplash/docs/api-keys.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-unsplash/docs/api-keys.png
--------------------------------------------------------------------------------
/examples/with-unsplash/docs/app-form.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-unsplash/docs/app-form.png
--------------------------------------------------------------------------------
/examples/with-zones/docs/import-blog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-zones/docs/import-blog.jpg
--------------------------------------------------------------------------------
/examples/with-zones/docs/import-home.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-zones/docs/import-home.jpg
--------------------------------------------------------------------------------
/examples/with-zones/home/.env:
--------------------------------------------------------------------------------
1 | # Replace this URL with the URL of your blog app
2 | BLOG_URL="https://with-zones-blog.vercel.app"
3 |
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import.input.js:
--------------------------------------------------------------------------------
1 | import { withAmp } from 'next/amp'
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/plugin-transform-runtime.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginTransformRuntime()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/ModuleFilenameHelpers.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').ModuleFilenameHelpers
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/NodeEnvironmentPlugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').NodeEnvironmentPlugin
2 |
--------------------------------------------------------------------------------
/packages/next/client/dev/error-overlay/format-webpack-messages.d.ts:
--------------------------------------------------------------------------------
1 | export default function formatWebpackMessages(json: any): any
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/arg/package.json:
--------------------------------------------------------------------------------
1 | {"name":"arg","main":"index.js","author":"Josh Junon ","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/async-sema/package.json:
--------------------------------------------------------------------------------
1 | {"name":"async-sema","main":"index.js","author":"Olli Vanhoja","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-syntax-dynamic-import.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxDynamicImport()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/comment-json/package.json:
--------------------------------------------------------------------------------
1 | {"name":"comment-json","main":"index.js","author":"kaelzhang","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/sass-loader/package.json:
--------------------------------------------------------------------------------
1 | {"name":"sass-loader","main":"cjs.js","author":"J. Tangelder","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/head.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/next-server/lib/head'
2 | export { default } from './dist/next-server/lib/head'
3 |
--------------------------------------------------------------------------------
/test/integration/api-catch-all/pages/api/users/[...slug].js:
--------------------------------------------------------------------------------
1 | export default function (req, res) {
2 | res.json(req.query)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/cookies.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.status(200).send(req.cookies)
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/redirect-301.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | res.redirect(301, '/login')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/api-support/pages/api/user-error.js:
--------------------------------------------------------------------------------
1 | export default (req, res) => {
2 | throw new Error('User error')
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/auto-export-serverless-error/pages/index.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line
2 | export default () => something.error
3 |
--------------------------------------------------------------------------------
/test/integration/auto-export/pages/commonjs2.js:
--------------------------------------------------------------------------------
1 | const React = require('react')
2 |
3 | module.exports = () => test2
4 |
--------------------------------------------------------------------------------
/test/integration/broken-webpack-plugin/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Test() {
2 | return hello from index
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/build-output/fixtures/with-amp/pages/amp.js:
--------------------------------------------------------------------------------
1 | export const config = { amp: true }
2 | export default () => 'hi'
3 |
--------------------------------------------------------------------------------
/test/integration/build-output/fixtures/with-error-static/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/chunking/pages/index.js:
--------------------------------------------------------------------------------
1 | const Page = () => {
2 | return index
3 | }
4 |
5 | export default Page
6 |
--------------------------------------------------------------------------------
/test/integration/config-resolve-alias/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Index(props) {
2 | return Index
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/config/components/hello-webpack-sass.scss:
--------------------------------------------------------------------------------
1 | $color: yellow;
2 |
3 | .helloWorldSass {
4 | color: $color;
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/conformance/pages/index.js:
--------------------------------------------------------------------------------
1 | const Page = () => {
2 | return index
3 | }
4 |
5 | export default Page
6 |
--------------------------------------------------------------------------------
/test/integration/css-features/fixtures/inline-comments/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function () {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration-arr-7/.postcssrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [["postcss-trolling", 5]]
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/bad-custom-configuration/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/composes-external/pages/other.css:
--------------------------------------------------------------------------------
1 | .className {
2 | background: red;
3 | color: yellow;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/csp-style-src-nonce/pages/other.module.css:
--------------------------------------------------------------------------------
1 | .blue {
2 | font-size: 25px;
3 | color: blue;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/custom-configuration-arr/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/custom-configuration/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Home() {
2 | return
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nested-global/styles/global1b.css:
--------------------------------------------------------------------------------
1 | .red-text {
2 | color: purple;
3 | font-weight: bolder;
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/css-fixtures/nm-module/node_modules/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "main": "index"
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/custom-server-types/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/test/integration/dynamic-routing/pages/another.js:
--------------------------------------------------------------------------------
1 | export default function Another() {
2 | return 'hello from another!'
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/export-override-404/pages/404.js:
--------------------------------------------------------------------------------
1 | export default () => this is a 404 page override the default 404.html
2 |
--------------------------------------------------------------------------------
/test/integration/i18n-support-custom-error/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function IndexPage() {
2 | return Hi 👋
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-browser-sourcemaps/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | productionBrowserSourceMaps: true,
3 | }
4 |
--------------------------------------------------------------------------------
/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/required-server-files-ssr-404/pages/404.js:
--------------------------------------------------------------------------------
1 | export default function NotFound() {
2 | return 'custom 404'
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/ssg-data-404/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Page() {
2 | return Index page
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/telemetry/next.config.webpack:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | webpack(config) {
3 | return config
4 | },
5 | }
6 |
--------------------------------------------------------------------------------
/test/integration/trailing-slashes-rewrite/pages/index.js:
--------------------------------------------------------------------------------
1 | export default function Index() {
2 | return index page
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/typescript-external-dir/shared/libs/inc.ts:
--------------------------------------------------------------------------------
1 | export default function inc(x: number) {
2 | return x + 1
3 | }
4 |
--------------------------------------------------------------------------------
/test/integration/webpack-config-mainjs/pages/static.js:
--------------------------------------------------------------------------------
1 | export default function StaticPage() {
2 | return <>Hello World>
3 | }
4 |
--------------------------------------------------------------------------------
/examples/analyze-bundles/pages/contact.js:
--------------------------------------------------------------------------------
1 | export default function Contact() {
2 | return This is the contact page.
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-server-actionhero/dump.rdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/custom-server-actionhero/dump.rdb
--------------------------------------------------------------------------------
/examples/image-component/public/vercel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/image-component/public/vercel.png
--------------------------------------------------------------------------------
/examples/with-atlaskit/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["next/babel"],
3 | "plugins": [["styled-components", { "ssr": true }]]
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-deta-base/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-deta-base/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-firebase/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-firebase/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-graphql-hooks/components/app.js:
--------------------------------------------------------------------------------
1 | export default function App({ children }) {
2 | return {children}
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-mdbreact/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-mdbreact/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-mobx-state-tree-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-mux-video/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-mux-video/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-prefetching/pages/contact.js:
--------------------------------------------------------------------------------
1 | export default function Contact() {
2 | return This is the CONTACT page.
3 | }
4 |
--------------------------------------------------------------------------------
/examples/with-react-native-web/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "with-react-native-web",
3 | "displayName": "with-react-native-web"
4 | }
5 |
--------------------------------------------------------------------------------
/examples/with-redux-toolkit-typescript/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-stitches/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-stitches/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-storybook-styled-jsx-scss/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/examples/with-unsplash/docs/app-terms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-unsplash/docs/app-terms.png
--------------------------------------------------------------------------------
/examples/with-unsplash/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ixkaito/next.js/canary/examples/with-unsplash/public/favicon.ico
--------------------------------------------------------------------------------
/examples/with-yarn-workspaces/packages/foo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "foo",
3 | "version": "1.0.0",
4 | "license": "ISC"
5 | }
6 |
--------------------------------------------------------------------------------
/packages/next-codemod/.gitignore:
--------------------------------------------------------------------------------
1 | *.d.ts
2 | *.js
3 | *.js.map
4 | !transforms/__tests__/**/*.js
5 | !transforms/__testfixtures__/**/*.js
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/no-transform.input.js:
--------------------------------------------------------------------------------
1 | export default class extends React.Component {}
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/no-transform.output.js:
--------------------------------------------------------------------------------
1 | export default class extends React.Component {}
--------------------------------------------------------------------------------
/packages/next-codemod/transforms/__testfixtures__/withamp-to-config/remove-import-single.output.js:
--------------------------------------------------------------------------------
1 | import { useAmp } from 'next/amp';
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/core-lib-block-hoist-plugin.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').coreLibBlockHoistPlugin()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/babel/packages/plugin-syntax-dynamic-import.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginSyntaxDynamicImport()
2 |
--------------------------------------------------------------------------------
/packages/next/bundles/webpack/packages/BasicEvaluatedExpression.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./webpack.js').BasicEvaluatedExpression
2 |
--------------------------------------------------------------------------------
/packages/next/client/next.js:
--------------------------------------------------------------------------------
1 | import initNext, * as next from './'
2 |
3 | window.next = next
4 |
5 | initNext().catch(console.error)
6 |
--------------------------------------------------------------------------------
/packages/next/compiled/babel/plugin-proposal-class-properties.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./bundle').pluginProposalClassProperties()
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/css-loader/package.json:
--------------------------------------------------------------------------------
1 | {"name":"css-loader","main":"cjs.js","author":"Tobias Koppers @sokra","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/compiled/webpack/package.json:
--------------------------------------------------------------------------------
1 | {"name":"webpack","main":"bundle4.js","author":"Tobias Koppers @sokra","license":"MIT"}
2 |
--------------------------------------------------------------------------------
/packages/next/dynamic.d.ts:
--------------------------------------------------------------------------------
1 | export * from './dist/next-server/lib/dynamic'
2 | export { default } from './dist/next-server/lib/dynamic'
3 |
--------------------------------------------------------------------------------
/test/integration/amphtml/pages/root-hmr.js:
--------------------------------------------------------------------------------
1 | export const config = { amp: true }
2 |
3 | export default () => I'm an AMP page!
4 |
--------------------------------------------------------------------------------