Skip to content

feat(astro): Change prefix for public env variables to PUBLIC_. - #3669

Merged
panteliselef merged 3 commits into
mainfrom
elef/eco-21-update-prefix-for-public-env-vars
Jul 5, 2024
Merged

feat(astro): Change prefix for public env variables to PUBLIC_.#3669
panteliselef merged 3 commits into
mainfrom
elef/eco-21-update-prefix-for-public-env-vars

Conversation

@panteliselef

Copy link
Copy Markdown
Contributor

Description

This replaces the previous prefix PUBLIC_ASTRO_APP, and aligns it with the standard from Astro

Given the fact that the astro sdk is in v0, we are not considering this change as breaking.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

This replaces the previous prefix `PUBLIC_ASTRO_APP`, and aligns it with the [standard from Astro](https://docs.astro.build/en/guides/environment-variables/#setting-environment-variables)
@panteliselef panteliselef self-assigned this Jul 5, 2024
@changeset-bot

changeset-bot Bot commented Jul 5, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 462a72f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef
panteliselef requested a review from wobsoriano July 5, 2024 19:17

@wobsoriano wobsoriano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! They can also use it later with experimental env API

import { CLERK_PUBLISHABLE_KEY } from "astro:env/client"

@panteliselef
panteliselef enabled auto-merge (squash) July 5, 2024 20:20
@panteliselef
panteliselef merged commit 79dfb5f into main Jul 5, 2024
@panteliselef
panteliselef deleted the elef/eco-21-update-prefix-for-public-env-vars branch July 5, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants