πŸ“… 2025-08-02 β€” Session: Resolved Quartz Deployment and URL Handling Issues

πŸ•’ 19:20–20:10
🏷️ Labels: Quartz, Url Handling, Debugging, Deployment, Typescript
πŸ“‚ Project: Dev
⭐ Priority: MEDIUM

Session Goal

The session aimed to resolve various issues related to Quartz deployment, internal link resolution, and URL handling within the Quartz static site generator.

Key Activities

  • Addressed common internal link resolution issues in Quartz deployments by following a checklist and debugging workflow.
  • Resolved an execution error with npx quartz by ensuring local installation of the Quartz CLI.
  • Debugged internal links in Quartz v4+ by using local build commands and manual validation scripts.
  • Fixed a Node.js script for Markdown file processing by skipping directories and improving error handling.
  • Diagnosed and fixed issues with Quartz’s generation of relative internal links, particularly for Vercel deployments.
  • Resolved a configuration error in the Quartz plugin related to the baseUrl setting.
  • Fixed URL construction errors in the 404.tsx plugin and Head component by handling baseUrl correctly.
  • Provided a corrected implementation for handling baseUrl and domain configurations in TypeScript.
  • Addressed a specific error with the URL constructor in JavaScript, ensuring valid absolute URLs.

Achievements

  • Successfully resolved multiple deployment and URL handling issues in Quartz, enhancing stability and reliability.
  • Improved the robustness of path handling and error resolution in the Quartz static site generator.

Pending Tasks

  • Further refactoring of the 404Page emitter for strategic improvements in path handling.