fix: export

This commit is contained in:
2025-06-30 18:35:00 +01:00
parent ce9f84b2e1
commit 01001eab79
3 changed files with 3 additions and 4 deletions

View File

@ -64,3 +64,5 @@ export const createLedClient = (_addr: string) => {
// export const twitchClient = createTwitchClient();
// twitchClient.subscribeToFollow();
//
export const client = createLedClient("192.168.1.215");

View File

@ -1,8 +1,6 @@
import { createLedClient } from "$lib";
import { fail, type Actions } from "@sveltejs/kit";
export const client = createLedClient("192.168.1.215");
export const actions: Actions = {
async default({ request }) {
const data = await request.formData();

View File

@ -2,8 +2,7 @@ import { createHmac, timingSafeEqual } from "node:crypto";
import type { RequestHandler } from "@sveltejs/kit";
import { HASH_SECRET } from "$env/static/private";
import { twitchFollowEvent } from "$lib/twitch";
import { client } from "../../+page.server";
import { client } from "$lib";
const getHmacMessage = (request: Request, body: string): string => {
return (
request.headers.get(TWITCH_MESSAGE_ID)! +