Skip to content

Comments

fix(types): use bracket env notation in Colophon#523

Merged
jdhoffa merged 1 commit intomainfrom
fix-ts_errors_colophon
Nov 6, 2025
Merged

fix(types): use bracket env notation in Colophon#523
jdhoffa merged 1 commit intomainfrom
fix-ts_errors_colophon

Conversation

@jdhoffa
Copy link
Collaborator

@jdhoffa jdhoffa commented Nov 5, 2025

The change fixes TypeScript errors related to accessing import.meta.env properties
by using bracket notation instead of dot notation. This ensures proper type checking
for dynamically added Vite environment variables.

  • Replace all instances of import.meta.env.VITE_* with import.meta.env["VITE_*"]

Relates to #514

Copilot AI review requested due to automatic review settings November 5, 2025 14:56
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Expected version change and release notes:

1.5.0-dev.19 (v1.5.0-dev.18...fix-ts_errors_colophon ) (2025-11-05T14:57 UTC)

Fixes

  • types: use bracket env notation in Colophon (851f2dd)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors environment variable access in the Colophon component to use bracket notation instead of dot notation, and improves formatting of multi-line list items by separating labels from values with {" "} for better spacing consistency.

Key Changes

  • Converted all import.meta.env.VITE_* property access from dot notation to bracket notation (import.meta.env["VITE_*"])
  • Added explicit space separators ({" "}) between labels and values in multi-line list items for consistent formatting
  • Split some longer lines into multiple lines for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-523.westus2.2.azurestaticapps.net

@jdhoffa jdhoffa merged commit 65c79ba into main Nov 6, 2025
24 of 25 checks passed
@jdhoffa jdhoffa deleted the fix-ts_errors_colophon branch November 6, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants