add cloudflare deploy

This commit is contained in:
Brian Beck 2026-04-08 23:48:42 -07:00
parent e7315c043a
commit 5676aaf378
31 changed files with 82 additions and 41 deletions

View file

@ -71,8 +71,8 @@ import type { PlayerEntity } from "../state/gameEntityTypes";
*/
export const playerEyePositions = new Map<string, Vector3>();
const SKIN_BASE_URL = "https://exogen.github.io/t2-skins/skins/";
const SKIN_MANIFEST_URL = "https://exogen.github.io/t2-skins/skins.json";
const SKIN_BASE_URL = "https://assets.tribes2.online/skins/files/";
const SKIN_MANIFEST_URL = "https://assets.tribes2.online/skins/manifest.json";
/** Map shape DTS name to skin texture suffix. */
const SKIN_SUFFIXES: Record<string, string> = {

View file

@ -14,9 +14,8 @@ const log = createLogger("loaders");
export type { TerrainFile };
export const BASE_URL = "/t2-mapper";
export const RESOURCE_ROOT_URL = `${BASE_URL}/base/`;
export const FALLBACK_TEXTURE_URL = `${BASE_URL}/white.png`;
export const RESOURCE_ROOT_URL = `${process.env.BASE_PATH}base/`;
export const FALLBACK_TEXTURE_URL = `${process.env.BASE_PATH}white.png`;
export function getUrlForPath(resourcePath: string, fallbackUrl?: string) {
let resourceKey;