Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make NEXT_PUBLIC_BUTTER_CMS_API_KEY optional #125

Merged

Conversation

soniaklimas
Copy link
Contributor

I want to merge this change because it makes NEXT_PUBLIC_BUTTER_CMS_API_KEY env optional

Pull Request Checklist

  • Test the changes locally to ensure they work as expected.
  • Document the testing process and results in the pull request description. (Screen recording, screenshot etc)
  • Include new tests for any new functionality or significant changes.
  • Ensure that tests cover edge cases and potential failure points.
  • Document the impact of the changes on the system, including potential risks and benefits.
  • Provide a rollback plan in case the changes introduce critical issues.
  • Update documentation to reflect any changes in functionality.

@soniaklimas soniaklimas self-assigned this Dec 17, 2024
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nimara-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 0:04am
nimara-ecommerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 0:04am

@@ -1,3 +1,3 @@
export type ButterCMSMenuServiceConfig = {
token: string;
token?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

token is required in infra but the infra shouldn't run without that env variable which can be undefined. It isn't necessary to run the storefront

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated cms service to throw an error if no token.

@soniaklimas soniaklimas merged commit 6529244 into develop Dec 17, 2024
3 of 4 checks passed
@soniaklimas soniaklimas deleted the fix/make-NEXT_PUBLIC_BUTTER_CMS_API_KEY-not-required branch December 17, 2024 12:01
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