question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Love the package! Made deployment so easy.

I’m trying to get a function going in Vercel. Is it possible to just add the api folder, or is there something else I need to do?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
antonycommented, Nov 24, 2020

I believe this is a specific restriction of Vercel which they are in the process of / have fixed.

I haven’t had time to try their new stuff yet but once I do I’ll report back here and let you know if this is possible.

1reaction
richarddavenportcommented, Nov 24, 2020

@xpnewmedia I ended up just writing my functions within sapper, using server routes They do basically the same thing. They run some code on the back end, except instead of having vercel manage the function it’s one vercel function and multiple sapper functions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serverless Functions – Vercel Docs
Vercel Serverless Functions enable running code on-demand without needing to manage your own infrastructure, provision servers, or upgrade hardware.
Read more >
Serverless Function Runtimes – Vercel Docs
The Node.js Runtime takes an entrypoint of a Node.js function, builds its ...
Read more >
Supported Languages for Serverless Functions – Vercel Docs
Learn how to deploy Serverless Functions with Vercel in JavaScript, Go, ...
Read more >
Edge Functions – Vercel Docs
Vercel's Edge Functions enable you to deliver dynamic, personalized content with the lightweight Edge Runtime. Our Edge Runtime is more performant and ...
Read more >
Edge Functions - Vercel
Vercel Edge Middleware and Edge Functions give you the power of dynamic at the speed of static.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found