Questions tagged [.env]

120 questions
3
votes
3 answers

How to change Nuxt 3 Port

I tried the old solution but it not works any more, then I tried to read the nuxt 3 documentation, and it is not actually update. So how to change How to change Nuxt 3 Port without change dev script like @kissu did here I tried the old solution on…
Jessé Filho
  • 41
  • 1
  • 7
2
votes
1 answer

How to run project with Gitlab CI registry variables?

Can you explain. I have Gitlab runner and now I am configuring CI/CD using one guide. It says that runner requires the image names in docker-compose.yml to be named like…
fgrd4035
  • 51
  • 4
2
votes
1 answer

Can I use "aws-toolkit for VSCode" to keep my credentials safely there while I am doing app development?

I am working on a Flutter + Typescript-NodeJS application and I need to use Amazon S3 directly from inside my Flutter and also NodeJS code. What I am doing now is keeping my access and secret keys within a .env file inside my project but I think…
2
votes
1 answer

accessing .env variables in vue3 using vite

I'm trying to pull a key from .env in my vue3 page. I've read the instructions at https://vitejs.dev/guide/env-and-mode.html and I can get VITE_PUSHER_SCHEME using: console.log(import.meta.env.VITE_PUSHER_SCHEME); The same doesn't work for…
maganthro
  • 361
  • 1
  • 3
  • 10
2
votes
1 answer

Can't set a different name for .env file inside docker-compose

I'm refactoring and writing a new dockercompose for our project and I'm facing some really strange problems. My dockercompose has different services inside, each one has the own .env file. All the .env files are inside the same directory of the…
Pikappa
  • 284
  • 1
  • 11
2
votes
0 answers

How to deploy/publish an ASP.NET Core React JS website with a particular .env file?

I have a simple ASP.NET Core React JS web app. I've been publishing it directly to Azure just fine. Recently I introduced a 2nd environment (prod vs dev). How can I publish it to Prod using .env, and publish to Dev using .env.dev ? Notes: I build…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
2
votes
0 answers

How to connect my mongodb to my nodejs app, resolving .env file error

//in my .env file MOVIEREVIEWS_DB_URI=mongodb+srv://driiisdev:password123@cluster1.ektx7.mongodb.net/sample_mflix?retryWrites=true&w=majority PORT=8000 //starting port of server //in my index.js file import app from "./server.js" import mongodb…
driiisdev
  • 45
  • 5
1
vote
1 answer

React native .env IOS bundling success but android(Emulator) bundling failed

I was trying to load the API key from .env to my app.js in this way, iOS Bundling was completed, but Android Bundling failed. This is in an expo environment. Here is the babel.config.js: module.exports = function (api) { api.cache(true); return…
PDD123
  • 21
  • 2
1
vote
1 answer

Content Security Policy issue - Directus 9.24.0v

i am trying to display pdf file from directus CMS site, but it showing error "Refused to load plugin data from 'https://eal.com/assets/7e7ec2d1-eab7-41fa-8181-e972eba1fd1e' because it violates the following Content Security Policy directive:…
1
vote
4 answers

Issues accessing variables from .env file

I have been trying to get my API key from my .env file that is at the root of my folder of my Vite app to a JSX file where I want to do the fetching, but each time I use process.env.{MY_VARIABLE_NAME} the browser console returns an…
1
vote
0 answers

I am not able to use STRIPE key in react app with .env

ROOT: package.js .env MY_KEY= "pk_test_*********************" pages Stripe.js Stripe.js import { useSelector } from "react-redux"; import styled from "styled-components"; import StripeCheckout from 'react-stripe-checkout'; import { useState } from…
1
vote
0 answers

Why project with Gitlab CI/CD doesn't build?

I am trying to add CI/CD to my django project with docker. To add CI/CD I found out that I need to create new .env variable for my docker-compose.yml service's apps: NEW_VAR=$CI_REGISTRY//
fgrd4035
  • 51
  • 4
1
vote
2 answers

Is someone trying to hack into my Django app?

I have a Django app (personal project) running live in production on Azure VM. I have looked in /var/log/django.log and I can see a long list of warnings. These look like someone is trying to scan my VM/app in order to find .env file, login…
LLaP
  • 2,528
  • 4
  • 22
  • 34
1
vote
1 answer

In node.js .env file not working correctly, so can I solve it?

I have a .env file in my project located in the same file where server.js does. But it server.js file does not see this file. When I test, I always get 'undefined'. This is my server.js file: const express = require("express"); const path =…
srmback
  • 31
  • 6
1
vote
1 answer

process.env can't find terminal environmental variables when running IOS/Android

Variables defined in .env file are not showing up in process.env (in babel.config.js as well as in index.tsx) .env: ENV_VAR1=testabc ENV_VAR2=testdef babel.config: console.log(process.env); module.exports = { .... Terminal: user@Users-MacBook-Pro…
bieboebap
  • 320
  • 3
  • 18
1
2 3 4 5 6 7 8