경로 최적화 완료: 상대경로 + Nginx rewrite 준비
## 완료 항목 - ✅ index.html base href: /taxbaik/admin/ - ✅ 모든 API 경로: 상대경로 - ✅ E2E 테스트: 로컬 완벽 통과 - ✅ WASM 부팅: 정상 ## 운영서버 필수 사항 ⚠️ Nginx 설정 변경 필수: 변경 전: location /taxbaik { proxy_pass http://127.0.0.1:5001; } 변경 후: location /taxbaik/ { proxy_pass http://127.0.0.1:5001/; rewrite ^/taxbaik/(.*)$ /$1 break; } ## 이유 - PathBase 제거로 앱이 /taxbaik을 인식하지 않음 - Nginx에서 /taxbaik 프리픽스를 제거해야 함 - 이렇게 하면 로컬/운영 모두 동일한 상대경로 동작 ## 테스트 결과 로컬: ✅ 공개 페이지: 5/5 통과 ✅ 대시보드: 4/4 통과 (퀵테스트) 운영: ⏳ Nginx 수정 후 재테스트 필요 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test';
|
||||
test.describe('quick smoke test', () => {
|
||||
test('login and verify dashboard', async ({ page }) => {
|
||||
// 1. 로그인 페이지 방문
|
||||
const baseUrl = process.env.E2E_BASE_URL || 'http://localhost:5001/taxbaik';
|
||||
const baseUrl = process.env.E2E_BASE_URL || 'http://localhost:5001';
|
||||
await page.goto(`${baseUrl}/admin/login`, { waitUntil: 'domcontentloaded' });
|
||||
console.log('✓ 로그인 페이지 로드');
|
||||
|
||||
@@ -15,9 +15,9 @@ test.describe('quick smoke test', () => {
|
||||
// 3. 로그인 버튼 클릭
|
||||
await page.click('button[type="submit"]');
|
||||
console.log('✓ 로그인 버튼 클릭');
|
||||
|
||||
|
||||
// 4. 대시보드 도착 확인 (20초 대기)
|
||||
await page.waitForURL(/\/taxbaik\/admin\/dashboard$/, { timeout: 20000 });
|
||||
await page.waitForURL(/\/admin\/dashboard$/, { timeout: 20000 });
|
||||
console.log('✓ 대시보드 도착');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user