Skip to content

Commit d23ee11

Browse files
committed
storybook: use relative './react-native' ref URL for sub-path deployments
1 parent dd08b2d commit d23ee11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/storybook-react/.storybook

apps/storybook-react/.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const isTestMode = process.env.VITEST === 'true';
2424
// In production the RN static build is nested at /react-native on the same host.
2525
const rnStorybookUrl =
2626
process.env.STORYBOOK_RN_URL ??
27-
(process.env.NODE_ENV === 'production' ? '/react-native' : 'http://localhost:6007');
27+
(process.env.NODE_ENV === 'production' ? './react-native' : 'http://localhost:6007');
2828

2929
const config: StorybookConfig = {
3030
refs: {

0 commit comments

Comments
 (0)