File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed
Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11# @objectdocs/cli
22
3+ ## 0.2.6
4+
5+ ### Patch Changes
6+
7+ - fix: copy .next directory instead of symlinking to support Vercel deployment of consumers
8+ - @objectdocs/site @0.2.6
9+
310## 0.2.5
411
512### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @objectdocs/cli" ,
3- "version" : " 0.2.5 " ,
3+ "version" : " 0.2.6 " ,
44 "description" : " ObjectDocs CLI" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -86,13 +86,14 @@ export function registerBuildCommand(cli) {
8686 const destNext = path . join ( process . cwd ( ) , '.next' ) ;
8787
8888 if ( fs . existsSync ( srcNext ) && srcNext !== destNext ) {
89- console . log ( `\nLinking .next build output to ${ destNext } ...` ) ;
89+ console . log ( `\nCopying .next build output to ${ destNext } ...` ) ;
9090 if ( fs . existsSync ( destNext ) ) {
9191 fs . rmSync ( destNext , { recursive : true , force : true } ) ;
9292 }
93- // Use symlink instead of copy to preserve internal symlinks in .next (pnpm support)
94- fs . symlinkSync ( srcNext , destNext , 'dir' ) ;
95- console . log ( `Build successfully linked to: ${ destNext } ` ) ;
93+ // Use copy instead of symlink to ensure compatibility with Vercel and other deployment platforms
94+ // that might not handle symlinks to node_modules correctly
95+ fs . cpSync ( srcNext , destNext , { recursive : true } ) ;
96+ console . log ( `Build successfully copied to: ${ destNext } ` ) ;
9697 } else {
9798 console . log ( `\nNo 'out' directory generated in ${ src } .` ) ;
9899 console . log ( `This is expected if 'output: export' is disabled.` ) ;
Original file line number Diff line number Diff line change 11# @objectdocs/site
22
3+ ## 0.2.6
4+
35## 0.2.5
46
57### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @objectdocs/site" ,
3- "version" : " 0.2.5 " ,
3+ "version" : " 0.2.6 " ,
44 "description" : " ObjectDocs Site Template" ,
55 "repository" : {
66 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments