Skip to content

Commit

Permalink
Bump astro version to fix astro build bug
Browse files Browse the repository at this point in the history
  • Loading branch information
binjamil committed May 26, 2023
1 parent 8374806 commit d7e5bf2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
34 changes: 30 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "mbinjamil.dev",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
Expand All @@ -18,7 +17,7 @@
"@netlify/planetscale": "^1.0.0",
"@planetscale/database": "^1.7.0",
"@types/node": "^14.18.48",
"astro": "^2.5.0",
"astro": "^2.5.2",
"typescript": "^4.9.5"
}
}
12 changes: 6 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
<h1 id="hello"></h1>
</main>
<Footer />
<script>
fetch('./.netlify/functions/hello-world').then(res => res.json().then(json => {
const { message } = json;
document.querySelector('#hello').innerText = message;
}));
</script>
</body>
</html>

<script>
fetch('./.netlify/functions/hello-world').then(res => res.json().then(json => {
const { message } = json;
document.querySelector('#hello').innerText = message;
}));
</script>

0 comments on commit d7e5bf2

Please sign in to comment.