Skip to content

feat: linked server instances#5221

Draft
tdgao wants to merge 428 commits intomainfrom
truman/linked-server-instances
Draft

feat: linked server instances#5221
tdgao wants to merge 428 commits intomainfrom
truman/linked-server-instances

Conversation

@tdgao
Copy link
Contributor

@tdgao tdgao commented Jan 26, 2026

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 16, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
storybook 3948449 Commit Preview URL

Branch Preview URL
Feb 27 2026, 04:56 AM

tdgao added 30 commits February 26, 2026 15:26
Here's what was happening and the fix:

Root cause: In create.rs:107, profile_create assumed the icon_path parameter was always a local filename relative to the caches directory. It did caches_dir().join(icon) which produced a path like ...\caches\https://staging-cdn.modrinth.com/... — the colons in https:// are illegal in Windows paths (OS error 123).

The frontend's installServerProject and createVanillaInstance in install.js:290 both pass project.icon_url (a full URL) directly as the icon parameter.

Fix: Modified profile_create to detect when the icon parameter is a URL (starts with http:// or https://). When it is, it downloads the icon via fetch(), extracts the filename from the URL path, and passes the downloaded bytes and filename to set_icon() which hashes and caches it properly. The existing local-file path continues to work as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants