-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.bat
More file actions
34 lines (27 loc) · 981 Bytes
/
dev.bat
File metadata and controls
34 lines (27 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
setlocal
TITLE AI Social Lab - Dev Environment
COLOR 0B
echo ===================================================
echo AI SOCIAL LAB - DEV ENVIRONMENT
echo ===================================================
:: 1. Check Node Modules
if not exist "node_modules\" (
echo [!] node_modules not found. Installing dependencies...
call npm install
)
:: 2. CORS Auto-Configuration (Session Level)
:: Keep the default session locked to localhost. Use fix_cors_windows.ps1 or
:: explicit custom config if you need LAN/mobile access.
echo [*] Setting OLLAMA_ORIGINS to localhost allowlist for this session...
set OLLAMA_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
:: 3. Check if we should run the System-Level Fix
if exist "fix_cors_windows.ps1" (
echo [?] Tip: Run 'fix_cors_windows.ps1' separately if you want the same localhost allowlist applied permanently.
)
:: 4. Start App
echo.
echo [^>] Starting Vite Server...
echo.
call npm run dev
pause