All Questions
Tagged with environment-variables next.js
275 questions
0
votes
0
answers
73
views
Firebase API key is not defined error in Next.js project using Firebase SDK
I'm setting up Firebase (version 10.x) in my Next.js (version) 14 app, but I'm encountering the following error when trying to initialize Firebase:
Firebase API key is not defined. Ensure ...
0
votes
1
answer
28
views
Environment Variables Returning Undefined (Next.js 15.2.4)
Ive looked for other posts about this but no one has been in the same boat as me. I have a simple app running with a database that is on Turso. Obviously this takes a url and api key for me to ...
0
votes
0
answers
91
views
Ensure Private Key Environment Variables NextJS are private next.config.js
I'm implementing a "Contact Us" email functionality where I need environment variables for sensitive information such as a username and password for email authentication PRIVATE_KEY and a ...
0
votes
0
answers
112
views
Cloudinary asking for env variable I provided: A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set
I've uploaded my nextjs app to vercel, cloudinary doesn't seem to throw any errors at me and is storing my images just and I can display them on the app just fine.
When I push my commit to github/...
0
votes
0
answers
98
views
Error: Configuration must contain `projectId` when trying to deploy Sanity Studio
I'm building a portfolio website using Nextjs15 and Sanity CMS v3. I'm using typscript with nextjs but i initialized sanity using js. While trying to deploy sanity studio, i get the error Error: ...
0
votes
2
answers
230
views
How does one change nextjs environment variables after build and running with npm start?
I've built a nextjs app with a basic .env file and it seems the variables get injected into the build files. Despite the fact that I'm reading from process.env.
Eg.
const sample = process.env.SAMPLE;
...
-3
votes
1
answer
204
views
Cloudflare Pages
I am deploying a next js app to cloudflare pages. It needs to connect to a supabase project using a url and key. I have set these as env variables on the cloudflare dashboard for the project but the ...
0
votes
1
answer
74
views
Error: Write token not found in Sanity write-client configuration (Next.js project)
✓ Starting...
⚠ Configuration with next.config.ts is currently an experimental feature, use with caution.
○ Compiling /instrumentation ...
✓ Compiled /instrumentation in 3.7s (865 modules)
✓ Ready ...
1
vote
1
answer
480
views
How to use Enviornment Variables with Azure web apps NextJS
Im at the end of my rope here, i've tried everything i can think of, researched etc. I have a nextjs 14 app, i've deployed to azure web apps via github worfklows, there are several enviornment ...
0
votes
0
answers
140
views
How can I adjust the Next.js configuration file based on environment variables?
I developed a Next.js app and set up a GitLab pipeline to build and deploy it to staging and production environments. I’m using a Docker environment file for runtime variables, which works well. ...
1
vote
0
answers
76
views
How to make environment variables private with Next.js apps hosted on Firebase App Hosting
I'm talking about Firebase App Hosting. Not Firebase Hosting.
Inside apphosting.yaml, I reference secrets managed by Google Secret Manager.
If I simply do this:
env:
- variable: MY_SECRET
...
1
vote
1
answer
444
views
AWS AppRunner not using .env var in Build Phase - Next.JS
I am trying to migrate from Elastic Beanstalk to AWS App Runner, but AWS App Runner does not seem to consider the environment variable during it's build phase.
Troubleshooting:
npm run build (next ...
0
votes
1
answer
63
views
Notion Database IDs Undefined in AWS Amplify Production Environment Despite Correct Environment Variables
I'm using AWS Amplify for my Next.js app and trying to integrate with the Notion API. In my local development environment, everything works fine, and the Notion database IDs are correctly accessed via ...
0
votes
0
answers
61
views
While using UseState the env variables are not accessible, is there an alternative of accessing those environment variables?
I am developing project using Sanity and Next.js, where I have a grid of products, and in this grid, while the product Cards are correctly mapped and displayed there is a button. while clicking on ...
2
votes
2
answers
438
views
Missing Publishable Key in AWS Amplify Deployment Despite Setting Environment Variable (Clerk, Next.js)
I'm encountering an issue with deploying my Next.js application using AWS Amplify. My app relies on ClerkProvider for authentication, and I’ve set the NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY environment ...