File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ deepwiki/
183
183
| ` OPENAI_API_KEY ` | 埋め込みのための OpenAI API キー | ◯ | |
184
184
| ` OPENROUTER_API_KEY ` | 代替モデルのための OpenRouter API キー | ✗ | OpenRouter モデルを使用する場合にのみ必須です |
185
185
| ` PORT ` | API サーバーのポート(デフォルト:8001) | ✗ | API とフロントエンドを同じマシンでホストする場合、` NEXT_PUBLIC_SERVER_BASE_URL ` のポートを適宜変更してください |
186
- | ` NEXT_PUBLIC_SERVER_BASE_URL ` | API サーバーのベース URL(デフォルト:` http://localhost:8001 ` ) | ✗ | |
186
+ | ` SERVER_BASE_URL ` | API サーバーのベース URL(デフォルト:` http://localhost:8001 ` ) | ✗ | |
187
187
188
188
### 設定ファイル
189
189
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ services:
14
14
- PORT=${PORT:-8001}
15
15
- NODE_ENV=production
16
16
- SERVER_BASE_URL=http://localhost:${PORT:-8001}
17
- - NEXT_PUBLIC_SERVER_BASE_URL=http://localhost:${PORT:-8001}
18
17
- LOG_LEVEL=${LOG_LEVEL:-INFO}
19
18
- LOG_FILE_PATH=${LOG_FILE_PATH:-api/logs/application.log}
20
19
volumes :
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ Remember:
457
457
458
458
try {
459
459
// Create WebSocket URL from the server base URL
460
- const serverBaseUrl = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
460
+ const serverBaseUrl = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
461
461
const wsBaseUrl = serverBaseUrl . replace ( / ^ h t t p / , 'ws' ) ;
462
462
const wsUrl = `${ wsBaseUrl } /ws/chat` ;
463
463
@@ -750,7 +750,7 @@ IMPORTANT:
750
750
751
751
try {
752
752
// Create WebSocket URL from the server base URL
753
- const serverBaseUrl = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
753
+ const serverBaseUrl = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
754
754
const wsBaseUrl = serverBaseUrl . replace ( / ^ h t t p / , 'ws' ) ;
755
755
const wsUrl = `${ wsBaseUrl } /ws/chat` ;
756
756
@@ -1584,7 +1584,7 @@ IMPORTANT:
1584
1584
const cachedData = await response . json ( ) ; // Returns null if no cache
1585
1585
if ( cachedData && cachedData . wiki_structure && cachedData . generated_pages && Object . keys ( cachedData . generated_pages ) . length > 0 ) {
1586
1586
console . log ( 'Using server-cached wiki data' ) ;
1587
- if ( cachedData . mode ) {
1587
+ if ( cachedData . model ) {
1588
1588
setSelectedModelState ( cachedData . model ) ;
1589
1589
}
1590
1590
if ( cachedData . provider ) {
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ Give me the numbered list with brief descriptions for each slide. Be creative bu
265
265
266
266
try {
267
267
// Create WebSocket URL from the server base URL
268
- const serverBaseUrl = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
268
+ const serverBaseUrl = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
269
269
const wsBaseUrl = serverBaseUrl . replace ( / ^ h t t p / , 'ws' ) ;
270
270
const wsUrl = `${ wsBaseUrl } /ws/chat` ;
271
271
@@ -541,7 +541,7 @@ Please return ONLY the HTML with no markdown formatting or code blocks. Just the
541
541
542
542
try {
543
543
// Create WebSocket URL from the server base URL
544
- const serverBaseUrl = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
544
+ const serverBaseUrl = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
545
545
const wsBaseUrl = serverBaseUrl . replace ( / ^ h t t p / , 'ws' ) ;
546
546
const wsUrl = `${ wsBaseUrl } /ws/chat` ;
547
547
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ Make the workshop content in ${language === 'en' ? 'English' :
313
313
314
314
try {
315
315
// Create WebSocket URL from the server base URL
316
- const serverBaseUrl = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
316
+ const serverBaseUrl = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
317
317
const wsBaseUrl = serverBaseUrl . replace ( / ^ h t t p / , 'ws' ) ;
318
318
const wsUrl = `${ wsBaseUrl } /ws/chat` ;
319
319
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
// Get the server base URL from environment or use default
7
- const SERVER_BASE_URL = process . env . NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001' ;
7
+ const SERVER_BASE_URL = process . env . SERVER_BASE_URL || 'http://localhost:8001' ;
8
8
9
9
// Convert HTTP URL to WebSocket URL
10
10
const getWebSocketUrl = ( ) => {
You can’t perform that action at this time.
0 commit comments