Skip to content

Commit

Permalink
fix next config
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Sep 14, 2024
1 parent 9a9daf1 commit 6ece746
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
21 changes: 7 additions & 14 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
NEXT_PUBLIC_RUNTIME_ENV=production
NEXT_PUBLIC_HOME_URL=https://tidb.net
NEXT_PUBLIC_ACCOUNTS_BASE_URL=https://accounts.pingcap.cn
NEXT_PUBLIC_RUNTIME_ENV=preview
NEXT_PUBLIC_HOME_URL=https://community-preview.tidb.net
NEXT_PUBLIC_ACCOUNTS_BASE_URL=https://accounts-preview.pingcap.cn
NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_HOME_URL
NEXT_PUBLIC_LOCALES_BASE_URL=$NEXT_PUBLIC_HOME_URL/locales
NEXT_PUBLIC_STRAPI_BASE_URL=http://community-cms.default.svc.cluster.local
NEXT_PUBLIC_ASKTUG_WEBSITE_BASE_URL=https://asktug.com
NEXT_PUBLIC_ASKTUG_PROXY_BASE_URL=$NEXT_PUBLIC_HOME_URL/_asktug

# Available feature toggles
NEXT_PUBLIC_FT_ACTIVITIES=true

# DSN of pingcap/tug-website
SENTRY_DSN=https://cc3bce60904940f8a8e5795ef6be2ae7@o226447.ingest.sentry.io/5756513
NEXT_PUBLIC_SENTRY_DSN=$SENTRY_DSN
NEXT_PUBLIC_CDN_URL=https://img1.tidb.net
NEXT_PUBLIC_CMS_CDN_URL=https://img3.pingcap.com
NEXT_PUBLIC_CDN_URL=https://tidb-net-preview.oss-cn-beijing.aliyuncs.com
NEXT_PUBLIC_ASKTUG_PROXY_BASE_URL=$NEXT_PUBLIC_HOME_URL/_asktug
NEXT_PUBLIC_ASKTUG_WEBSITE_BASE_URL=https://new.asktug.com
SENTRY_ORG=pingcap
SENTRY_PROJECT=tug-website
ENABLE_SENTRY=true
ENABLE_SENTRY=false
SENTRY_NO_PROGRESS_BAR=1
SENTRY_LOG_LEVEL=debug
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const { withSentryConfig } = require('@sentry/nextjs');

const { i18n } = require('./next-i18next.config');

const os = require('os');
const platform = os.platform();
const outputStandaloneEnable = platform === 'linux';
const outputStandaloneEnable = !!process.env.CI;

const unifyNodeModules = (names) =>
names.reduce(
Expand Down

0 comments on commit 6ece746

Please sign in to comment.