Hello,I've been trying to deploy a simple "hello world" API but I can't get my head around it. Instead of deploying code it's deploying the JS file as if it was text.Therefore, when I access "helloworld.vercel.app" I just get the code I wrote, no JS functionality.The code I'm trying is the one from their documentation:module.exports = (req, res) => { const { name = "World" } = req.query; res.status(200).send(`Hello ${name}!`); }; Can anybody help me, please?
Submitted August 22, 2020 at 12:06PM by dpwdpw
No comments:
Post a Comment