File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
apps/studio/electron/main/hosting Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,16 @@ import {
21
21
} from '@onlook/models/hosting' ;
22
22
import { isEmptyString , isNullOrUndefined } from '@onlook/utility' ;
23
23
import {
24
- type DeploymentSource ,
25
24
type FreestyleDeployWebConfiguration ,
26
25
type FreestyleDeployWebSuccessResponse ,
27
- type FreestyleFile ,
28
26
} from 'freestyle-sandboxes' ;
29
- import { prepareDirForDeployment } from 'freestyle-sandboxes/utils' ;
30
27
import { mainWindow } from '..' ;
31
28
import analytics from '../analytics' ;
32
29
import { getRefreshedAuthTokens } from '../auth' ;
33
30
import {
34
31
postprocessNextBuild ,
35
32
preprocessNextBuild ,
33
+ serializeFiles ,
36
34
updateGitignore ,
37
35
type FileRecord ,
38
36
} from './helpers' ;
@@ -87,15 +85,7 @@ class HostingManager {
87
85
88
86
// Serialize the files for deployment
89
87
const NEXT_BUILD_OUTPUT_PATH = `${ folderPath } /${ CUSTOM_OUTPUT_DIR } /standalone` ;
90
- const source : DeploymentSource = ( await prepareDirForDeployment (
91
- NEXT_BUILD_OUTPUT_PATH ,
92
- ) ) as {
93
- files : {
94
- [ key : string ] : FreestyleFile ;
95
- } ;
96
- kind : 'files' ;
97
- } ;
98
- const files : FileRecord = source . files ;
88
+ const files = await serializeFiles ( NEXT_BUILD_OUTPUT_PATH ) ;
99
89
100
90
this . emitState ( PublishStatus . LOADING , 'Deploying project...' ) ;
101
91
timer . log ( 'Files serialized, sending to Freestyle...' ) ;
You can’t perform that action at this time.
0 commit comments