From 306c15ff12082d2d0d3fe61ba47724726487f6ec Mon Sep 17 00:00:00 2001 From: Badal Saibo Date: Thu, 13 Mar 2025 12:59:15 +0530 Subject: [PATCH 1/2] fix: corrects baseUrl such that it reflects properly on canonical tags --- docusaurus.config.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 5a4b99c..6a74d2b 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -7,6 +7,7 @@ import type * as Preset from '@docusaurus/preset-classic'; const TITLE = 'Refrens API'; const REPO_NAME = 'api'; const ORG_NAME = 'refrens-docs'; +const PROD_URL = 'https://refrens.com'; const config: Config = { title: TITLE, @@ -14,7 +15,7 @@ const config: Config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: `https://${ORG_NAME}.github.io`, + url: PROD_URL, // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: process.env.NODE_ENV === 'production' ? `/${REPO_NAME}/docs/` : '/', @@ -55,6 +56,16 @@ const config: Config = { themeConfig: { // Replace with your project's social card image: 'img/logo.png', + headTags: [ + // Declare a preconnect tag + { + tagName: 'link', + attributes: { + rel: 'canonical', + href: 'https://example.com', + }, + }, + ], navbar: { title: TITLE, logo: { From 5ad5a19d2097a439c89bbf925d65edd8356c5a47 Mon Sep 17 00:00:00 2001 From: Badal Saibo Date: Thu, 13 Mar 2025 13:01:19 +0530 Subject: [PATCH 2/2] chore: redundant --- docusaurus.config.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 6a74d2b..08fc961 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -56,16 +56,6 @@ const config: Config = { themeConfig: { // Replace with your project's social card image: 'img/logo.png', - headTags: [ - // Declare a preconnect tag - { - tagName: 'link', - attributes: { - rel: 'canonical', - href: 'https://example.com', - }, - }, - ], navbar: { title: TITLE, logo: {