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

Allow environment URL to be overridden by a local environment variable #73

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

shawnhooper
Copy link
Contributor

@shawnhooper shawnhooper commented Feb 28, 2024

Feature Improvement

Allows the environment URL that is published as part of the GitHub comment to be overridden with a local environment variable.

Use Case

In my app, I want to sent the QA team to a subdomain of the environment. Going to the bare domain the site is launched on actually doesn't return the app (by design). With this fix, I could put the URL, including subdomain, into the GitHub comment.

Implementation

Adds a FORGE_ENVIRONMENT_URL environment variable that overrides the environment URL for the forge site.

@mehrancodes
Copy link
Owner

Looks like a cool addition to customize the preview URL. However, we need to grab the env variable from the ForgeSetting in order to use it.

Feel free to add it at your convenience. If you find yourself short on time, don't hesitate to reach out - I'd be more than happy to assist with the addition.

@shawnhooper
Copy link
Contributor Author

@mehrancodes I think I have the PR updated correctly.

I can't test it correctly right now though as my environment is getting a timeout on deployment (looks like Laravel Mix is taking too long to run).

Could you check this PR?

Copy link
Owner

@mehrancodes mehrancodes left a comment

Choose a reason for hiding this comment

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

Looks good to me - Let's release 👨🏻‍💻

@mehrancodes
Copy link
Owner

mehrancodes commented Mar 1, 2024

I gave it a manual test - everything works smoothly.

Thank you for the updates, and the new feature! I would tag a new release for it today 🚀

@mehrancodes mehrancodes merged commit 9f8f137 into mehrancodes:main Mar 1, 2024
1 check passed
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