Skip to content

Commit dd3088e

Browse files
committed
chore: update ci and cors
1 parent f7e39fe commit dd3088e

2 files changed

Lines changed: 6 additions & 32 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,8 @@ on:
66
branches: [main]
77

88
jobs:
9-
analyze:
10-
name: Analyze
11-
runs-on: ubuntu-latest
12-
permissions:
13-
actions: read
14-
contents: read
15-
security-events: write
16-
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
language: ['javascript']
21-
22-
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v2
25-
26-
# Initializes the CodeQL tools for scanning.
27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v1
29-
with:
30-
languages: ${{ matrix.language }}
31-
32-
- name: Autobuild
33-
uses: github/codeql-action/autobuild@v1
34-
35-
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v1
37-
389
tests:
3910
name: '🧪 - Tests'
40-
needs: [analyze]
4111
runs-on: ubuntu-latest
4212
strategy:
4313
matrix:
@@ -90,7 +60,7 @@ jobs:
9060
if: github.ref == 'refs/heads/main'
9161
name: '🚀 - Deploy'
9262
runs-on: ubuntu-latest
93-
needs: [analyze, tests]
63+
needs: [tests]
9464
environment:
9565
name: production
9666
url: 'https://api.vision-data.io'

config/cors.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ const corsConfig: CorsConfig = {
4444
| one of the above values.
4545
|
4646
*/
47-
origin: ['https://*.vision-data.io', 'http://localhost:8080'],
47+
origin: [
48+
'https://staging.app.vision-data.io',
49+
'https://app.vision-data.io',
50+
'http://localhost:8080',
51+
],
4852

4953
/*
5054
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)