Hi there, I'm juls07, I am 14 years old and I love web
development. I first dabbled in web development
when I was ten, and here we are today! I mainly use
- NuxtJs to
+ NuxtJs to
build my websites since I absolutely
adore Vuejs. For me, I love being able to imagine anything and it to come to life. Finally, go
- checkout my Github and also my Github and also my Twitter.
Skills
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
Projects
+
+
+
+
+
+
+
+
diff --git a/public/images/website-rebuild-draft-1.avif b/public/images/website-rebuild-draft-1.avif
new file mode 100644
index 0000000..f56c803
Binary files /dev/null and b/public/images/website-rebuild-draft-1.avif differ
diff --git a/supabase/functions/newsletter/index.ts b/supabase/functions/newsletter/index.ts
index 862d33b..1333282 100644
--- a/supabase/functions/newsletter/index.ts
+++ b/supabase/functions/newsletter/index.ts
@@ -16,10 +16,12 @@ serve(async (req) => {
const supabase = createClient(Deno.env.get('SUPABASE_URL'), Deno.env.get('SUPABASE_ANON_KEY'))
const { email, name } = await req.json()
- if (!name || !email || !emailRegex.test(email)) throw new Error(
+ if (!email || !emailRegex.test(email)) throw new Error(
'Please provide a valid email address or name'
)
+ const name = email.split('@')[0]
+
const { data, error } = await supabase
.from('subscribers')
.upsert({ name: name, email: email })