mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-15 08:24:51 +00:00
fix relay reference to manifest.json
This commit is contained in:
parent
d58ae04cdf
commit
970866d811
29 changed files with 62 additions and 37 deletions
|
|
@ -6,7 +6,7 @@ COPY .yalc/ .yalc/
|
|||
RUN npm ci --omit=dev
|
||||
|
||||
COPY relay/ relay/
|
||||
COPY public/manifest.json public/manifest.json
|
||||
COPY src/manifest.json src/manifest.json
|
||||
|
||||
ENV RELAY_PORT=8765
|
||||
ENV GAME_BASE_PATH=/data/base
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ async function loadManifest(basePath: string): Promise<Manifest> {
|
|||
if (cachedManifest) return cachedManifest;
|
||||
const manifestPath =
|
||||
process.env.MANIFEST_PATH ||
|
||||
path.join(basePath, "..", "..", "public", "manifest.json");
|
||||
path.join(basePath, "..", "..", "src", "manifest.json");
|
||||
const raw = await fs.readFile(manifestPath, "utf-8");
|
||||
cachedManifest = JSON.parse(raw) as Manifest;
|
||||
return cachedManifest;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const GAME_BASE_PATH =
|
|||
|
||||
const MANIFEST_PATH =
|
||||
process.env.MANIFEST_PATH ||
|
||||
path.resolve(GAME_BASE_PATH, "..", "..", "public", "manifest.json");
|
||||
path.resolve(GAME_BASE_PATH, "..", "..", "src", "manifest.json");
|
||||
|
||||
const RELAY_PORT = parseInt(process.env.RELAY_PORT || "8765", 10);
|
||||
const MASTER_SERVER = process.env.T2_MASTER_SERVER || "master.tribesnext.com";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue