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

🐛 edit customer api env variable name to sync with cli #1542

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

michenly
Copy link
Contributor

@michenly michenly commented Dec 4, 2023

WHY are these changes introduced?

If user use h2 link/env pull to create environment variables the customer-api example will break.

WHAT is this pull request doing?

Update the two variables name in the example to sync up with the variable name cli create.

Also updated the ngrok comment so you never need to update package.json again

HOW to test your changes?

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Comment on lines +27 to +28
PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID: string;
PUBLIC_CUSTOMER_ACCOUNT_API_URL: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

feels a bit funny that we are manually updating these.
@frandiox does CLI have a type defined when it create the .env file already that can be imported?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not at the moment. One thing I wanted to do was extracting these types in env.generated.d.ts or similar and generate the file automatically when .env changes but never got to do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, future task then!

This comment has been minimized.

@michenly michenly merged commit b2a350a into main Dec 5, 2023
9 checks passed
@michenly michenly deleted the mc-customer-api-env-var-fix branch December 5, 2023 17:39
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