Skip to content

Commit

Permalink
Merge pull request #14 from bzr-sys/add-staging-var
Browse files Browse the repository at this point in the history
Add staging bzr uri, update action appropriately
  • Loading branch information
paddyohanlon authored Oct 18, 2024
2 parents dffed54 + 7762579 commit 7df7b2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/aws-s3-cloudfront-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
if: github.event.inputs.environment == 'staging'
env:
VITE_APP_ID: ${{ secrets.STAGING_VITE_APP_ID }}
VITE_BAZAAR_URI: ${{ secrets.STAGING_VITE_BAZAAR_URI }}
run: npm run build

- name: Deploy to S3 and invalidate CloudFront - Production
Expand Down
4 changes: 3 additions & 1 deletion src/bazaar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const config: BazaarOptions = {
}
}

if (import.meta.env.DEV) {
if (import.meta.env.VITE_BAZAAR_URI) {
config.bazaarUri = import.meta.env.VITE_BAZAAR_URI
} else if (import.meta.env.DEV) {
config.bazaarUri = 'http://localhost:3377'
}

Expand Down

0 comments on commit 7df7b2e

Please sign in to comment.