Skip to content

Commit

Permalink
Workaround astro src/pages server side build by defining components…
Browse files Browse the repository at this point in the history
… in other folders
  • Loading branch information
pkong-ds committed Aug 26, 2024
1 parent 508abd6 commit 90e3c62
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { url, imageSrc, title, content, id } = Astro.props;
NOTE: we added underscore prefix to make Astro ignore these client-side scripts, such that `document` and `window` can be accessed
ref https://github.com/withastro/astro/issues/5873#issuecomment-1384642348
-->
<script src="./_developer-tools-card.ts"></script>;
<script src="./developer-tools-card.ts"></script>

<a href={url ?? "#"} target="_blank">
<div class="developer-tools-card" id={id}>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/developerTools/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import BaseLayout from "../../layouts/BaseLayout.astro";
import DeveloperToolCard from "./DeveloperToolCard.astro";
import DeveloperToolCard from "../../components/DeveloperToolCard/DeveloperToolCard.astro";
import "./index.css";
---

Expand Down

0 comments on commit 90e3c62

Please sign in to comment.