diff --git a/.github/workflows/web-client-deploy-development.yml b/.github/workflows/web-client-deploy-development.yml
index f9d1f240..1408fb30 100644
--- a/.github/workflows/web-client-deploy-development.yml
+++ b/.github/workflows/web-client-deploy-development.yml
@@ -11,28 +11,27 @@ jobs:
steps:
- uses: actions/checkout@v4
- # TODO: 패키지 구조 변경 및 s3 배포에 따라 변경해야함
- # - uses: actions/setup-node@v4
- # with:
- # node-version: '20'
- # cache: 'yarn'
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'yarn'
+ # @see https://github.com/cypress-io/github-action#yarn-modern
+ cache-dependency-path: ./yarn.lock
- # - name: build
- # run: |
- # rm ./apps/web/.env && mv ./apps/web/.env.dev ./apps/web/.env
- # yarn set version 3.8.1
- # yarn install --immutable --immutable-cache
- # yarn web codegen
- # yarn web build
+ - name: build
+ run: |
+ rm ./websites/poolc.org/.env && mv ./websites/poolc.org/.env.dev ./websites/poolc.org/.env
+ yarn set version 4.9.2
+ yarn install --immutable
+ yarn workspace @dialga/poolc.org build
- # - name: scp
- # uses: appleboy/scp-action@v0.1.7
- # with:
- # host: ${{ secrets.SSH_HOST }}
- # username: ${{ secrets.SSH_USERNAME }}
- # key: ${{ secrets.SSH_PEM_KEY }}
- # port: ${{ secrets.SSH_PORT }}
- # source: ./apps/web/build/*
- # # TODO: 패키지 구조 변경에 따라 target 디렉토리도 변경해야함
- # target: ~/dialga/apps/web-client/build
- # strip_components: 3
+ - name: scp
+ uses: appleboy/scp-action@v0.1.7
+ with:
+ host: ${{ secrets.SSH_HOST }}
+ username: ${{ secrets.SSH_USERNAME }}
+ key: ${{ secrets.SSH_PEM_KEY }}
+ port: ${{ secrets.SSH_PORT }}
+ source: ./websites/poolc.org/build/*
+ target: ~/k8s/dialga/build
+ strip_components: 3
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..09c06f5d
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v20.19.3
\ No newline at end of file
diff --git a/websites/poolc.org/.env b/websites/poolc.org/.env
index a4f9d7de..ee3b77ac 100644
--- a/websites/poolc.org/.env
+++ b/websites/poolc.org/.env
@@ -1,3 +1,3 @@
-VITE_API_BASE_URL=https://api.poolc.org
-VITE_FILE_URL=https://api.poolc.org
+VITE_API_BASE_URL=https://dev.poolc.org/api
+VITE_FILE_URL=https://dev.poolc.org/api
VITE_MAX_FILE_SIZE=50000000 # 50mb
diff --git a/websites/poolc.org/package.json b/websites/poolc.org/package.json
index dff3ac7b..1309449e 100644
--- a/websites/poolc.org/package.json
+++ b/websites/poolc.org/package.json
@@ -10,7 +10,7 @@
"sync:type": "yarn dlx typesync",
"check:type": "tsc",
"check:type:watch": "yarn check:type --watch",
- "codegen": "openapi -i https://api.poolc.org/v2/api-docs -o src/lib/api-v2/__generated__ --useUnionTypes --useOptions -c axios",
+ "codegen": "dotenv -e ./.env -- bash -c 'openapi -i $VITE_API_BASE_URL/v2/api-docs -o src/lib/api-v2/__generated__ --useUnionTypes --useOptions -c axios'",
"postinstall": "yarn codegen",
"lint": "eslint . && prettier . --check --ignore-path .gitignore",
"format": "eslint . --fix && prettier . --write --ignore-path .gitignore"
@@ -20,6 +20,7 @@
},
"devDependencies": {
"@types/node": "^18.15.3",
+ "dotenv-cli": "^10.0.0",
"eslint": "^8.57.0",
"openapi-typescript-codegen": "^0.28.0",
"prettier": "^3.1.1",
diff --git a/websites/poolc.org/src/components/header/Menus/Menus.tsx b/websites/poolc.org/src/components/header/Menus/Menus.tsx
index c3a906a4..2f060c39 100644
--- a/websites/poolc.org/src/components/header/Menus/Menus.tsx
+++ b/websites/poolc.org/src/components/header/Menus/Menus.tsx
@@ -75,6 +75,11 @@ const Menus = ({
visible: isLogin,
content: 'Room',
},
+ {
+ to: `/${MENU.MY_PAGE}#pks`,
+ visible: isLogin,
+ content: 'K8s',
+ },
{
to: `/${MENU.APPLY}`,
visible: !isLogin || (isLogin && !isAuthorizedRole(role)),
diff --git a/websites/poolc.org/src/components/header/Notification/Notification.tsx b/websites/poolc.org/src/components/header/Notification/Notification.tsx
index 3dbaaa50..743f23eb 100644
--- a/websites/poolc.org/src/components/header/Notification/Notification.tsx
+++ b/websites/poolc.org/src/components/header/Notification/Notification.tsx
@@ -222,7 +222,7 @@ export default function Notification() {
return (
-
+