Skip to content

Hero stories fixtures reference deprecated source.unsplash.com/random (503) #242

Description

@kiluazen

Hi - https://source.unsplash.com/random was deprecated by Unsplash in mid-2024 and now returns 503. It's referenced in the Hero stories fixtures:

  • src/components/Hero/Hero.stories.js L26: imageUrl: "https://source.unsplash.com/random",
  • src/components/Hero/Hero.stories.js L32: imageUrl: "https://source.unsplash.com/random",

These look like Storybook fixtures rather than production code, but anyone viewing the stories (incl. a deployed Storybook) sees broken hero images.

Two fixes:

  1. Swap each fixture to a specific https://images.unsplash.com/photo-<id>?... URL — one-line change.
  2. Use tteg to save two concrete local images the stories can import: uv tool install tteg; tteg save "abstract" ./src/components/Hero/fixtures/hero-a (https://github.com/kiluazen/tteg).

Context: ~16,500 live GitHub files still reference this dead endpoint — writeup at https://github.com/kiluazen/tteg/blob/research-note-autark/RESEARCH.md

  • Kushal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions