diff --git a/.env.sample b/.env.sample index 80053ac3..a5a92423 100644 --- a/.env.sample +++ b/.env.sample @@ -1,10 +1,10 @@ -PUBLIC_SUPABASE_URL= -PUBLIC_SUPABASE_ANON_KEY= -PUBLIC_SENDER_EMAIL= -PUBLIC_DISCORD_INVITE= -PUBLIC_SES_REGION= -PUBLIC_SMTP_USER= -PUBLIC_SMTP_PASS= -PUBLIC_SMTP_HOST= +SUPABASE_URL= +SUPABASE_ANON_KEY= +SENDER_EMAIL= +DISCORD_INVITE= +SES_REGION= +SMTP_USER= +SMTP_PASS= +SMTP_HOST= PUBLIC_BLOCKED_URLS= PUBLIC_HOST_URL= diff --git a/public/docs/survival-guide.pdf b/public/docs/survival-guide.pdf new file mode 100644 index 00000000..35206a89 Binary files /dev/null and b/public/docs/survival-guide.pdf differ diff --git a/src/components/header.astro b/src/components/header.astro index a57fd9c1..878fdbec 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -6,6 +6,7 @@ const { sticky } = Astro.props; const navItems: Array = [ { title: "Regulation", url: "/docs/regulation.pdf" }, + { title: "Survival Guide", url: "/docs/survival-guide.pdf" }, { title: "FAQs", url: "/faqs" }, { title: "Previous edition", url: "https://2023.bugsbyte.org/" }, { title: "Team formation", url: "/teams" }, diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts index fb0c3711..6b3dc65d 100644 --- a/src/lib/supabase.ts +++ b/src/lib/supabase.ts @@ -1,6 +1,6 @@ import { createClient } from "@supabase/supabase-js"; export const supabase = createClient( - import.meta.env.PUBLIC_SUPABASE_URL as string, - import.meta.env.PUBLIC_SUPABASE_ANON_KEY as string, + import.meta.env.SUPABASE_URL as string, + import.meta.env.SUPABASE_ANON_KEY as string, ); diff --git a/src/pages/api/register.ts b/src/pages/api/register.ts index c00bc19e..94fd3f8a 100644 --- a/src/pages/api/register.ts +++ b/src/pages/api/register.ts @@ -7,16 +7,16 @@ import { SMTPClient } from "emailjs"; export const prerender = false; const supabase = createClient( - import.meta.env.PUBLIC_SUPABASE_URL, - import.meta.env.PUBLIC_SUPABASE_ANON_KEY, + import.meta.env.SUPABASE_URL, + import.meta.env.SUPABASE_ANON_KEY, ); -const senderEmail = import.meta.env.PUBLIC_SENDER_EMAIL; -const discordInvite = import.meta.env.PUBLIC_DISCORD_INVITE; +const senderEmail = import.meta.env.SENDER_EMAIL; +const discordInvite = import.meta.env.DISCORD_INVITE; const client = new SMTPClient({ - user: import.meta.env.PUBLIC_SMTP_USER, - password: import.meta.env.PUBLIC_SMTP_PASS, - host: import.meta.env.PUBLIC_SMTP_HOST, + user: import.meta.env.SMTP_USER, + password: import.meta.env.SMTP_PASS, + host: import.meta.env.SMTP_HOST, ssl: true, }); diff --git a/src/pages/api/teams/create.ts b/src/pages/api/teams/create.ts index cc481e1d..755248c7 100644 --- a/src/pages/api/teams/create.ts +++ b/src/pages/api/teams/create.ts @@ -6,17 +6,17 @@ import { SMTPClient } from "emailjs"; export const prerender = false; -const senderEmail = import.meta.env.PUBLIC_SENDER_EMAIL; +const senderEmail = import.meta.env.SENDER_EMAIL; const client = new SMTPClient({ - user: import.meta.env.PUBLIC_SMTP_USER, - password: import.meta.env.PUBLIC_SMTP_PASS, - host: import.meta.env.PUBLIC_SMTP_HOST, + user: import.meta.env.SMTP_USER, + password: import.meta.env.SMTP_PASS, + host: import.meta.env.SMTP_HOST, ssl: true, }); const supabase = createClient( - import.meta.env.PUBLIC_SUPABASE_URL, - import.meta.env.PUBLIC_SUPABASE_ANON_KEY, + import.meta.env.SUPABASE_URL, + import.meta.env.SUPABASE_ANON_KEY, ); const { randomUUID } = new ShortUniqueId({ length: 6 }); diff --git a/src/pages/api/teams/join.ts b/src/pages/api/teams/join.ts index 81329d5f..2a4f0207 100644 --- a/src/pages/api/teams/join.ts +++ b/src/pages/api/teams/join.ts @@ -5,15 +5,15 @@ import { SMTPClient } from "emailjs"; export const prerender = false; const supabase = createClient( - import.meta.env.PUBLIC_SUPABASE_URL, - import.meta.env.PUBLIC_SUPABASE_ANON_KEY, + import.meta.env.SUPABASE_URL, + import.meta.env.SUPABASE_ANON_KEY, ); -const senderEmail = import.meta.env.PUBLIC_SENDER_EMAIL; +const senderEmail = import.meta.env.SENDER_EMAIL; const client = new SMTPClient({ - user: import.meta.env.PUBLIC_SMTP_USER, - password: import.meta.env.PUBLIC_SMTP_PASS, - host: import.meta.env.PUBLIC_SMTP_HOST, + user: import.meta.env.SMTP_USER, + password: import.meta.env.SMTP_PASS, + host: import.meta.env.SMTP_HOST, ssl: true, });