diff --git a/.changeset/rnd-11876-embed-standalone-turbo-output.md b/.changeset/rnd-11876-embed-standalone-turbo-output.md new file mode 100644 index 000000000..14f556179 --- /dev/null +++ b/.changeset/rnd-11876-embed-standalone-turbo-output.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix the docs embed widget shipping a stale script: declare the embed package's `standalone/` bundle as a Turbo build output. Because it wasn't declared, changes confined to the standalone widget (which compiles to `standalone/` but not `dist/`) didn't invalidate the downstream `generate` cache that copies it into the app, so the deployed widget could lag the source — e.g. the `clipboard-write` permission on the widget iframe never reached production, breaking the copy button in the Assistant embed. diff --git a/packages/embed/turbo.json b/packages/embed/turbo.json new file mode 100644 index 000000000..91a6fd634 --- /dev/null +++ b/packages/embed/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**", "standalone/**"] + } + } +}