Skip to content

SEO: Canonical URL mismatch on Vercel/GitHub Pages deployments #22

Description

@Eccys

Bug

The docusaurus.config.js uses url: 'https://eccys.github.io'. However, when previewing branches on different domains, the canonical links still point to the main site, which might lead to duplicate content flagging in search engines.

Fix

Use an environment variable to set the url dynamically in docusaurus.config.js based on the current deployment context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions