Skip to content

chore: use latest PostHog SDK defaults - #21612

Merged
marandaneto merged 1 commit into
masterfrom
chore/use-latest-posthog-defaults
Oct 27, 2026
Merged

marandaneto merged 1 commit into
masterfrom
chore/use-latest-posthog-defaults

Conversation

@marandaneto

Copy link
Copy Markdown
Member

Summary

Set defaults: 'latest' in the website SDK loader. The site currently leaves this unset and uses legacy defaults. This opts the site into new defaults as the CDN SDK updates.

Changes

  • Add one configuration line in gatsby/onPreBootstrap.ts.
  • Keep every explicit setting unchanged, including capture_pageview: false.
  • Scope is limited to the website SDK. Documentation snippets are unchanged.

Release dependency: Wait for PostHog/posthog-js#5405 to merge and reach the CDN before deploying this change. Website-team exception was confirmed by the requester.

Validation

  • Prettier write and check passed for the changed file. git diff --check passed.
  • Executed the generated loader in isolation with and without a custom asset host. Both configurations set defaults to latest. All other settings match the base branch.
  • Ran autoreview with --mode branch --base origin/master on commit a795efd9cd. No actionable findings. No tests or test infrastructure changed.
  • Started pnpm start with Node 22 on port 8002. Gatsby compiled and completed onPreBootstrap, but reported missing Ashby credentials and did not serve a page. Browser console and page validation remain incomplete.
  • No visual changes, page moves, or redirects.

Checklist

  • Docs/content style guides (not applicable).
  • Words are spelled using American English.
  • Use relative URLs for internal links (none added).
  • Check the deployment preview before merge.
  • If I moved a page, add a redirect in vercel.json (not applicable).

@github-actions github-actions Bot added the website About the website (beyond just landing pages) label Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Oct 27, 2026 08:49AM

@marandaneto
marandaneto requested a review from a team October 27, 2026 08:32
@marandaneto
marandaneto marked this pull request as ready for review October 27, 2026 08:32
@marandaneto
marandaneto requested a review from a team as a code owner October 27, 2026 08:32
@github-actions

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

10.43 MiB (+0.6 KiB / +0.0%)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
✅ app 20.32 MiB (+2.5 KiB / +0.0%) report-only 2106
Largest modules in the app closure
Module Size
./src/data/mcp-tools.json 1427.7 KiB
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 815.8 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/x-ray.mjs 481.2 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/trenchcoat.mjs 450.8 KiB
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules 395.1 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/im-the-driver.mjs 385.8 KiB
./src/hooks/useCustomers.tsx + 59 modules 380.8 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/tourist.mjs 364.6 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./src/components/ProductComparisonTable/index.tsx + 130 modules 314.2 KiB
./node_modules/.pnpm/framer-motion@14.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs + 127 modules 287.8 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/doll-house.mjs 284.1 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).

@marandaneto

Copy link
Copy Markdown
Member Author

@marandaneto
marandaneto enabled auto-merge (squash) October 27, 2026 11:07
@marandaneto
marandaneto merged commit 85f9fee into master Oct 27, 2026
25 checks passed
@marandaneto
marandaneto deleted the chore/use-latest-posthog-defaults branch October 27, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website About the website (beyond just landing pages)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants