Skip to content

Has anyone deployed Ts.ED to vercel? #1636

Answered by Romakita
rizchaerul asked this question in Q&A
Discussion options

You must be logged in to vote

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
Romain

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Romakita
Comment options

@rizchaerul
Comment options

@Romakita
Comment options

@Romakita
Comment options

@rizchaerul
Comment options

Answer selected by rizchaerul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants