Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Set vite build mode based on workflow inputs
Browse files Browse the repository at this point in the history
- Modified the CI workflow (`ci.yml`) to dynamically set the build mode using the environment specified in the input. The change in the `Build artifacts` step now includes `--mode {{ inputs.environment }}` in the `pnpm build` command to ensure the correct build mode is utilized based on inputs.

- Updated the production environment variable in `apps/mocksi-lite-next/.env.production` by changing the `VITE_NEST_APP` URL from `https://nest-auth-ts-merge.onrender.com` to `https://app.mocksi.ai`, reflecting the new production endpoint for the application.
  • Loading branch information
elg0nz committed Sep 4, 2024
1 parent c947a60 commit c61397a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Set EXTENSION_ENV variable
run: echo "EXTENSION_ENV=${GITHUB_REF##refs/heads/}" | sed 's/\//-/g' >> $GITHUB_ENV
- name: Build artifacts
run: pnpm build
run: pnpm build --mode {{ inputs.environment }}
env:
EXTENSION_ENV: ${{ env.EXTENSION_ENV }}

Expand Down
2 changes: 1 addition & 1 deletion apps/mocksi-lite-next/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# [NO SENSITIVE DATA] use .env.production.local for secrets / passwords
VITE_NEST_APP=https://nest-auth-ts-merge.onrender.com
VITE_NEST_APP=https://app.mocksi.ai
2 changes: 2 additions & 0 deletions apps/mocksi-lite-next/.env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# [NO SENSITIVE DATA] use .env.local for secrets / passwords
VITE_NEST_APP=https://nest-auth-ts-merge.onrender.com

0 comments on commit c61397a

Please sign in to comment.