refactor: 웹·앱 공통 코드를 shared 패키지로 분리 (npm workspaces)
- API 클라이언트·토큰 갱신·순수 함수를 shared/ (@nalssigak/shared) 로 옮김 - 토큰 저장소·API 주소는 configureApi 로 플랫폼에서 넣는다 (웹 localStorage) - 루트 package.json 에 frontend·mobile·shared workspaces, lock 파일 하나로 - 웹 Docker 빌드 대상을 저장소 루트로 (compose context ., 루트 .dockerignore)
This commit is contained in:
1 parent
0d6ab29552
commit
2ab2271d61
51 files changed
+15139
-2994
No files matched your search
+7
-3
@@ -4,7 +4,8 @@ services:
|
||||
# 운영형: docker compose up --build → http://localhost:8080
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
target: prod
|
||||
args:
|
||||
# 비우면 같은 주소의 /v1 로 부르고 nginx 가 backend 로 넘긴다
|
||||
@@ -19,13 +20,16 @@ services:
|
||||
frontend-dev:
|
||||
profiles: ["dev"]
|
||||
build:
|
||||
context: ./frontend
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
target: dev
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- ./frontend:/app/frontend
|
||||
- ./shared:/app/shared
|
||||
- /app/node_modules
|
||||
- /app/frontend/node_modules
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- VITE_SITE_URL=${VITE_SITE_URL:-https://weather.o2o.kr}
|
||||
|
||||
Reference in new issue
Block a user