Skip to content

Commit 661b216

Browse files
authored
fix: Correctly detect development mode. (#749)
1 parent 7e14489 commit 661b216

File tree

1 file changed

+2
-2
lines changed
  • packages/plugin-docusaurus-v3/src

1 file changed

+2
-2
lines changed

packages/plugin-docusaurus-v3/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function OramaPluginDocusaurus(
5858
},
5959

6060
async allContentLoaded({ actions, allContent }) {
61-
const isDevelopment = !options.cloud?.oramaCloudAPIKey
61+
const isDevelopment = process.env.NODE_ENV === 'development' || !options.cloud?.oramaCloudAPIKey
6262
const docsInstances: string[] = []
6363
const oramaCloudAPIKey = options.cloud?.oramaCloudAPIKey
6464
const searchDataConfig = [
@@ -323,4 +323,4 @@ async function deployData({
323323

324324
return undefined
325325
}
326-
}
326+
}

0 commit comments

Comments
 (0)