You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/17 05:14:23 UTC

[GitHub] [apisix-website] SkyeYoung commented on a diff in pull request #1030: refactor: reduce build time

SkyeYoung commented on code in PR #1030:
URL: https://github.com/apache/apisix-website/pull/1030#discussion_r851704105


##########
website/config/apisix-versions.js:
##########
@@ -0,0 +1,49 @@
+/* eslint-disable quote-props */
+
+/**
+ * @type {Array<string>} version list
+ */
+const versions = [
+  '2.12',
+  '2.13',
+];
+
+/**
+ * @type {Array<{label: string, href: string}>}
+ */
+const archivedVersions = [
+  {
+    label: '2.11',
+    href: 'https://625a9090d04b9a6953165811--2-11-old-docs-apache-apisix.netlify.app/docs/apisix/getting-started/',

Review Comment:
   The site name `2-11-old-docs-apache-apisix.netlify.app` is entered manually. But the `625a9090d04b9a6953165811` is randomly generated. The full host will be returned by netlify cli. 
   
   If the prod attribute is passed in during deployment, it seems that there will be no randomly generated ID. But I haven't tried yet.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org