Draft
Conversation
✅ Deploy Preview for avannotate-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Agent-Logs-Url: https://github.com/AVAnnotate/admin-client/sessions/18e88bf3-5c31-44ad-93eb-b3bbd6d11640 Co-authored-by: saracarl <708566+saracarl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add static site export with relative links
Static site export with relative links
Mar 26, 2026
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.
Static site exports required a web server because Astro built with absolute paths. When both GitHub Pages and static export were enabled, the static site reused the GitHub Pages build (with a slug base path), nesting output under
site/project-name/instead ofsite/.The
project-clientalready includesastro-relative-linksin its config. The missing piece was a dedicated rebuild step for the static export case.Changes
src/workflows/deploy-main.yml(new): Local workflow template replacing theproject-templatefetch dependency. Adds a "Rebuild for static site with relative links" step that runs only when both GitHub Pages and static export are enabled — usesjqto temporarily disablepublish_pages_appbefore rebuilding, so the static output always lands atsite/index.htmlwith relative links:src/backend/projectHelpers.ts:publishSite()now imports the local workflow via Vite?rawand compares it against the project repo's current workflow content, updating only when they differ. Removes the two-step SHA comparison againstAVAnnotate/project-template.src/env.d.ts: Added/// <reference types="vite/client" />to support?rawimports.Scenario matrix
site/index.htmlwith relative links (was already correct)site/index.htmlrebuild with relative linksWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.sheetjs.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm install grep -l ve alize.ts ndor/bin/grep ve pareEventsModal.-w tnet/tools/git grep -l ve es.ts(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.