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.

Vercel integration doesn't work with Vercel Functions

See original GitHub issue

By following the steps of Vercel integration, it only pull the corresponding .env file during the build process, which mean that the Vercel Functions will not able to access the .env during the runtime.

The workaround that I know is to use the deprecated Vercel integration instead, as it will insert all the ENV values into Vercel’s Enviroment Variables settings.

These are the stack that I tested on Vercel

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
motdotlacommented, Aug 17, 2022

I added a discussion here to ask Vercel. https://github.com/vercel/next.js/discussions/39705

0reactions
chungweileong94commented, Nov 3, 2022

@motdotla It works! Cool stuff👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my Serverless Function work locally but not when ...
One of the common reasons for different behavior across environments is whether or not your Serverless Functions depend on packages with native dependencies....
Read more >
Integrate with Vercel — MongoDB Atlas
To connect the serverless functions that you deployed in Vercel to Atlas clusters, ... When your application doesn't specify a database, the MONGODB_URI ......
Read more >
Issues running @vercel/og when @sentry/nextjs is installed
Steps to Reproduce · Installed @vercel/og · Run the local server yarn dev · Error happens with auto instrumentation. It does not like...
Read more >
Vercel - Sentry Documentation
This issue typically occurs if you have an ad blocker blocking the conversation between Vercel and Sentry during setup. To remediate the issue,...
Read more >
Vercel - Supabase
If you don't have a Vercel account, create one here. ... export default function Home() { return <div className={styles.container}>working</div> }.
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