env check

This commit is contained in:
ed barz 2023-05-27 12:02:38 +02:00
parent 5ecb37b40e
commit 928c40d757
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<script>
let text = '';
const apiUrl = import.meta.env.VITE_API_URL;
async function createNote() {
const response = await fetch('https://api.brz9.dev/notes', {
@ -55,4 +56,6 @@
{#each notes as note}
<li>{note.Text}</li>
{/each}
</ul>
</ul>
<h4>Just to check, the current API endpoint is : {apiUrl}</h4>