diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index f50782584..e16e08cb2 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -45,6 +45,9 @@ jobs: chunk: [default, api] steps: + - name: Free disk space + uses: jlumbroso/free-disk-space@main + - name: Checkout uses: actions/checkout@v6 with: diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/compare/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/compare/index.astro index cf0884483..9282dd96d 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/compare/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/compare/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/[embed]/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/[embed]/index.astro index 4e8240656..4222d3a2b 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/[embed]/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/[embed]/index.astro @@ -1,7 +1,7 @@ --- import type { GetStaticPaths } from "astro"; -import { embedConfigurations } from "../../../../../constants/embeds"; -import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; +import { embedConfigurations } from "../../../../../../constants/embeds"; +import LegacyRedirect from "../../../../../../layouts/LegacyRedirect.astro"; import { getStaticPaths as parentGetStaticPaths } from "../index.astro"; export const getStaticPaths = (() => { @@ -14,7 +14,7 @@ export const getStaticPaths = (() => { ...parent.params, embed: embed as keyof typeof embedConfigurations, }, - })) + })), ) .flat(); }) satisfies GetStaticPaths; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/index.astro index 8096fbdd8..17fbfd9cd 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/embed/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/gallery/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/gallery/index.astro index 13a26f486..af5d8d0a2 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/gallery/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/gallery/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/session/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/session/index.astro index f0777caef..279220d1b 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/session/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/session/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/[id]/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/[id]/index.astro index d5a571f74..2c0979e68 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/[id]/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/[id]/index.astro @@ -1,11 +1,11 @@ --- -import { fetchTankDefinitions } from "@blitzkit/core"; import type { GetStaticPaths } from "astro"; -import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; +import { api } from "../../../../../../core/blitzkit/api"; +import LegacyRedirect from "../../../../../../layouts/LegacyRedirect.astro"; import { getStaticPaths as parentGetStaticPaths } from "../index.astro"; export const getStaticPaths = (async () => { - const tankDefinitions = await fetchTankDefinitions(); + const tankDefinitions = await api.tankDefinitions(); const parentPaths = parentGetStaticPaths(); return Object.values(tankDefinitions.tanks) @@ -20,7 +20,7 @@ export const getStaticPaths = (async () => { const { id } = Astro.params; const { locale } = Astro.props; -const tankDefinitions = await fetchTankDefinitions(); +const tankDefinitions = await api.tankDefinitions(); const tank = tankDefinitions.tanks[id]; --- diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/index.astro index ce837a8b7..d95e9d358 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tankopedia/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tier-list/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tier-list/index.astro index 32f3c7180..bddc2c516 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tier-list/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tools/tier-list/index.astro @@ -1,5 +1,5 @@ --- -import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro"; +import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro"; export { getStaticPaths } from "../../index.astro";