Skip to content

Commit 4c98000

Browse files
committed
Update build output directory and add new dependencies
Changed the build output directory from '.next' to 'out' in the CLI build command. Added 'client-only' and 'server-only' as new dependencies in package.json.
1 parent 983483d commit 4c98000

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
"translate:all": "objectdocs translate --all"
1111
},
1212
"dependencies": {
13+
"client-only": "^0.0.1",
1314
"fumadocs-core": "16.4.7",
1415
"fumadocs-mdx": "14.2.5",
1516
"fumadocs-ui": "16.4.7",
1617
"lucide-react": "^0.562.0",
1718
"next": "16.1.1",
1819
"react": "^19.2.3",
1920
"react-dom": "^19.2.3",
21+
"server-only": "^0.0.1",
2022
"tailwind-merge": "^3.4.0"
2123
},
2224
"devDependencies": {

packages/cli/src/commands/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export function registerBuildCommand(cli) {
4545
child.on('close', (code) => {
4646
if (code === 0) {
4747
// Copy output to project root
48-
const src = path.join(nextAppDir, '.next');
49-
const dest = path.join(process.cwd(), '.next');
48+
const src = path.join(nextAppDir, 'out');
49+
const dest = path.join(process.cwd(), 'out');
5050

5151
if (fs.existsSync(src)) {
5252
console.log(`\nMoving build output to ${dest}...`);

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)