Skip to content

Commit c5ee116

Browse files
committed
Fix typescript error, run build always
1 parent 329f891 commit c5ee116

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
# Trigger the workflow every time you push to the `main` branch
55
# Using a different branch name? Replace `main` with your branch’s name
66
push:
7-
branches:
8-
- main
97
# Allows you to run this workflow manually from the Actions tab on GitHub.
108
workflow_dispatch:
119

@@ -42,7 +40,7 @@ jobs:
4240
- name: Build
4341
run: pnpm build
4442
- name: Deploy to SFTP
45-
if: github.ref == 'refs/heads/develop'
43+
if: github.ref == 'refs/heads/main'
4644
env:
4745
SFTP_HOST: ${{ secrets.SFTP_HOST }}
4846
SFTP_USERNAME: ${{ secrets.SFTP_USERNAME }}

src/pages/404.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ const appWebPreviewUrl = import.meta.env.APP_WEB_PREVIEW_URL;
6868
return `${base}${location.pathname}${location.search}${location.hash}`;
6969
};
7070
const launchButtons = document.querySelectorAll(".launch-btn");
71-
launchButtons.forEach((button) => {
72-
button.setAttribute("href", getPath(button.getAttribute("href")));
73-
});
71+
for (const button of launchButtons) {
72+
const href = button.getAttribute("href");
73+
if (!href) continue;
74+
button.setAttribute("href", getPath(href));
75+
}
7476
</script>

0 commit comments

Comments
 (0)