Compare commits

..

No commits in common. "928c40d75741e569adbd9468d2eccc0c63b8f759" and "6c36cff4925112b0296917ac2d917827b1660e7e" have entirely different histories.

6 changed files with 3 additions and 20 deletions

View File

@ -1 +0,0 @@
VITE_API_URL=http://localhost:8069

View File

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ node_modules
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

11
package-lock.json generated
View File

@ -7,9 +7,6 @@
"": {
"name": "brz9front",
"version": "0.0.1",
"dependencies": {
"dotenv": "^16.0.3"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-node": "^1.2.4",
@ -1006,14 +1003,6 @@
"node": ">=6.0.0"
}
},
"node_modules/dotenv": {
"version": "16.0.3",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz",
"integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==",
"engines": {
"node": ">=12"
}
},
"node_modules/esbuild": {
"version": "0.17.19",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",

View File

@ -21,8 +21,5 @@
"svelte": "^3.54.0",
"vite": "^4.3.0"
},
"type": "module",
"dependencies": {
"dotenv": "^16.0.3"
}
"type": "module"
}

View File

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