Skip to content

Commit c7c00c3

Browse files
committed
updated workflow
1 parent f7f5012 commit c7c00c3

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/react-frontend.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,7 @@ jobs:
2323
run: npm ci
2424

2525
- name: Build
26-
run: VITE_AVORED_FRONTEND_BASE_URL=${{secrets.VITE_AVORED_FRONTEND_BASE_URL}}
27-
VITE_AVORED_BACKEND_BASE_URL=${{secrets.VITE_AVORED_BACKEND_BASE_URL}}
28-
VITE_AVORED_CMS_TOKEN=${{secrets.VITE_AVORED_CMS_TOKEN}} npm run build
29-
#
30-
# - name: Copy files via ssh
31-
# uses: appleboy/scp-action@master
32-
# with:
33-
# host: ${{ secrets.HOST }}
34-
# username: ${{ secrets.USERNAME }}
35-
# key: ${{ secrets.SSH_KEY }}
36-
# source: "./ts-grpc-react-front/build"
37-
# target: ${{ secrets.REACT_TARGET_PATH }}
38-
26+
run: npm run build
3927
- name: Deploy demo front files via ssh
4028
uses: appleboy/scp-action@master
4129
with:
@@ -44,3 +32,4 @@ jobs:
4432
key: ${{ secrets.SSH_KEY }}
4533
source: "./ts-grpc-vite-front/dist"
4634
target: ${{ secrets.REACT_DEMO_TARGET_PATH }}
35+
strip_components: 1

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async fn main() -> Result<(), Error> {
137137
// ["x-grpc-web", "content-type", "x-user-agent", "grpc-timeout", "authorization"];
138138

139139
let cors = CorsLayer::new()
140-
.allow_origin(Any) // Allow all origins for local development
140+
.allow_origin(origins) // Allow all origins for local development
141141
.allow_headers(Any) // Allow all headers
142142
.allow_methods(Any) // Allow all methods
143143
.expose_headers(Any); // Expose all headers

0 commit comments

Comments
 (0)