From 7e527f0fcf32838960252a1593224147237dd01a Mon Sep 17 00:00:00 2001 From: ethan Date: Thu, 24 Oct 2024 23:39:47 +0800 Subject: [PATCH] build: Netlify Rebuild --- src/lib/assets/json/Education.json | 2 +- src/lib/assets/json/Work.json | 2 +- src/lib/server/index.ts | 34 +++++++++++++++--------------- svelte.config.js | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lib/assets/json/Education.json b/src/lib/assets/json/Education.json index 3b04d26..49c9acc 100644 --- a/src/lib/assets/json/Education.json +++ b/src/lib/assets/json/Education.json @@ -1,7 +1,7 @@ [ { "place": "SAE Qantm Creative Media Institute", - "description": "Bachelor's Degree Of Audio", + "description": "Diploma Of Audio Production", "year_start": "2022", "year_end": "2024" }, diff --git a/src/lib/assets/json/Work.json b/src/lib/assets/json/Work.json index 28e7340..2dd0ec5 100644 --- a/src/lib/assets/json/Work.json +++ b/src/lib/assets/json/Work.json @@ -2,7 +2,7 @@ { "place": "Technical Alliance", "description": "At Technical Alliance I operate lighting at multiple different night club venues all around Perth using GrandMA2 based systems, I also occasionally do some theatrical and installation work.", - "role": "Lighting Technician", + "role": "Production Manager", "current": true }, { diff --git a/src/lib/server/index.ts b/src/lib/server/index.ts index d560313..2589ab5 100644 --- a/src/lib/server/index.ts +++ b/src/lib/server/index.ts @@ -1,7 +1,7 @@ import { env } from "$env/dynamic/private"; -import { NtfyClient } from "ntfy"; +// import { NtfyClient } from "ntfy"; -const ntfyClient = new NtfyClient("https://ntfy.auxtal.xyz"); +// const ntfyClient = new NtfyClient("https://ntfy.auxtal.xyz"); export const sendEmail = async (name: string, email: string, subject: string, message: string) => { const response = await fetch("https://api.emailjs.com/api/v1.0/email/send", { @@ -21,21 +21,21 @@ export const sendEmail = async (name: string, email: string, subject: string, me }) }); - try { - await ntfyClient.publish({ - topic: "portfolio", - title: "Portfolio Website", - message: "A Contact Email Has Been Sent To You", - iconURL: "https://i.ibb.co/vZgSTS1/Logo-Round.png", - tags: ["email"], - authorization: { - username: "auxtal", - password: env.SECRET_NTFY_PASSWORD - } - }); - } catch (error) { - console.log(error); - } + // try { + // await ntfyClient.publish({ + // topic: "portfolio", + // title: "Portfolio Website", + // message: "A Contact Email Has Been Sent To You", + // iconURL: "https://i.ibb.co/vZgSTS1/Logo-Round.png", + // tags: ["email"], + // authorization: { + // username: "auxtal", + // password: env.SECRET_NTFY_PASSWORD + // } + // }); + // } catch (error) { + // console.log(error); + // } return response; }; diff --git a/svelte.config.js b/svelte.config.js index 6061177..facc125 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -2,7 +2,7 @@ import { mdsvex } from "mdsvex"; import mdsvexConfig from "./mdsvex.config.js"; import sveltePreprocess from "svelte-preprocess"; -import adapter from "@sveltejs/adapter-node"; +import adapter from "@sveltejs/adapter-netlify"; /** @type {import('@sveltejs/kit').Config} */ const config = {