Skip to content

fix(ai-image-generation): add missing /shelby base path to blob URL - #36

Open
Dusk1e wants to merge 1 commit into
shelby:mainfrom
Dusk1e:fix/blob-url-shelby-base-path
Open

fix(ai-image-generation): add missing /shelby base path to blob URL#36
Dusk1e wants to merge 1 commit into
shelby:mainfrom
Dusk1e:fix/blob-url-shelby-base-path

Conversation

@Dusk1e

@Dusk1e Dusk1e commented Aug 14, 2026

Copy link
Copy Markdown

Summary

NEXT_PUBLIC_SHELBY_API_URL points at the host root, so GeneratedImages builds https://api.shelbynet.shelby.xyz/v1/blobs/.... That path is served by the Aptos fullnode, which has no such route, so every image in the gallery 404s. The blob service is mounted under /shelby, which the app's own upload hook and the README already use.

Tests

curl https://api.shelbynet.shelby.xyz/v1/blobs/<account>/test.png returns {"message":"not found","error_code":"web_framework_error","vm_error_code":null}, the fullnode's router 404.

curl https://api.shelbynet.shelby.xyz/shelby/v1/blobs/<account>/test.png returns {"error":"Blob not found","message":"Blob test.png does not exist for account 0x1"}, so the route resolves and the account and blob name are parsed.

With the corrected value, the URL the gallery builds is identical to the one useUploadImageToShelby.tsx already returns after an upload.


Note

Low Risk
Single-line example env change only; no runtime code changes, but correct local .env values are required for images to load.

Overview
Updates NEXT_PUBLIC_SHELBY_API_URL in .env.example from the API host root to https://api.shelbynet.shelby.xyz/shelby.

The gallery builds image URLs as {NEXT_PUBLIC_SHELBY_API_URL}/v1/blobs/.... Without the /shelby prefix, those requests hit the Aptos fullnode (which has no blob route) and 404; with it, they match the blob service path already used in the README and upload flow.

Reviewed by Cursor Bugbot for commit 3dfc4d9. Bugbot is set up for automated code reviews on this repo. Configure here.

NEXT_PUBLIC_SHELBY_API_URL pointed at the host root, so GeneratedImages built
https://api.shelbynet.shelby.xyz/v1/blobs/... That path is served by the Aptos
fullnode, which has no such route, so every image in the gallery 404s.

The blob service is mounted under /shelby, which is what the app's own upload
hook and README already use.
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.

1 participant