Fix Astro configuration error and secure Appwrite integration

This commit is contained in:
SpaghetGaming committed 2025-08-14 13:16:53 -04:00
1 parent 39eba48efd
commit 773e8ebaeb
7 files changed
+27 -7

No files matched your search

+2 -1
View File
@@ -8,4 +8,5 @@ import solidJs from "@astrojs/solid-js"
export default defineConfig({
site: "https://spaghet.io",
integrations: [mdx(), sitemap(), solidJs(), tailwind({ applyBaseStyles: false })],
})
output: "static"
})
+12
View File
@@ -15,6 +15,7 @@
"@astrojs/solid-js": "^4.0.1",
"@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.10",
"appwrite": "^18.2.0",
"astro": "^4.4.13",
"clsx": "^2.1.0",
"fuse.js": "^7.0.0",
@@ -2075,6 +2076,12 @@
"node": ">= 8"
}
},
"node_modules/appwrite": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-18.2.0.tgz",
"integrity": "sha512-g7pQpsxqR7+amEIaQLXMN4XzdQKenTHnGdA4s7UUJdZufhlHdJby8895h8z893+S0XipeHZhi0wpxYA2An95Rg==",
"license": "BSD-3-Clause"
},
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
@@ -10541,6 +10548,11 @@
"picomatch": "^2.0.4"
}
},
"appwrite": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/appwrite/-/appwrite-18.2.0.tgz",
"integrity": "sha512-g7pQpsxqR7+amEIaQLXMN4XzdQKenTHnGdA4s7UUJdZufhlHdJby8895h8z893+S0XipeHZhi0wpxYA2An95Rg=="
},
"arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+1
View File
@@ -21,6 +21,7 @@
"@astrojs/solid-js": "^4.0.1",
"@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.10",
"appwrite": "^18.2.0",
"astro": "^4.4.13",
"clsx": "^2.1.0",
"fuse.js": "^7.0.0",
+1 -3
View File
@@ -26,9 +26,7 @@ import Container from "@components/Container.astro"
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div class="flex flex-col items-center sm:items-start">
<a href="/" class="flex gap-1 w-fit font-semibold text-current hover:text-black dark:hover:text-white transition-colors duration-300 ease-in-out">
<svg class="size-6 fill-current">
<use href="/brand.svg#brand"/>
</svg>
<img src="https://appdev.spaghet.io/v1/storage/buckets/689cda7900102e12abf2/files/689d265e0036955a618d/view?project=689783c90022d294b15c" alt="Logo" class="size-6" />
{SITE.TITLE}
</a>
</div>
+1 -3
View File
@@ -11,9 +11,7 @@ import Container from "@components/Container.astro"
<div class="relative h-full w-full">
<div class="absolute left-0 top-1/2 -translate-y-1/2 flex gap-1 font-semibold">
<a href="/" class="flex gap-1 text-current hover:text-spaghetti-brown dark:hover:text-spaghetti-brown transition-colors duration-300 ease-in-out">
<svg class="size-6 fill-current">
<use href="/brand.svg#brand"></use>
</svg>
<img src="${import.meta.env.APPWRITE_ENDPOINT}/v1/storage/buckets/${import.meta.env.APPWRITE_BUCKET_ID}/files/689d265e0036955a618d/view?project=${import.meta.env.APPWRITE_PROJECT_ID}" alt="Logo" class="size-6" />
<div>
{SITE.TITLE}
</div>
+9
View File
@@ -0,0 +1,9 @@
import { Client, Storage } from "appwrite";
const client = new Client();
client
.setEndpoint(import.meta.env.APPWRITE_ENDPOINT) // Your Appwrite endpoint
.setProject(import.meta.env.APPWRITE_PROJECT_ID); // Your Project ID
export const storage = new Storage(client);
+1
View File
@@ -79,6 +79,7 @@ const stack = [
<div class="animate absolute h-full w-full flex items-center justify-center">
<div class='relative w-full h-full flex items-center justify-center'>
<div class='p-5 text-center'>
<img src="${import.meta.env.APPWRITE_ENDPOINT}/v1/storage/buckets/${import.meta.env.APPWRITE_BUCKET_ID}/files/689d27a400194d326f69/view?project=${import.meta.env.APPWRITE_PROJECT_ID}" alt="Quinn Marvin" class="rounded-full w-32 h-32 mx-auto mb-4 border-4 border-spaghetti-red" />
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75 text-spaghetti-brown'>
Hello, I am Quinn Marvin
</p>