mirror of https://github.com/buster-so/buster.git
Remove package-lock.json and update Docker Compose commands for Redis integration
- Deleted the `package-lock.json` file from the root directory. - Modified the `dev` target in the API Makefile to start Redis using Docker Compose from the parent directory, improving service orchestration. - Updated the `next.config.mjs` to load environment variables from the parent directory during development. - Added `dotenv` as a dependency in both `package.json` and `package-lock.json` to manage environment variables effectively. These changes streamline the development setup and enhance the management of environment variables.
This commit is contained in:
parent
73822945bf
commit
a2ab3cb641
|
@ -1,5 +1,5 @@
|
|||
dev:
|
||||
docker compose up -d
|
||||
cd .. && docker compose up -d redis && cd api && \
|
||||
supabase start
|
||||
ollama serve &
|
||||
ollama pull mxbai-embed-large
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "buster",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
|
@ -7,6 +7,11 @@ import { dirname } from 'path';
|
|||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
// Load env vars from parent directory in development
|
||||
const envConfig = process.env.NODE_ENV === 'development'
|
||||
? dotenv.config({ path: '../.env' }).parsed
|
||||
: {};
|
||||
|
||||
const nextConfig = {
|
||||
reactStrictMode: false,
|
||||
sassOptions: {
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
"cookies-next": "^4.2.1",
|
||||
"dayjs": "^1.11.13",
|
||||
"dom-to-image": "^2.6.0",
|
||||
"dotenv": "^16.4.7",
|
||||
"echarts": "^5.6.0",
|
||||
"echarts-for-react": "^3.0.2",
|
||||
"echarts-simple-transform": "^1.0.0",
|
||||
|
@ -119,7 +120,7 @@
|
|||
"typescript": "^5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
"node": ">=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@alloc/quick-lru": {
|
||||
|
@ -7343,6 +7344,18 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.4.7",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
||||
"license": "BSD-2-Clause",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://dotenvx.com"
|
||||
}
|
||||
},
|
||||
"node_modules/dt-sql-parser": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/dt-sql-parser/-/dt-sql-parser-4.0.2.tgz",
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
"cookies-next": "^4.2.1",
|
||||
"dayjs": "^1.11.13",
|
||||
"dom-to-image": "^2.6.0",
|
||||
"dotenv": "^16.4.7",
|
||||
"echarts": "^5.6.0",
|
||||
"echarts-for-react": "^3.0.2",
|
||||
"echarts-simple-transform": "^1.0.0",
|
||||
|
|
Loading…
Reference in New Issue