refactor(host): migrate from docker swarm to kubernetes
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { getAmberVh } from "@/lib/api";
|
||||
|
||||
export const revalidate = 3600;
|
||||
|
||||
export async function GET() {
|
||||
return new Response(
|
||||
await fetch(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import { getAmberVh } from "@/lib/api";
|
||||
|
||||
export const revalidate = 3600;
|
||||
|
||||
export async function GET() {
|
||||
return new Response(
|
||||
await fetch(
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
import { env } from "node:process";
|
||||
import Snowflake, { GatewayIntents } from "@sfjs/snowflake";
|
||||
import { redis } from "@/lib/db/redis";
|
||||
import { adminCheck } from "@/lib/auth";
|
||||
import { forbidden } from "next/navigation";
|
||||
import { adminCheck } from "@/lib/auth";
|
||||
import { redis } from "@/lib/db/redis";
|
||||
|
||||
const bot = new Snowflake({
|
||||
token: env.DISCORD_BOT_TOKEN || "",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { and, asc, not, sql } from "drizzle-orm";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { db } from "@/lib/db";
|
||||
import { donations } from "@/lib/db/schema";
|
||||
import { sse } from "@/lib/db/sse-endpoints";
|
||||
import { fileToDataUrl } from "@/lib/utils";
|
||||
import { and, asc, not, sql } from "drizzle-orm";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { getPostHogClient } from "@/lib/posthog-server";
|
||||
import { fileToDataUrl } from "@/lib/utils";
|
||||
|
||||
async function runResume() {
|
||||
const [havent] = await db
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { GoogleGenAI } from "@google/genai";
|
||||
import { hash } from "bun";
|
||||
import { PassThrough, Readable } from "stream";
|
||||
import wav from "wav";
|
||||
import { Readable, PassThrough } from "stream";
|
||||
import z from "zod";
|
||||
import { redis } from "@/lib/db/redis";
|
||||
import { hash } from "bun";
|
||||
|
||||
const { DONATE_WIDGET_KEY, GEMINI_TTS_API_KEY } = process.env as Record<
|
||||
string,
|
||||
string
|
||||
|
||||
Reference in New Issue
Block a user