Skip to content

Conversation

@d-winter
Copy link
Contributor

@d-winter d-winter commented Dec 1, 2025

Summary

  • Strips trailing slashes from studioUrl config to prevent malformed URLs when building Studio URLs
  • This allows users to configure studioUrl with or without a trailing slash, avoiding setup issues

Before: https://studio.hygraph.dev/ would result in https://studio.hygraph.dev//entry?...
After: Both https://studio.hygraph.dev/ and https://studio.hygraph.dev work correctly

Test plan

  • Verify studioUrl without trailing slash works: https://studio.hygraph.dev
  • Verify studioUrl with single trailing slash works: https://studio.hygraph.dev/
  • Verify studioUrl with multiple trailing slashes works: https://studio.hygraph.dev///
  • Run type-check: npm run type-check

🤖 Generated with Claude Code

d-winter and others added 2 commits November 24, 2025 16:54
Strip trailing slashes from studioUrl config to prevent malformed URLs
when building Studio URLs (e.g., "https://studio.hygraph.dev//entry"
instead of "https://studio.hygraph.dev/entry").

This improves setup experience by accepting both formats:
- https://studio.hygraph.dev/
- https://studio.hygraph.dev

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@d-winter d-winter requested a review from a team as a code owner December 1, 2025 14:43
@linear
Copy link

linear bot commented Dec 1, 2025

@d-winter d-winter merged commit 27114b2 into main Dec 1, 2025
2 checks 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