Add on/off weapon research dps and params tables feature

This commit is contained in:
anibus
2026-09-03 20:22:01 +03:00
parent 23bfad8956
commit fa0baa62c1
6 changed files with 264 additions and 34 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
// Server-side API helpers for metadata generation.
// Runs only on the server (Node.js) — uses NEXT_PUBLIC_HOST_URL which is inlined at build time.
// Runs only on the server (Node.js) — uses HOST_URL (not exposed to the browser).
import { IMod } from '@/src/types/Imod';
import { Irace } from '@/src/types/Irace';
@@ -8,8 +8,8 @@ import { IRaceBuildings } from '@/src/types/IBuildingShort';
import { IUnit } from '@/src/types/IUnit';
import { IBuilding } from '@/src/types/IBuilding';
const API = process.env.NEXT_PUBLIC_HOST_URL || '';
export const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://dow-wiki.example.com';
const API = process.env.HOST_URL || '';
export const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://wiki.dawn-of-war.pro';
async function fetchJson<T>(url: string): Promise<T | null> {
try {