We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0ded1 commit 61291c8Copy full SHA for 61291c8
docusaurus.config.js
@@ -1,6 +1,7 @@
1
// @ts-check
2
3
-const PREVIEW = process.env.PREVIEW ?? "false";
+// REGION can be either "cn" or "global"
4
+const REGION = process.env.REGION || "cn";
5
6
/** @type {import('@docusaurus/types').Config} */
7
const config = {
@@ -177,7 +178,7 @@ const config = {
177
178
return {
179
plugins: [
180
new webpack.DefinePlugin({
- "process.env.REGION": JSON.stringify(process.env.REGION || "cn"),
181
+ "process.env.REGION": JSON.stringify(REGION),
182
}),
183
],
184
};
0 commit comments