Skip to content

Commit

Permalink
build: Netlify Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Auxtal committed Oct 24, 2024
1 parent 1afc817 commit 7e527f0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/lib/assets/json/Education.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/assets/json/Work.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
{
Expand Down
34 changes: 17 additions & 17 deletions src/lib/server/index.ts
Original file line number Diff line number Diff line change
@@ -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", {
Expand All @@ -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;
};
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 7e527f0

Please # to comment.