mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 03:07:05 +00:00
commit
a70c0ead57
@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function getOllamaModels(): Promise<ModelInfo[]> {
|
async function getOllamaModels(): Promise<ModelInfo[]> {
|
||||||
//if (typeof window === 'undefined') {
|
/*
|
||||||
//return [];
|
* if (typeof window === 'undefined') {
|
||||||
//}
|
* return [];
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const baseUrl = getOllamaBaseUrl();
|
const baseUrl = getOllamaBaseUrl();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
services:
|
services:
|
||||||
bolt-ai:
|
app-prod:
|
||||||
image: bolt-ai:production
|
image: bolt-ai:production
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@ -27,9 +27,9 @@ services:
|
|||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
command: pnpm run dockerstart
|
command: pnpm run dockerstart
|
||||||
profiles:
|
profiles:
|
||||||
- production # This service only runs in the production profile
|
- production
|
||||||
|
|
||||||
bolt-ai-dev:
|
app-dev:
|
||||||
image: bolt-ai:development
|
image: bolt-ai:development
|
||||||
build:
|
build:
|
||||||
target: bolt-ai-development
|
target: bolt-ai-development
|
||||||
@ -60,6 +60,6 @@ services:
|
|||||||
consistency: cached
|
consistency: cached
|
||||||
- /app/node_modules
|
- /app/node_modules
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173" # Same port, no conflict as only one runs at a time
|
- "5173:5173"
|
||||||
command: pnpm run dev --host 0.0.0.0
|
command: pnpm run dev --host 0.0.0.0
|
||||||
profiles: ["development", "default"] # Make development the default profile
|
profiles: ["development", "default"]
|
||||||
|
Loading…
Reference in New Issue
Block a user