Vercel integration doesn't work with Vercel Functions
See original GitHub issueBy 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
- Remix (https://remix.run/docs/en/v1/guides/envvars#production)
- ViteJS with Vercel Function
Issue Analytics
- State:
- Created a year ago
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added a discussion here to ask Vercel. https://github.com/vercel/next.js/discussions/39705
@motdotla It works! Cool stuff👍