Skip to content

Fix apollo build error#267

Merged
svix-lucho merged 3 commits intomainfrom
lucho/svix-play-title
Apr 1, 2026
Merged

Fix apollo build error#267
svix-lucho merged 3 commits intomainfrom
lucho/svix-play-title

Conversation

@svix-lucho
Copy link
Copy Markdown
Contributor

No description provided.

@svix-lucho svix-lucho requested a review from a team as a code owner March 31, 2026 17:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svix-docs Ready Ready Preview, Comment Mar 31, 2026 6:59pm

Request Review

@svix-lucho svix-lucho changed the title Update Svix play page title Fix apollo build error Mar 31, 2026
@svix-lucho
Copy link
Copy Markdown
Contributor Author

Welp this turned into a PR to fix how the apollo script is imported. It was failing in CI

[ERROR] Error: Unable to build website for locale en.
    at tryToBuildLocale (/vercel/path0/node_modules/@docusaurus/core/lib/commands/build/build.js:83:15)
    at async /vercel/path0/node_modules/@docusaurus/core/lib/commands/build/build.js:35:9
    at async mapAsyncSequential (/vercel/path0/node_modules/@docusaurus/utils/lib/jsUtils.js:21:24)
    at async Command.build (/vercel/path0/node_modules/@docusaurus/core/lib/commands/build/build.js:34:5)
    at async Promise.all (index 0)
    at async runCLI (/vercel/path0/node_modules/@docusaurus/core/lib/commands/cli.js:56:5)
    at async file:///vercel/path0/node_modules/@docusaurus/core/bin/docusaurus.mjs:44:3 {
  [cause]: ReferenceError: document is not defined
      at loadApolloScript (server.bundle.js:26517:143)
      at 87097 (server.bundle.js:26517:424)
      at __webpack_require__ (server.bundle.js:67829:42)
      at 43586 (server.bundle.js:19676:202)
      at __webpack_require__ (server.bundle.js:67829:42)
      at 4607 (server.bundle.js:19728:83)
      at __webpack_require__ (server.bundle.js:67829:42)
      at 44905 (server.bundle.js:20581:62)
      at __webpack_require__ (server.bundle.js:67829:42)
      at server.bundle.js:67919:37
}

We didn't catch it in #266 because Pedro doesn't have access to Vercel yet

Comment thread src/client-modules/apollo-pixel.js Outdated
Comment thread src/client-modules/apollo-pixel.js
Comment thread static/js/apollo.js
@svix-lucho svix-lucho merged commit 899cd59 into main Apr 1, 2026
3 checks passed
@svix-lucho svix-lucho deleted the lucho/svix-play-title branch April 1, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants