fix(import): make effects and figure/clothing import work on deployment
- resolveGamedataFile: detect Windows drive/UNC paths explicitly instead of path.win32.isAbsolute (which is true for any /-prefixed path on Linux), so /nitro-assets URLs are no longer returned verbatim; add deployment gamedata root fallback (/var/www/Gamedata/config) and keep public/Gamedata/config. - effect/figure import dirs now resolve via site settings then the gamedata root bundled dir, instead of hardcoded public paths. - effect list falls back to the local EffectMap when the official habbo.com endpoint is unreachable, keeping the admin import page usable. - update staff smoke contract for db:migrate and instant=false (Cache Components migration).
This commit is contained in:
1 parent
694a24c791
commit
dd708a64fb
10 files changed
+172
-56
No files matched your search
@@ -23,7 +23,7 @@ export async function getEffectMapPath(): Promise<string> {
|
||||
"effectmap_url",
|
||||
"/nitro-assets/gamedata/EffectMap.json",
|
||||
);
|
||||
return resolveGamedataFile(
|
||||
return await resolveGamedataFile(
|
||||
url ?? "/nitro-assets/gamedata/EffectMap.json",
|
||||
"EffectMap.json",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user