Skip to content

Commit f776bc6

Browse files
authored
Update index.ts
1 parent 4d80a4e commit f776bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getScreenshot } from "./_lib/puppeteer";
33
module.exports = async (req, res) => {
44
if (process.env.demo == "yes") return res.status(403).send("The public instance of this API is currently disabled. You can deploy your own instance for free on Vercel here: https://s.vercel.app/deploy.");
55
if (!req.query.url) return res.status(400).send("No url query specified.");
6-
if (!checkUrl(req.query.url)) return res.status(400).send("Invalid url query specified.");
6+
// if (!checkUrl(req.query.url)) return res.status(400).send("Invalid url query specified.");
77
try {
88
const file = await getScreenshot(req.query.url, req.query.width, req.query.height);
99
res.setHeader("Content-Type", "image/png");

0 commit comments

Comments
 (0)