Fix/loading error#121
Open
JonnieSparkles wants to merge 4 commits into
Open
Conversation
- Updated TypeScript configuration to preserve JSX. - Added GlobalError component for handling loading errors in the documentation. - Introduced ChunkLoadRecoveryScript to manage chunk load failures and automatic reloads. - Integrated ChunkLoadRecoveryScript into the main layout for improved error resilience.
- Introduced fallback state management using window.name for chunk load errors. - Updated read and write functions to handle state persistence across sessions. - Improved error messaging in the GlobalError component for better user guidance. - Refactored chunk load recovery script to utilize the new state management logic.
…olana upload keys - Added instructions for setting `OBSERVER_PRIVATE_KEY` and `SOLANA_UPLOAD_PRIVATE_KEY` in the quick-start guide. - Clarified the use of keypair files versus inline base58 keys for observer wallets. - Enhanced environment variable documentation to recommend explicit upload key settings for improved reliability. - Included notes on configuring `TurboReportSink` to ensure proper report uploads.
Permaweb Preview DeployedYour preview is available at: https://docs-pr-121_docs.ar.io
|
- Introduced a new workflow for deploying to GitHub Pages, allowing manual triggers and setting up the necessary build environment. - Updated the PR preview workflow to use manual triggers instead of automatic ones, simplifying the deployment process. - Added a basePath configuration option in the Next.js config for better handling of deployment paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
The issue is a transient gateway failure while the docs app is loading Next.js client chunks. The initial HTML loads, but a request like /_next/static/chunks/*.js can return 502 Bad Gateway. Next then throws a ChunkLoadError, which becomes a fatal client-side exception and leaves users on the generic “Application error” page.
The fix adds two layers of recovery: