[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Discussions](/c/community/4) # How do I run Go and Python serverless functions in a NextJS app? 242 views · 9 likes · 5 posts Melvin Vivas (@donvito) · 2025-02-06 · ♥ 1 I'm looking at the Go and Python runtimes. I'm trying to figure out how I can make it work in my local development environment? Any ideas on how to set it up? https://vercel.com/docs/functions/runtimes/go https://vercel.com/docs/functions/runtimes/python Anshuman Bhardwaj (@anshumanb) · 2025-02-06 · ♥ 3 Hi @donvito, you can run the Go and Python functions by keeping them in the `api/` folder at the root of your project. The https://github.com/vercel/examples/tree/main/python/nextjs-flask project can be a good starting point to see how to use Python and Next.js in the same repository. Melvin Vivas (@donvito) · 2025-02-06 · ♥ 2 I was able to figure this out using this command ``` vercel dev ``` but omg, it's so slow when run locally! any ideas how to optimise it?  Anshuman Bhardwaj (@anshumanb) · 2025-02-06 · ♥ 2 Hi @donvito, glad to know you got it working! `vercel dev` relies on your internet connection and your location from the Vercel servers where the code runs. Melvin Vivas (@donvito) · 2025-02-06 · ♥ 1 yeah could be my database connection too. let me investigate further. thanks!