From e403e355aec52a326e629fa50eb5a290e0b06ab2 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Thu, 5 Feb 2026 03:22:52 -0800 Subject: [PATCH] move amq data out of static since it's too big for cloudflare --- {static/data => data}/amq-anime.json | 0 {static/data => data}/amq-artists.json | 0 {static/data => data}/amq-groups.json | 0 {static/data => data}/amq-songs.json | 0 src/lib/db/import-amq.ts | 14 ++++---------- 5 files changed, 4 insertions(+), 10 deletions(-) rename {static/data => data}/amq-anime.json (100%) rename {static/data => data}/amq-artists.json (100%) rename {static/data => data}/amq-groups.json (100%) rename {static/data => data}/amq-songs.json (100%) diff --git a/static/data/amq-anime.json b/data/amq-anime.json similarity index 100% rename from static/data/amq-anime.json rename to data/amq-anime.json diff --git a/static/data/amq-artists.json b/data/amq-artists.json similarity index 100% rename from static/data/amq-artists.json rename to data/amq-artists.json diff --git a/static/data/amq-groups.json b/data/amq-groups.json similarity index 100% rename from static/data/amq-groups.json rename to data/amq-groups.json diff --git a/static/data/amq-songs.json b/data/amq-songs.json similarity index 100% rename from static/data/amq-songs.json rename to data/amq-songs.json diff --git a/src/lib/db/import-amq.ts b/src/lib/db/import-amq.ts index 2edc95e..e95263f 100644 --- a/src/lib/db/import-amq.ts +++ b/src/lib/db/import-amq.ts @@ -6,18 +6,12 @@ import { AmqGroupSchema, AmqSongSchema, } from "$lib/types/amq"; -import amqAnimeJson from "../../../static/data/amq-anime.json" with { - type: "json", -}; -import amqArtistsJson from "../../../static/data/amq-artists.json" with { - type: "json", -}; -import amqGroupsJson from "../../../static/data/amq-groups.json" with { - type: "json", -}; -import amqSongsJson from "../../../static/data/amq-songs.json" with { +import amqAnimeJson from "../../../data/amq-anime.json" with { type: "json" }; +import amqArtistsJson from "../../../data/amq-artists.json" with { type: "json", }; +import amqGroupsJson from "../../../data/amq-groups.json" with { type: "json" }; +import amqSongsJson from "../../../data/amq-songs.json" with { type: "json" }; import { db } from "./index"; import { animeGenresTable,