Skip to content

Fix: AWS renderer not working on Storybook V8 - #546

Draft
bassem-i wants to merge 2 commits into
oblador:masterfrom
bassem-i:fix/aws-renderer-on-storybook-8
Draft

Fix: AWS renderer not working on Storybook V8#546
bassem-i wants to merge 2 commits into
oblador:masterfrom
bassem-i:fix/aws-renderer-on-storybook-8

Conversation

@bassem-i

@bassem-i bassem-i commented Jul 29, 2025

Copy link
Copy Markdown

We are currently migrating our Storybook version from 7 to 8. We've noticed that:

A fetch call in Storybook V8 breaks loki's aws-lambda-renderer.

Storybook V8 initialization calls getStoryIndexFromServer function which tries to load a file called index.json (A json with all the stories loaded in the storybook build) using fetch. This breaks Loki's aws-lambda-renderer because it depends on file-based file://TMP_FOLDER/iframe.html?id=STORY_ID access. (File-based access doesn't support fetch).

This PR attempts to fix the issue by switching the aws-lambda-renderer to use a static server.

Currently, screenshotting works but I am facing alot of errors because of resources like JS chunks & fonts not loading. Still looking into it.

@bassem-i
bassem-i marked this pull request as draft July 29, 2025 08:46
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