env check
This commit is contained in:
parent
5ecb37b40e
commit
928c40d757
|
@ -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>
|
Loading…
Reference in New Issue