Skip to content

Commit 77ac632

Browse files
committed
Update Code
1 parent 76c24ef commit 77ac632

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Create .env file
9292
run: |
93-
echo "VITE_API_URL=http://localhost:8080" >> .env
93+
echo "VITE_API_URL=http://localhost:8080" >> .env.domain
9494
9595
- name: Set up Docker Buildx
9696
uses: docker/setup-buildx-action@v3
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Create .env file
114114
run: |
115-
echo "VITE_API_URL=http://localhost:8080" >> .env
115+
echo "VITE_API_URL=http://localhost:8080" >> .env.domain
116116
117117
- name: Install dependencies
118118
run: npm ci
@@ -139,7 +139,7 @@ jobs:
139139

140140
- name: Create .env file
141141
run: |
142-
echo "VITE_API_URL=http://localhost:8080" >> .env
142+
echo "VITE_API_URL=http://localhost:8080" >> .env.domain
143143
144144
- name: Install dependencies
145145
run: npm ci
@@ -166,7 +166,7 @@ jobs:
166166

167167
- name: Create .env file
168168
run: |
169-
echo "VITE_API_URL=http://localhost:8080" >> .env
169+
echo "VITE_API_URL=http://localhost:8080" >> .env.domain
170170
171171
- name: Install dependencies
172172
run: npm ci
@@ -193,7 +193,7 @@ jobs:
193193

194194
- name: Create .env file
195195
run: |
196-
echo "VITE_API_URL=http://localhost:8080" >> .env
196+
echo "VITE_API_URL=http://localhost:8080" >> .env.domain
197197
198198
- name: Install dependencies
199199
run: npm ci

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci
55
COPY . .
6-
COPY .env .env
76
RUN npm run build
87

98
FROM nginx:stable-alpine

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc -b && vite build",
7+
"dev": "vite --mode domain",
8+
"build": "tsc -b && vite build --mode domain",
99
"preview": "vite preview",
1010
"lint-check": "eslint . && prettier --check . && stylelint \"**/*.{css,scss}\"",
1111
"lint-fix": "eslint . --fix && prettier --write . && stylelint \"**/*.{css,scss}\" --fix"

0 commit comments

Comments
 (0)