This commit is contained in:
Yûki VACHOT 2021-11-12 17:07:14 +01:00
parent 255c8b1ca3
commit 569fc127d0
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
module.exports = { module.exports = {
prodUrl: "mongodb+srv://nyxiumyuuki:"+process.env.DB_PASSWORD+"@polynotfound.gd5tw.mongodb.net/polynotfound", prodUrl: process.env.DATABASE,
devUrl: "mongodb://127.0.0.1:27017/polynotfound" devUrl: "mongodb://127.0.0.1:27017/polynotfound"
}; };

View file

@ -1,5 +1,5 @@
const sessionJWTConfig = require ('jsonwebtoken'); const sessionJWTConfig = require ('jsonwebtoken');
require('dotenv').config({ path: './app/.env' }); require('dotenv').config({ path: './app-backend/.env' });
const {sendError} = require ("./response.config"); const {sendError} = require ("./response.config");
if(process.env.JWTRS256_PRIVATE_KEY === undefined || process.env.JWTRS256_PUBLIC_KEY === undefined){ if(process.env.JWTRS256_PRIVATE_KEY === undefined || process.env.JWTRS256_PUBLIC_KEY === undefined){