add prod/dev var
All checks were successful
Build and Push Docker Images / build (push) Successful in 2m36s
All checks were successful
Build and Push Docker Images / build (push) Successful in 2m36s
This commit is contained in:
@@ -2,7 +2,14 @@
|
|||||||
"hash": "92874bb6",
|
"hash": "92874bb6",
|
||||||
"configHash": "ae1864eb",
|
"configHash": "ae1864eb",
|
||||||
"lockfileHash": "a03ea363",
|
"lockfileHash": "a03ea363",
|
||||||
"browserHash": "85be85d4",
|
"browserHash": "03c64258",
|
||||||
"optimized": {},
|
"optimized": {
|
||||||
|
"vue": {
|
||||||
|
"src": "../../node_modules/.pnpm/vue@3.5.22_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
||||||
|
"file": "vue.js",
|
||||||
|
"fileHash": "6b167e91",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
"chunks": {}
|
"chunks": {}
|
||||||
}
|
}
|
||||||
12704
client/.vite/deps/vue.js
Normal file
12704
client/.vite/deps/vue.js
Normal file
File diff suppressed because it is too large
Load Diff
7
client/.vite/deps/vue.js.map
Normal file
7
client/.vite/deps/vue.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -86,10 +86,13 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://srs-server:3000',
|
target: process.env.NODE_ENV === 'DEV'
|
||||||
|
? 'http://srs-server:3000'
|
||||||
|
: 'http://192.168.0.26:3000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
allowedHosts: ['srs.crylia.de', 'localhost']
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import mongoose from 'mongoose'
|
import mongoose from 'mongoose'
|
||||||
|
|
||||||
export async function connectMongo() {
|
export async function connectMongo() {
|
||||||
const url = process.env.MONGO_URL || 'mongodb://mongo:27017/srs'
|
const url = process.env.NODE_ENV === 'DEV' ? 'mongodb://mongo-srs:27017/srs' : 'mongodb://192.168.0.26:27017/srs'
|
||||||
if (mongoose.connection.readyState === 1) return
|
if (mongoose.connection.readyState === 1) return
|
||||||
await mongoose.connect(url)
|
await mongoose.connect(url)
|
||||||
console.log('✅ Connected to MongoDB at', url)
|
console.log('✅ Connected to MongoDB at', url)
|
||||||
|
|||||||
Reference in New Issue
Block a user