#Astro api in scripts

2 messages · Page 1 of 1 (latest)

flint thicket
#

Hi, i thought i could do that, but it returns me an error, should i use normal javascript or, how can i use astro here?

jovial harness
#
---
Runs on the server - You can use Astro.whatever here
---

...

<script>
    Runs on the client - You can't use Astro.whatever here
</script>