2023-10-12 23:04:25 -04:00
|
|
|
import { resolve } from "path";
|
2023-09-25 19:54:05 -04:00
|
|
|
import * as dotenv from "dotenv";
|
2023-10-12 23:04:25 -04:00
|
|
|
const FUCKYOU = "/rockfic/abc-rockfic-v3";
|
2023-12-28 05:23:41 -05:00
|
|
|
// dotenv.config({ path: resolve("/home/rockfic/rockfic-staging/.env") });
|
2023-09-25 19:54:05 -04:00
|
|
|
export const hasMigrated = false;
|
2023-10-12 23:04:25 -04:00
|
|
|
export const uri =
|
|
|
|
process.env.NODE_ENV == "development"
|
2023-12-26 19:29:16 -05:00
|
|
|
? `mongodb://127.0.0.1/${process.env.DBNAME}?authSource=admin`
|
2023-10-12 23:04:25 -04:00
|
|
|
: `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@${process.env.DB}?authSource=admin`;
|
|
|
|
export const olduri =
|
|
|
|
process.env.NODE_ENV == "development"
|
|
|
|
? `mongodb://127.0.0.1/rockfic_old?authSource=admin`
|
2023-12-28 05:23:41 -05:00
|
|
|
: `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@127.0.0.1:27017/rockfic_old?authSource=admin`;
|