don't delay capture
This commit is contained in:
parent
f8f099b9a5
commit
eab1c69c7d
|
@ -4,7 +4,7 @@ import path from 'path'
|
||||||
export default async function handler (req, res) {
|
export default async function handler (req, res) {
|
||||||
const url = process.env.SELF_URL + '/' + path.join(...(req.query.path || []))
|
const url = process.env.SELF_URL + '/' + path.join(...(req.query.path || []))
|
||||||
res.setHeader('Content-Type', 'image/png')
|
res.setHeader('Content-Type', 'image/png')
|
||||||
const streams = await new Pageres({ crop: true, delay: 1 })
|
const streams = await new Pageres({ crop: true })
|
||||||
.src(url, ['600x300'])
|
.src(url, ['600x300'])
|
||||||
.run()
|
.run()
|
||||||
res.status(200).end(streams[0])
|
res.status(200).end(streams[0])
|
||||||
|
|
Loading…
Reference in New Issue