Skip to content

Commit

Permalink
fix: use __sandbox.html instead of __sandbox, fix #141 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWalker authored Jun 19, 2022
1 parent d6e8849 commit 3e4466e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/histoire/src/client/app/util/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export function getSandboxUrl (story: Story, variant: Variant) {
const url = new URLSearchParams()
url.append('storyId', story.id)
url.append('variantId', variant.id)
return `${base}__sandbox?${url.toString()}`
return `${base}__sandbox.html?${url.toString()}`
}
2 changes: 1 addition & 1 deletion packages/histoire/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export async function build (ctx: Context) {
const query = new URLSearchParams()
query.append('storyId', story.id)
query.append('variantId', variant.id)
const url = `${baseUrl}__sandbox?${query.toString()}`
const url = `${baseUrl}__sandbox.html?${query.toString()}`
for (const fn of previewStoryCallbacks) {
await fn({
file: storyFile.path,
Expand Down

0 comments on commit 3e4466e

Please sign in to comment.