Skip to content

Commit 79ef97f

Browse files
committed
chore: remove unnecessary config step for user
1 parent b47f033 commit 79ef97f

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,7 @@ OpenNext aims to support all Next.js 13 features. Some features are work in prog
3232
cd my-next-app
3333
```
3434

35-
2. Ensure [standalone output](https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files) is enabled in your `next.config.js`:
36-
37-
```diff
38-
/** @type {import('next').NextConfig} */
39-
const nextConfig = {
40-
+ output: "standalone"
41-
reactStrictMode: true,
42-
swcMinify: true,
43-
}
44-
45-
module.exports = nextConfig
46-
```
47-
48-
3. Build the app
35+
2. Build the app
4936

5037
```bash
5138
npx open-next build

cli/src/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export async function build() {
1616
process.exit(1);
1717
}
1818

19+
process.env.NEXT_PRIVATE_STANDALONE = 'true';
20+
1921
// Build app
2022
const ret = await nextBuild({
2123
files: [],

0 commit comments

Comments
 (0)