Skip to content

Commit

Permalink
docs: move to next.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Sep 15, 2022
1 parent 435f40c commit 2ab40ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ If needed static resources like **images**,... can be shared by using symlinks i
│ ├── src/
│ │ └── pages/api (api routes)
│ ├── CHANGELOG.md
│ ├── next.config.js
│ ├── next.config.mjs
│ ├── package.json (define package workspace:package deps)
│ ├── tsconfig.json (define path to packages)
│ └── vitest.config.ts
Expand Down Expand Up @@ -296,7 +296,7 @@ Inspiration can be found in [apps/nextjs-app/tsconfig.json](./apps/nextjs-app/ts

#### Step 3.3: Next config

Edit your `next.config.js` and enable the [experimental.externalDir option](https://github.com/vercel/next.js/pull/22867).
Edit your `next.config.mjs` and enable the [experimental.externalDir option](https://github.com/vercel/next.js/pull/22867).
Feedbacks [here](https://github.com/vercel/next.js/discussions/26420).

```js
Expand All @@ -305,7 +305,6 @@ const nextConfig = {
externalDir: true,
},
};
export default nextConfig;
```

<details>
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The keys autocompletion and typechecks are enabled in [./src/typings/react-i18ne
│ ├── .env
│ ├── .env.development
│ ├── (.env.local)*
│ ├── next.config.js
│ ├── next.config.mjs
│ ├── next-i18next.config.js
│ ├── tsconfig.json (local paths enabled)
│ └── tailwind.config.js
Expand Down

0 comments on commit 2ab40ef

Please sign in to comment.