Skip to content

Commit 34add8e

Browse files
lbogdanCompuIves
authored andcommitted
Fixed bug where deploying to Now breaks binary files. (codesandbox#1396)
1 parent edd30d5 commit 34add8e

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/store/modules/deployment

1 file changed

+2
-2
lines changed

packages/app/src/app/store/modules/deployment/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ export async function createApiData({ props, state }) {
132132
const file = contents.files[filePath];
133133

134134
if (!file.dir && filePath !== 'package.json') {
135-
const data = await file.async('text'); // eslint-disable-line no-await-in-loop
135+
const data = await file.async('base64'); // eslint-disable-line no-await-in-loop
136136

137-
apiData.files.push({ file: filePath, data });
137+
apiData.files.push({ file: filePath, data, encoding: 'base64' });
138138
}
139139
}
140140

0 commit comments

Comments
 (0)