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