The function writeSnapshot in site/src/scripts/github.ts uses process.cwd() to construct the output path: . However, the project stores public assets under . When scripts are executed from the repository root, snapshots are written to a non-existent directory, causing runtime errors and missing data for the site.\n\nExpected behavior: Snapshots should be written to .\n\nSuggested fix: Use or compute path relative to the site folder, or change scripts to run with working directory set to .\n\nLabels: bug, enhancement
The function writeSnapshot in site/src/scripts/github.ts uses process.cwd() to construct the output path: . However, the project stores public assets under . When scripts are executed from the repository root, snapshots are written to a non-existent directory, causing runtime errors and missing data for the site.\n\nExpected behavior: Snapshots should be written to .\n\nSuggested fix: Use or compute path relative to the site folder, or change scripts to run with working directory set to .\n\nLabels: bug, enhancement