mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-24 21:48:12 +00:00
bump node version requirement
add conditional ENV setting
This commit is contained in:
parent
6d01970df2
commit
4aa207cbe8
4 changed files with 6 additions and 3 deletions
|
@ -1 +1 @@
|
|||
v18.12.1
|
||||
v18.13.0
|
|
@ -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.\"",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
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");
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue