Skip to content

Commit 9aceb32

Browse files
authored
Revert freestyle prepareDir (#1698)
1 parent 48b1d9f commit 9aceb32

File tree

1 file changed

+2
-12
lines changed
  • apps/studio/electron/main/hosting

1 file changed

+2
-12
lines changed

apps/studio/electron/main/hosting/index.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ import {
2121
} from '@onlook/models/hosting';
2222
import { isEmptyString, isNullOrUndefined } from '@onlook/utility';
2323
import {
24-
type DeploymentSource,
2524
type FreestyleDeployWebConfiguration,
2625
type FreestyleDeployWebSuccessResponse,
27-
type FreestyleFile,
2826
} from 'freestyle-sandboxes';
29-
import { prepareDirForDeployment } from 'freestyle-sandboxes/utils';
3027
import { mainWindow } from '..';
3128
import analytics from '../analytics';
3229
import { getRefreshedAuthTokens } from '../auth';
3330
import {
3431
postprocessNextBuild,
3532
preprocessNextBuild,
33+
serializeFiles,
3634
updateGitignore,
3735
type FileRecord,
3836
} from './helpers';
@@ -87,15 +85,7 @@ class HostingManager {
8785

8886
// Serialize the files for deployment
8987
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);
9989

10090
this.emitState(PublishStatus.LOADING, 'Deploying project...');
10191
timer.log('Files serialized, sending to Freestyle...');

0 commit comments

Comments
 (0)