jsext
This commit is contained in:
parent
2e245c8041
commit
cd6f8a0551
|
@ -54,7 +54,7 @@ export async function handler(req, res) {
|
|||
})
|
||||
|
||||
if (req.method === 'POST') {
|
||||
const data: any = await parseFormData(req)
|
||||
const data = await parseFormData(req)
|
||||
const files = data?.files
|
||||
const image = files.image
|
||||
const body = fs.readFileSync(image.path)
|
8
vercel.json
Normal file
8
vercel.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"functions": {
|
||||
"pages/api/upload.js": {
|
||||
"memory": 3008,
|
||||
"maxDuration": 30
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user