Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Sep 6, 2024
1 parent 0fe1018 commit 271648c
Show file tree
Hide file tree
Showing 23 changed files with 1,844 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
SENTRY_DSN: https://[email protected]/6588620
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
GIFT_APP_API_BASE: us-west-2.staging.shared.aws.tidbcloud.com
GIFT_TIDBCLOUD_BASE_URL: https://staging.tidbcloud.com
OSSINSIGHT_PREVIEW: true
TIDBCLOUD_HOST: staging.tidbcloud.com
run: npm run build
Expand Down
4 changes: 4 additions & 0 deletions web/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const fs = require('fs');

const HOST = process.env.APP_HOST || 'https://ossinsight.io';
const API_BASE = process.env.APP_API_BASE || 'https://api.ossinsight.io';
const GIFT_APP_API_BASE = process.env.GIFT_APP_API_BASE || 'https://gift.ossinsight.io';
const GIFT_TIDBCLOUD_BASE_URL = process.env.GIFT_TIDBCLOUD_BASE_URL || 'https://tidbcloud.com';
const DATABASE_URL = process.env.DATABASE_URL || '';
const SENTRY_DSN = process.env.SENTRY_DSN || '';

Expand Down Expand Up @@ -66,6 +68,8 @@ const config = {
path.resolve(__dirname, 'plugins/define'),
{
'process.env.APP_API_BASE': JSON.stringify(API_BASE),
'process.env.GIFT_APP_API_BASE': JSON.stringify(GIFT_APP_API_BASE),
'process.env.GIFT_TIDBCLOUD_BASE_URL': JSON.stringify(GIFT_TIDBCLOUD_BASE_URL),
'process.env.SENTRY_DSN': SENTRY_DSN ? JSON.stringify(SENTRY_DSN) : undefined,
}
],
Expand Down
288 changes: 288 additions & 0 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 271648c

Please sign in to comment.