Skip to content

Commit ee5d8fa

Browse files
author
Ives van Hoorne
committed
Deployment
1 parent fdc1e2f commit ee5d8fa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/store/entities/sandboxes/actions/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,10 @@ export default {
344344
sandbox.modules.map(x => modules[x]),
345345
sandbox.directories.map(x => directories[x])
346346
);
347+
console.log(apiData);
347348

348349
const user = currentUserSelector(getState());
349-
350350
const token = user.integrations.zeit.token;
351-
352351
const res = await fetch('https://api.zeit.co/now/deployments', {
353352
method: 'POST',
354353
body: JSON.stringify(apiData),

src/app/store/entities/sandboxes/utils/deploy/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default async function deploy(
3333
}
3434

3535
apiData.package = JSON.parse(apiData['package.json']);
36-
apiData['package.json'] = null;
36+
delete apiData['package.json'];
3737

3838
const template = getTemplate(sandbox.template);
3939

0 commit comments

Comments
 (0)