Skip to content

Commit d6e8e88

Browse files
committed
feat: Update backend configuration and remove obsolete workflow
1 parent 2f581b9 commit d6e8e88

File tree

4 files changed

+23
-53
lines changed

4 files changed

+23
-53
lines changed

.env

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
SD_BACKEND_URL="http://localhost:9000"
2-
SD_BACKEND_API="/api/v1"
3-
SD_BACKEND_V2=false
4-
5-
# SD_BACKEND_URL="http://80.158.108.251:8000"
6-
# SD_BACKEND_API="/v2"
7-
# SD_BACKEND_V2=true
1+
SD_BACKEND_URL="http://80.158.108.251:8000"
2+
SD_BACKEND_API="/v2"
3+
SD_BACKEND_V2=true
84

95
# only for development
106
SD_BACKEND_FILE=false

.github/workflows/Web.yaml

-44
This file was deleted.

Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:lts-alpine AS base
2+
3+
ENV PNPM_HOME="/pnpm"
4+
ENV PATH="$PNPM_HOME:$PATH"
5+
RUN corepack enable
6+
7+
FROM base AS prod
8+
9+
COPY pnpm-lock.yaml /app
10+
WORKDIR /app
11+
RUN pnpm fetch
12+
13+
COPY . /app
14+
RUN pnpm run build
15+
16+
FROM steebchen/nginx-spa:stable
17+
COPY --from=prod /app/dist/ /app
18+
EXPOSE 80
19+
CMD [ "nginx" ]

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"type": "module",
55
"scripts": {
66
"dev": "farm start",
7-
"start": "farm start",
7+
"start": "farm preview",
88
"build": "farm build",
9-
"preview": "farm preview",
109
"clean": "farm clean"
1110
},
1211
"dependencies": {

0 commit comments

Comments
 (0)