René's URL Explorer Experiment


Title: fix(auth): match the dev better-auth client aliases exactly by Brooooooklyn · Pull Request #587 · voidzero-dev/void · GitHub

Open Graph Title: fix(auth): match the dev better-auth client aliases exactly by Brooooooklyn · Pull Request #587 · voidzero-dev/void

X Title: fix(auth): match the dev better-auth client aliases exactly by Brooooooklyn · Pull Request #587 · voidzero-dev/void

Description: Fixes #565 Problem With auth on, vp dev aliases five better-auth subpaths to files in Void's own copy of better-auth. Each alias used a string find, and in Vite a string find also matches every deeper path: alias find 'better-auth/client' → …/better-auth/dist/client/index.mjs import 'better-auth/client' → …/dist/client/index.mjs ✓ import 'better-auth/client/plugins' → …/dist/client/index.mjs/plugins ✗ (no such file) So any app that passes a Better Auth client plugin (adminClient(), organizationClient(), …) to createAuthClient broke in dev: the client failed with Failed to resolve import "better-auth/client/plugins"; SSR returned 500 (No such module …). vp build adds no alias, so it was fine. Fix Each find is now an anchored RegExp, ^better-auth/$. Vite's alias API has only two kinds of find: a string, which also matches deeper paths, or a RegExp. So a RegExp is the only way to get an exact match. The repo already does the same ({ find: /^void$/ } in cli/wrapper.ts). before (string) after (exact) better-auth/client Void's copy ✓ Void's copy ✓ (unchanged) better-auth/react|vue|svelte|solid Void's copy ✓ Void's copy ✓ (unchanged) better-auth/client/plugins broken path ✗ normal resolution ✓ The five exact ids get the same replacement in every Vite step that reads resolve.alias: the alias plugin; vite:pre-alias; SSR externalization; the dependency optimizer. So the cold-cache reload protection from #24 (the reason the aliases exist) is kept. Checks New test in plugin-routing.test.ts. It starts a real Vite dev server with auth on and resolves: better-auth/client and /react from an app file, which has no better-auth of its own. They resolve only through the aliases, to Void's copy. better-auth/client/plugins from inside the package. It resolves to dist/client/plugins/index.mjs. Mutation check: the test fails with the old string find and with no aliases at all. Scratch app from the issue: a React pages app, auth on, adminClient() from better-auth/client/plugins, cold cache, vp dev. before after SSR GET / 500 No such module 200, authClient.admin.listUsers is a function client module 500 Failed to resolve 200 void typecheck, lint and fmt pass. Affected tests (vp run test, 508 files) pass. Not changed here client/plugins is not pinned to Void's copy. The issue mentions this as optional. Without it, the user's own better-auth provides client/plugins, as in vp build, and Vite discovers it like any other dependency. That costs one optimizer reload on the first cold-cache page that imports it. Pinning would point the import at Void's better-auth version instead of the one the app installed. That's a product decision, so I left it out. 🤖 Generated with Claude Code

Open Graph Description: Fixes #565 Problem With auth on, vp dev aliases five better-auth subpaths to files in Void's own copy of better-auth. Each alias used a string find, and in Vite a string find also matches every...

X Description: Fixes #565 Problem With auth on, vp dev aliases five better-auth subpaths to files in Void's own copy of better-auth. Each alias used a string find, and in Vite a string find also matches e...

Opengraph URL: https://github.com/voidzero-dev/void/pull/587

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:32e8556c-6d1b-d4cb-f510-e492241b5a2a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7D2:79CC9:1E761A:29F03D:6AFBAE7D
html-safe-nonce45d36d1577b7bff5648d9d9f035440c994cb28bdbd664e21af20e34a59dd24b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0QyOjc5Q0M5OjFFNzYxQToyOUYwM0Q6NkFGQkFFN0QiLCJ2aXNpdG9yX2lkIjoiNzE3MTE1MjMxNTc1ODEyODc2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd0f013b85df3148000aa853f113f8591d635612a0d2866b5d3eb5facbfcd7a1e
hovercard-subject-tagpull_request:5011629360
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/voidzero-dev/void/pull/587/files
twitter:imagehttps://avatars.githubusercontent.com/u/3468483?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3468483?s=400&v=4
og:image:altFixes #565 Problem With auth on, vp dev aliases five better-auth subpaths to files in Void's own copy of better-auth. Each alias used a string find, and in Vite a string find also matches every...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release08c8f17f9d27054a108b8b6254e405de0151f660
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/voidzero-dev/void/pull/587/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fpull%2F587%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fpull%2F587%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/pull/587/files
Reloadhttps://github.com/voidzero-dev/void/pull/587/files
Reloadhttps://github.com/voidzero-dev/void/pull/587/files
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests9 (9)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
Brooooooklynhttps://github.com/Brooooooklyn
mainhttps://github.com/voidzero-dev/void/tree/main
fix/better-auth-alias-subpathshttps://github.com/voidzero-dev/void/tree/fix/better-auth-alias-subpaths
Conversation 5 https://github.com/voidzero-dev/void/pull/587
Commits 2 https://github.com/voidzero-dev/void/pull/587/commits
Checks 20 https://github.com/voidzero-dev/void/pull/587/checks
Files changed https://github.com/voidzero-dev/void/pull/587/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/587/files
fix(auth): match the dev better-auth client aliases exactly https://github.com/voidzero-dev/void/pull/587/files#top
Show all changes 2 commits https://github.com/voidzero-dev/void/pull/587/files
822d013 fix(auth): match the dev better-auth client aliases exactly Brooooooklyn Oct 26, 2026 https://github.com/voidzero-dev/void/pull/587/commits/822d01388c1be3642ca2adbfc75f999e9fcdd100
67d306e chore(auth): drop the alias match comment Brooooooklyn Oct 26, 2026 https://github.com/voidzero-dev/void/pull/587/commits/67d306ea0a4e2642d20b671cf86f8a54e7834301
Clear filters https://github.com/voidzero-dev/void/pull/587/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/587/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/587/files
plugin-routing.ts https://github.com/voidzero-dev/void/pull/587/files#diff-60ebd297327afae2d733d99e6955f216c1e3bd8291bfb8855577047d88a773d0
plugin-routing.test.ts https://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
packages/void/src/plugin-routing.tshttps://github.com/voidzero-dev/void/pull/587/files#diff-60ebd297327afae2d733d99e6955f216c1e3bd8291bfb8855577047d88a773d0
View file https://github.com/voidzero-dev/void/blob/67d306ea0a4e2642d20b671cf86f8a54e7834301/packages/void/src/plugin-routing.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/587/{{ revealButtonHref }}
https://github.com/voidzero-dev/void/pull/587/files#diff-60ebd297327afae2d733d99e6955f216c1e3bd8291bfb8855577047d88a773d0
https://github.com/voidzero-dev/void/pull/587/files#diff-60ebd297327afae2d733d99e6955f216c1e3bd8291bfb8855577047d88a773d0
packages/void/test/unit/plugin-routing.test.tshttps://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
View file https://github.com/voidzero-dev/void/blob/67d306ea0a4e2642d20b671cf86f8a54e7834301/packages/void/test/unit/plugin-routing.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/587/{{ revealButtonHref }}
https://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
https://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
https://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
https://github.com/voidzero-dev/void/pull/587/files#diff-2d7a029a1b0706359967b22d507def19d891a9ea2d36acd8c3da9b52ed56ebbd
Please reload this pagehttps://github.com/voidzero-dev/void/pull/587/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.