This is an automated email from the ASF dual-hosted git repository.

jeffreyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 96f141092c4 fix:worker load (#3559)
96f141092c4 is described below

commit 96f141092c48c471aacc46f685f079a4c70e81d0
Author: yangon <[email protected]>
AuthorDate: Thu Apr 16 19:18:56 2026 +0800

    fix:worker load (#3559)
---
 config/custom-docusaurus-plugin.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/config/custom-docusaurus-plugin.js 
b/config/custom-docusaurus-plugin.js
index 5a3ddf92063..d729e84ac4e 100644
--- a/config/custom-docusaurus-plugin.js
+++ b/config/custom-docusaurus-plugin.js
@@ -4,6 +4,13 @@ module.exports = function (context, options) {
     return {
         name: 'custom-docusaurus-plugin',
         configureWebpack(config, isServer, utils) {
+            const localePublicPath =
+                context.i18n.currentLocale === 'en'
+                    ? '/'
+                    : context.i18n.currentLocale === 'zh-CN'
+                    ? '/zh-CN/'
+                    : '/ja/';
+
             return {
                 output: {
                     ...config.output,
@@ -11,7 +18,10 @@ module.exports = function (context, options) {
                         context.i18n.currentLocale === 'en'
                             ? 'https://cdnd.selectdb.com/' :
                             context.i18n.currentLocale === 'zh-CN' ?
-                                'https://cdnd.selectdb.com/zh-CN/' : 
'https://cdnd.selectdb.com/ja/'
+                                'https://cdnd.selectdb.com/zh-CN/' : 
'https://cdnd.selectdb.com/ja/',
+                    // Keep general assets on CDN, but force worker chunks to 
same-origin
+                    // to satisfy browser worker same-origin policy for Search 
worker bootstrap.
+                    workerPublicPath: localePublicPath,
                 },
             };
         },


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to