From e73b182925cd17d0af43a9635fe6f7dcac7f4af5 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Fri, 10 Jul 2026 13:51:48 +0200 Subject: [PATCH] Declare embed standalone bundle as a Turbo build output (RND-11876) (#4386) Co-authored-by: Claude --- .changeset/rnd-11876-embed-standalone-turbo-output.md | 5 +++++ packages/embed/turbo.json | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changeset/rnd-11876-embed-standalone-turbo-output.md create mode 100644 packages/embed/turbo.json 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/**"] + } + } +}