Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
Ethan Deardorff's user avatar
0 votes
0 answers
33 views

Get env file values from a liferay's react module

I'm starting to use Liferay in a project and just created a React Module that has to fetch some API content after being authorised. I could just hardcode user and password inside the component it will ...
Carlos Martel Lamas's user avatar
0 votes
0 answers
70 views

Vercel keeps saying that it is "Unable to detect a Project Id in the current environment" even when I already put the Project ID in the env

So I have a website written using Astro that collects stamps. It has an API written in React that will read from the Firebase DB. When I ran it locally, it works just fine. But when I hosted it to ...
Chiratt Thames's user avatar
0 votes
0 answers
67 views

Why is React production build code (npm run build) locking in environment variables and not updating on serve -s build?

I have a locally hosted project that I'm working on that utilizes a node server (accessing MongoDB), React JS frontend, and an Electron app (basically just a browser shell that connects to the React ...
David Haas's user avatar
0 votes
0 answers
61 views

How to read changes to environment variables dynamically in a React app without app restart?

Is there a way to read changes to environment variables dynamically in a React app? I want to read a few environment variables that determine what is shown in the app, but don't want to restart it if ...
Paddy's user avatar
  • 3,650
1 vote
2 answers
77 views

How to Configure WSO2 Choreo to Serve a config.js File for Environment Variables in a Vite + React App?

I am deploying a Vite + React application on WSO2 Choreo, and I use a config.js file to define runtime environment variables like this: In my index.html, I reference this config.js file like this: &...
Kavindu Nilshan's user avatar
0 votes
1 answer
36 views

Cannot access environment variable inside Github Action for React Application

I am trying to deploy my react app to EC2 using github action. My application needs REACT_APP_BACKEND as the environment variable so I created a secret in the repo and used it inside the GITHUB ACTION....
Ritik Raj's user avatar
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: ...
Aidan Mc Intosh's user avatar
0 votes
0 answers
53 views

Testing different environment variables

We are running tests that test various settings for an environment variable. We need to be able to set the environment variable differently for different tests, and therefore cannot simply import an ....
Josh Busley's user avatar
0 votes
0 answers
89 views

How do I resolved process error in docusaurus project

I'm using Firebase to integrate with Docusaurus project for storage and retrieval. I have a .env file containing the firebase keys. I also have firebase config file. I have been having process is not ...
Enemali's user avatar
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 ...
Aro's user avatar
  • 309
0 votes
0 answers
45 views

How can I read parameters from a script in VSCode powershell

I want to achieve something like this: npm run build sets environment variable BACKEND_URL to a default value of 'http://localhost:8080' and npm run build myCustomURL to set environment variable ...
Asen Asen's user avatar
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 ...
J3D's user avatar
  • 108
0 votes
0 answers
24 views

Programmatically detecting Application Mode in Plesk Node.js container

I have a React front-end that uses an Express back-end hosted in separate spaces on the same server. Both elements use Plesk's Node.js application containers. Both elements have a development and ...
Ijava UK's user avatar
0 votes
0 answers
178 views

Invalid or Unexpected Token' in env.mjs

I keep getting this error message '5173/node_modules/v…st/client/env.mjs:1 Uncaught SyntaxError: Invalid or unexpected token' in my browser when i try to run my vite application I have tried changing ...
Haruna Alvin's user avatar

15 30 50 per page
1
2 3 4 5
43