diff --git a/.github/workflows/app_build.yaml b/.github/workflows/app_build.yaml index b79a13e..10c4235 100644 --- a/.github/workflows/app_build.yaml +++ b/.github/workflows/app_build.yaml @@ -9,16 +9,15 @@ on: required: true type: string -env: - VITE_API_URL: "https://flying-api-test.internal.lemonflower-48c61d49.centralus.azurecontainerapps.io" - VITE_CLIENT_ID: "d3562a45-050d-4f9a-baed-0497c7156924" - VITE_TENANT_ID: "0f23652e-4b15-420f-991e-3d6fc769a31d" - VITE_REDIRECT_URL: "https://flying-app-test.lemonflower-48c61d49.centralus.azurecontainerapps.io" - jobs: build: runs-on: ubuntu-latest environment: ${{ inputs.calling_workflow }} + env: + VITE_API_URL: ${{ vars.VITE_API_URL }} + VITE_CLIENT_ID: ${{ vars.VITE_CLIENT_ID }} + VITE_TENANT_ID: ${{ vars.VITE_TENANT_ID }} + VITE_REDIRECT_URL: ${{ vars.VITE_REDIRECT_URL }} steps: - run: | printenv diff --git a/api/src/main.ts b/api/src/main.ts index d3236d9..cfa9d95 100644 --- a/api/src/main.ts +++ b/api/src/main.ts @@ -9,7 +9,6 @@ async function bootstrap() { const httpService = new HttpService(); const app = await NestFactory.create(AppModule); - app.enableCors(); app.setGlobalPrefix('api'); app.useGlobalFilters(new HttpExceptionFilter()); @@ -23,7 +22,6 @@ async function bootstrap() { throw new InternalServerErrorException(); } ); - await app.listen(3000); } diff --git a/app/package.json b/app/package.json index 0fa3f03..808d227 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "app", "private": true, - "version": "0.0.26", + "version": "0.0.27", "type": "module", "scripts": { "dev": "vite",