Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: move thumbnail fonts to server side
Browse files- {static → src/lib/server}/fonts/Inter-Black.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-Bold.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-ExtraBold.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-ExtraLight.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-Light.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-Medium.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-Regular.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-SemiBold.ttf +0 -0
- {static → src/lib/server}/fonts/Inter-Thin.ttf +0 -0
- src/routes/assistant/[assistantId]/thumbnail.png/+server.ts +2 -2
- src/routes/models/[...model]/thumbnail.png/+server.ts +2 -2
{static → src/lib/server}/fonts/Inter-Black.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-Bold.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-ExtraBold.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-ExtraLight.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-Light.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-Medium.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-Regular.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-SemiBold.ttf
RENAMED
File without changes
|
{static → src/lib/server}/fonts/Inter-Thin.ttf
RENAMED
File without changes
|
src/routes/assistant/[assistantId]/thumbnail.png/+server.ts
CHANGED
@@ -8,8 +8,8 @@ import { Resvg } from "@resvg/resvg-js";
|
|
8 |
import satori from "satori";
|
9 |
import { html } from "satori-html";
|
10 |
|
11 |
-
import InterRegular from "
|
12 |
-
import InterBold from "
|
13 |
import sharp from "sharp";
|
14 |
|
15 |
export const GET: RequestHandler = (async ({ params }) => {
|
|
|
8 |
import satori from "satori";
|
9 |
import { html } from "satori-html";
|
10 |
|
11 |
+
import InterRegular from "$lib/server/fonts/Inter-Regular.ttf";
|
12 |
+
import InterBold from "$lib/server/fonts/Inter-Bold.ttf";
|
13 |
import sharp from "sharp";
|
14 |
|
15 |
export const GET: RequestHandler = (async ({ params }) => {
|
src/routes/models/[...model]/thumbnail.png/+server.ts
CHANGED
@@ -6,8 +6,8 @@ import { Resvg } from "@resvg/resvg-js";
|
|
6 |
import satori from "satori";
|
7 |
import { html } from "satori-html";
|
8 |
|
9 |
-
import InterRegular from "
|
10 |
-
import InterBold from "
|
11 |
import { base } from "$app/paths";
|
12 |
import { models } from "$lib/server/models";
|
13 |
|
|
|
6 |
import satori from "satori";
|
7 |
import { html } from "satori-html";
|
8 |
|
9 |
+
import InterRegular from "$lib/server/fonts/Inter-Regular.ttf";
|
10 |
+
import InterBold from "$lib/server/fonts/Inter-Bold.ttf";
|
11 |
import { base } from "$app/paths";
|
12 |
import { models } from "$lib/server/models";
|
13 |
|