Has anyone deployed Ts.ED to vercel? #1636
Answered
by
Romakita
rizchaerul
asked this question in
Q&A
-
Hi, I tried deploying Ts.ED to vercel (i know it's not a good idea since it's serverless). And I got this error: What I did is:
here's my vercel.json
Any help would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Romakita
Nov 16, 2021
Replies: 1 comment 7 replies
-
Hello @rizchaerul The message said, the main.js doesn't export a function. Probably because, Vercel handle request like this: module.exports = (req, res) => {
const { name = 'World' } = req.query;
res.send(`Hello ${name}!`);
}; So you have to do the same thing with Ts.ED. I haven't time give you an example. But I'll try to you that ASAP :) See you |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
rizchaerul
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @rizchaerul
The message said, the main.js doesn't export a function. Probably because, Vercel handle request like this:
So you have to do the same thing with Ts.ED. I haven't time give you an example. But I'll try to you that ASAP :)
See you
Romain