Allow the server url to be set as a global parameter

Created on 28 February 2024, 11 months ago

Problem/Motivation

When generating stories, parameter.server.url is automatically set in each stories file based on the internal:/storybook/stories/render URI. Due to Storybook's rules of parameter inheritance this makes it impossible to set the server url to a different environment other than the one in which the stories file was generated.

By allowing the server url to be set as a global parameter, static Storybook builds can be generated for different environments without having to regenerate a specific set of stories.json files each time. This is useful when deploying a Storybook build to static server such as Pantheon's multi-dev environments.

API changes

Requires an update to twig-storybook

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Storybook

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024