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