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: changed extension in useEnvironment to address query params #1574

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

mynameisgump
Copy link
Contributor

@mynameisgump mynameisgump commented Jul 13, 2023

Why

The useEnviroment hook cannot parse a url that has query parameters in it even if the url itself leads to a file with a valid extension.

What

Changed the extension variable in useEnvironment to split at questions marks and get the first of the array, which should be the extension in the case query parameters were used

Checklist

  • Ready to be merged

Sorry, something went wrong.

@vercel
Copy link

vercel bot commented Jul 13, 2023

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

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 5:10pm

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 13, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b35545f:

Sandbox Source
young-bash-w9y5qn Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@github-actions
Copy link

🎉 This PR is included in version 9.80.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants