This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push: new a023cc8 fix: use default ssrTemplate (#963) a023cc8 is described below commit a023cc86934ff3cd8ad0415f9f8600aa70c9d1d4 Author: 琚致远 <juzhiy...@apache.org> AuthorDate: Mon Mar 21 10:03:26 2022 +0800 fix: use default ssrTemplate (#963) --- website/config/ssrTemplate.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js index 54320b5..db7b851 100644 --- a/website/config/ssrTemplate.js +++ b/website/config/ssrTemplate.js @@ -1,5 +1,3 @@ -const CDN_URL = 'https://raw.githubusercontent.com/apache/apisix-website/asf-site' - module.exports = { ssrTemplate: `<!DOCTYPE html> <html <%~ it.htmlAttributes %>> @@ -20,10 +18,10 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= <%~ metaAttribute %> <% }); %> <% it.stylesheets.forEach((stylesheet) => { %> - <link rel="stylesheet" href="${CDN_URL}<%= it.baseUrl %><%= stylesheet %>" /> + <link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" /> <% }); %> <% it.scripts.forEach((script) => { %> - <link rel="preload" href="${CDN_URL}<%= it.baseUrl %><%= script %>" as="script"> + <link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script"> <% }); %> </head> <body <%~ it.bodyAttributes %>>