This is an automated email from the ASF dual-hosted git repository.
kassiez 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 e15d32bf15d fix: fix resources url error (#1465)
e15d32bf15d is described below
commit e15d32bf15daa0d5322fd4bf27b440d2af85c18d
Author: KassieZ <[email protected]>
AuthorDate: Fri Dec 6 01:44:53 2024 +0800
fix: fix resources url error (#1465)
---
.env | 1 -
config/custom-docusaurus-plugin.js | 2 +-
config/ssrTemplate.js | 10 +++++-----
docusaurus.config.js | 4 +---
4 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/.env b/.env
deleted file mode 100644
index 1abbb874f55..00000000000
--- a/.env
+++ /dev/null
@@ -1 +0,0 @@
-TEST_ENV_URL="http://localhost:3000"
\ No newline at end of file
diff --git a/config/custom-docusaurus-plugin.js
b/config/custom-docusaurus-plugin.js
index 858a587853b..f390f679171 100644
--- a/config/custom-docusaurus-plugin.js
+++ b/config/custom-docusaurus-plugin.js
@@ -1,5 +1,5 @@
const path = require('path');
-const publicPath = process.env.TEST_ENV_URL || 'https://cdnd.selectdb.com';
+const publicPath = 'https://cdnd.selectdb.com';
module.exports = function (context, options) {
return {
name: 'custom-docusaurus-plugin',
diff --git a/config/ssrTemplate.js b/config/ssrTemplate.js
index 6102842705e..1199c3cf57c 100644
--- a/config/ssrTemplate.js
+++ b/config/ssrTemplate.js
@@ -1,7 +1,7 @@
-const fetchUrl = `'${process.env.TEST_ENV_URL}'` ||
'https://cdnd.selectdb.com';
+const fetchUrl = "https://cdnd.selectdb.com";
module.exports = {
- ssrTemplate: `<!DOCTYPE html>
+ ssrTemplate: `<!DOCTYPE html>
<html <%~ it.htmlAttributes %>>
<head>
<meta charset="UTF-8">
@@ -15,10 +15,10 @@ module.exports = {
<%~ metaAttribute %>
<% }); %>
<% it.stylesheets.forEach((stylesheet) => { %>
- <link rel="stylesheet" href="<%= ${fetchUrl} %><%= it.baseUrl %><%=
stylesheet %>" />
+ <link rel="stylesheet" href="<%= 'https://cdnd.selectdb.com' %><%=
it.baseUrl %><%= stylesheet %>" />
<% }); %>
<% it.scripts.forEach((script) => { %>
- <link rel="preload" href="<%= ${fetchUrl} %><%= it.baseUrl %><%= script
%>" as="script">
+ <link rel="preload" href="<%= 'https://cdnd.selectdb.com' %><%=
it.baseUrl %><%= script %>" as="script">
<% }); %>
</head>
<body <%~ it.bodyAttributes %>>
@@ -27,7 +27,7 @@ module.exports = {
<%~ it.appHtml %>
</div>
<% it.scripts.forEach((script) => { %>
- <script src="<%= ${fetchUrl} %><%= it.baseUrl %><%= script %>"></script>
+ <script src="<%= 'https://cdnd.selectdb.com' %><%= it.baseUrl %><%=
script %>"></script>
<% }); %>
<%~ it.postBodyTags %>
</body>
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 5e2a2dd3f2a..d639a5e2979 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -5,9 +5,7 @@ const versionsPlugin = require('./config/versions-plugin');
const VERSIONS = require('./versions.json');
const lightCodeTheme = themes.dracula;
-const logoImg = process.env.TEST_ENV_URL
- ? `${process.env.TEST_ENV_URL}/images/logo.svg`
- : 'https://cdnd.selectdb.com/images/logo.svg';
+const logoImg = 'https://cdnd.selectdb.com/images/logo.svg';
function getDocsVersions() {
const result = {};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]