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 broken env variable reference when renaming #526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RyanCoulsonCA
Copy link
Member

@RyanCoulsonCA RyanCoulsonCA commented Jan 23, 2025

Related Item(s)

#523

Changes

  • Change process.env.VUE_APP_NET_API_URL to import.meta.env.VITE_APP_NET_API_URL when renaming so that the /api/version/update/ endpoint is hopefully hit.

Notes

Can't say 100% that this will fix the linked issue until we test it on the dev site, but the environment variable should at least be correct now so the POST should be sent.

Testing

This will require the dev site to be updated in order to test.

Steps:

  1. Open the developer console.
  2. Load an existing product.
  3. Rename the product.
  4. Ensure that the /api/version/update/ endpoint is being hit correctly.
  5. (BONUS) Hopefully the entire issue will be fixed.

This change is Reviewable

@RyanCoulsonCA RyanCoulsonCA added the PR: Frontend PR that primarily involves frontend changes. UI experts and CSS Wizards are asked to review. label Jan 23, 2025
Copy link

Your demo site is ready! 🚀 Visit it here: https://ramp4-pcar4.github.io/storylines-editor/fix-523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Frontend PR that primarily involves frontend changes. UI experts and CSS Wizards are asked to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant