We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530d484 commit fe8aab1Copy full SHA for fe8aab1
pages/api/generate.js
@@ -10,7 +10,7 @@ export default async function handler(req, res) {
10
'1FAIpQLSdma-rdJELwPGL-Iw7x28h3nZbvCaiFAABpz9B_17kuemSbWg') +
11
'/viewform'
12
)
13
- await fs.writeFile(jsonDirectory + '/GoogleForm.json', JSON.stringify(data))
+ await fs.writeFile('./GoogleForm.json', JSON.stringify(data))
14
} catch (error) {
15
return res.status(500).json({ error })
16
}
0 commit comments