Skip to content

Commit 16f8c9c

Browse files
committed
fix: deploy production build
1 parent d03fbf1 commit 16f8c9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build:
1010
name: Build Docusaurus
1111
runs-on: ubuntu-latest
12+
env:
13+
NODE_ENV: production
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:

docusaurus.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import versions from './versions.json';
1313

1414
const isDev = process.env.NODE_ENV === 'development';
1515
const isBuildFast = isDev || !!process.env.BUILD_FAST;
16-
const isProd =
17-
process.env.CURRENT_BRANCH === 'main' && process.env.CONTEXT === 'production';
16+
const isProd = process.env.NODE_ENV === 'production';
1817

1918
const config: Config = {
2019
organizationName: 'someengineering',

0 commit comments

Comments
 (0)