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 issue 451 #452

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Fix issue 451 #452

merged 1 commit into from
Oct 22, 2024

Conversation

amarouane-ABDELHAK
Copy link
Contributor

Why are you creating this Pull Request?

  • To fix the issue described here

Copy link

netlify bot commented Oct 14, 2024

Deploy Preview for visex ready!

Name Link
🔨 Latest commit 5f9c95f
🔍 Latest deploy log https://app.netlify.com/sites/visex/deploys/670d2bb888e01f00079ddf61
😎 Deploy Preview https://deploy-preview-452--visex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@amarouane-ABDELHAK
Copy link
Contributor Author

@hanbyul-here @anayeaye and I were wondering why we didn't use Domain_PROD as a relative path instead of a hardcoded domain name, if both work. Do you know the reason behind having the Domain_PROD variable as a full URL?

@hanbyul-here
Copy link
Collaborator

Thanks for working on the fix. The variable is used to specify where the bundled assets are served.
where it is passed to be used for application base url: (

run: PUBLIC_URL="${{ env.DOMAIN_PROD }}" yarn build
)
The absolute path should work in theory, but I am honestly unsure if I am missing anything and if this change will bring unexpected outcomes.

As far as I know, we don't have a staging environment for earthdata.nasa.gov to test the URL change. Considering earthdata.nasa.gov has low traffic, should we just test on the production? or do you have any idea how we can test this change to not introduce any unexpected outcome without deploying it to production?

@amarouane-ABDELHAK
Copy link
Contributor Author

I have build it locally with PUBLIC_URL as a path instead of URL and did not notice any side effect

Copy link
Collaborator

@hanbyul-here hanbyul-here left a comment

Choose a reason for hiding this comment

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

thanks for working on it

@amarouane-ABDELHAK amarouane-ABDELHAK merged commit a06c785 into develop Oct 22, 2024
6 checks passed
@amarouane-ABDELHAK amarouane-ABDELHAK deleted the fix/cors-issue-with-www-domain branch October 22, 2024 16:47
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