Open
Conversation
update name and some descriptions
change the web icon add contact methods
Delete the .env.example file that provided commented environment variable examples and documentation (Next.js/Notion settings, analytics, comment systems, theme and UI options, etc.). Removes the sample env template from the repository to avoid tracking local configuration.
Replace the previous comma-separated NOTION_PAGE_ID value with a single Notion page ID ('73e215be006e466e9c36442b39670776') so the blog points to the updated Notion source for content.
Introduce UUID_REDIRECT in blog.config.js to enable redirecting UUID-based article paths to slug-based paths (relies on build-generated /public/redirect.json). The flag is controlled via NEXT_PUBLIC_UUID_REDIRECT and defaults to false. Also normalize EOF newline in the file.
Enable the theme switch in the floating widget (widget.config.js) and remove the duplicate THEME_SWITCH entry from blog.config.js. Update the GREETING_WORDS default with new welcome phrases and remove duplicate/unused entries (CUSTOM_MENU, BEI_AN) while tidying a contact.config comment. Also pin the Node engine in package.json to 20.x for consistent runtime.
Fixes client-side crash on articles containing Notion H4 headings (header_4 block type) which were unsupported in v7.7.1.
Ensures Vercel installs the correct version from the lockfile.
The getPageTableOfContents function crashed when encountering Notion's
header_4 block type because indentLevels only mapped header, sub_header,
and sub_sub_header. The header_4 type matched the indexOf('header') check
but returned undefined for indentLevel, causing the indent stack to empty
and crash with "Cannot destructure property 'actual' of undefined".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@TonyKing0504 is attempting to deploy a commit to the tangly1024's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
header_4block type in Notion's Table of Contents generation (getPageTableOfContents.js). TheindentLevelsmap didn't includeheader_4, causing a stack underflow → destructure crash → React error boundary showing 404.react-notion-xfrom 7.7.1 to 7.10.0 to add nativeheader_4block rendering support.Root Cause
getPageTableOfContents.jsmatchedheader_4viatype.indexOf('header') >= 0butindentLevels['header_4']returnedundefined. This caused the indent adjustment loop to repeatedly pop the stack until empty, then crash onindentLevelStack[-1]destructure.Changes
lib/db/notion/getPageTableOfContents.jsheader_4: 3toindentLevelsmap; added&& indentLevels[type] !== undefinedguardpackage.jsonreact-notion-x7.7.1 → 7.10.0 and related packagesyarn.lockTest Plan
www.dundun0504.com/article/data-analysis-prep) — page loads with no console errorsmain;deployused as experimental branch