Skip to content

fix(preview): resolve Windows path generation and handle undefined font configurations cleanly - #718

Open
bshiva2004 wants to merge 1 commit into
IBM:masterfrom
bshiva2004:master
Open

fix(preview): resolve Windows path generation and handle undefined font configurations cleanly#718
bshiva2004 wants to merge 1 commit into
IBM:masterfrom
bshiva2004:master

Conversation

@bshiva2004

Copy link
Copy Markdown

Description

This PR resolves the deployment preview console crashes reported in #631.

Changes Introduced

  1. Chained Compilation Scripts: Configured package.json to ensure style sheets build via yarn build before starting layout previews.
  2. Cross-Platform Path Support: Updated file path parsing inside deploy-preview.js with a robust separator regex (/[\\/]/) to handle Windows backward slashes natively.
  3. Defensive Validation Guards: Added conditional logic parameters to filter out unmapped directory values cleanly instead of throwing exception crashes.

Tested successfully on Windows 11 with Node v22 and Yarn.

…nt configurations cleanly

Signed-off-by: shiva <boddupallyshivakumar2004@gmail.com>
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.

1 participant