Browse Source

Fix zip archive typo.

test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
3c163b8e76
  1. 2
      server.js

2
server.js

@ -131,7 +131,7 @@ app.get('/publish', async (req, res) => {
}
if (responseData.uploadUrl) {
await zipProject(path.join(projectPath, 'src'), path.join(projectPath, 'disp.zip'));
await zipProject(path.join(projectPath, 'src'), path.join(projectPath, 'dist.zip'));
const body = await fs.readFile(path.join(projectPath, 'dist.zip'));
const response = await fetch(`${responseData.uploadUrl}`, {
method: 'PUT',

Loading…
Cancel
Save