Skip to content
Snippets Groups Projects
Commit 4aa207cb authored by timothycarambat's avatar timothycarambat
Browse files

bump node version requirement

add conditional ENV setting
parent 6d01970d
No related branches found
No related tags found
No related merge requests found
v18.12.1
\ No newline at end of file
v18.13.0
\ No newline at end of file
......@@ -5,6 +5,9 @@
"main": "index.js",
"author": "Timothy Carambat (Mintplex Labs)",
"license": "MIT",
"engines": {
"node": ">=18"
},
"scripts": {
"lint": "cd server && yarn lint && cd .. && cd frontend && yarn lint",
"setup": "cd server && yarn && cd .. && yarn setup:envs && echo \"Please run yarn dev:server and yarn dev:frontend in separate terminal tabs.\"",
......
require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` });
if (process.env.NODE_ENV === 'development') require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` });
const { viewLocalFiles } = require("../utils/files");
const { getVectorDbClass } = require("../utils/helpers");
......
require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` });
if (process.env.NODE_ENV === 'development') require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` });
const express = require("express");
const bodyParser = require("body-parser");
const cors = require("cors");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment