Skip to content

Commit b6a48f3

Browse files
committed
Revert "feat: use run time variables in dist (#2476)"
This reverts commit f19f65c.
1 parent 207b872 commit b6a48f3

File tree

9 files changed

+2
-65
lines changed

9 files changed

+2
-65
lines changed

apps/workflows-dashboard/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,10 @@ CMD ["npm", "run", "dev", "--host"]
1919

2020
FROM nginx:stable-alpine as prod
2121

22-
WORKDIR /app
23-
2422
COPY --from=dev /app/dist /usr/share/nginx/html
2523

26-
COPY --from=dev /app/entrypoint.sh /app/entrypoint.sh
27-
2824
COPY example.nginx.conf /etc/nginx/conf.d/default.conf
2925

30-
RUN chmod a+x /app/entrypoint.sh;
31-
3226
EXPOSE 80
3327

34-
ENTRYPOINT [ "/app/entrypoint.sh" ]
35-
3628
CMD ["nginx", "-g", "daemon off;"]

apps/workflows-dashboard/entrypoint.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

apps/workflows-dashboard/global.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/workflows-dashboard/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<link rel="icon" type="image/png" sizes="16x16" href="/public/favicon-16x16.png" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Workflow Dashboard</title>
9-
<script type="text/javascript" src="/config.js"></script>
109
</head>
1110
<body>
1211
<div id="root"></div>

apps/workflows-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"spellcheck": "cspell \"*\"",
88
"dev": "vite --host",
99
"start": "vite",
10+
"build": "tsc && vite build",
1011
"prod:next": "vite build && vite --host",
11-
"build": "rm -rf dist && tsc && vite build",
1212
"lint": "eslint . --fix",
1313
"format": "prettier --write .",
1414
"format:check": "prettier --check .",

apps/workflows-dashboard/public/config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/workflows-dashboard/src/lib/request/request.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import axios from 'axios';
22

33
export const request = axios.create({
4-
//@ts-ignore
5-
baseURL: globalThis.env.VITE_API_URL,
4+
baseURL: import.meta.env.VITE_API_URL,
65
withCredentials: true,
76
});
87

deploy/.env

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@ BACKOFFICE_PORT=5137
3030
HEADLESS_SVC_PORT=5173
3131
HASHING_KEY_SECRET_BASE64=JDJiJDEwJFRYNjhmQi5JMlRCWHN0aGowakFHSi4=
3232
SECRETS_MANAGER_PROVIDER=in-memory
33-
VITE_DOMAIN=""
34-
VITE_ENVIRONMENT_NAME=""
35-
VITE_IMAGE_LOGO_URL=""
36-
MODE=""

deploy/docker-compose-build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ services:
7878
- ${WORKFLOW_DASHBOARD_PORT}:80
7979
depends_on:
8080
- ballerine-workflow-service
81-
environment:
82-
VITE_DOMAIN: ${VITE_DOMAIN}
83-
VITE_ENVIRONMENT_NAME: ${VITE_ENVIRONMENT_NAME}
84-
VITE_IMAGE_LOGO_URL: ${VITE_IMAGE_LOGO_URL}
85-
MODE: ${MODE}
8681
restart: on-failure
8782
ballerine-postgres:
8883
container_name: postgres

0 commit comments

Comments
 (0)