refactor: cwd

This commit is contained in:
cha0s 2024-10-22 23:41:11 -05:00
parent 21fa00da85
commit b72a0db2be
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import {createFileSessionStorage} from "@remix-run/node";
import {redirect} from '@remix-run/react';
const {getSession, commitSession, destroySession} = createFileSessionStorage({
dir: join(import.meta.dirname, '..', '..', 'data', 'remote', 'sessions'),
dir: join(process.cwd(), 'data', 'remote', 'sessions'),
cookie: {
secrets: ["r3m1xr0ck5"],
sameSite: true,

View File

@ -20,7 +20,7 @@ class SocketServer extends Server {
await loadResources(await loadServerResources());
}
static qualify(path) {
return join(import.meta.dirname, '..', '..', 'data', 'remote', 'UNIVERSE', path);
return join(process.cwd(), 'data', 'remote', 'UNIVERSE', path);
}
readAsset(path) {
return readAsset(path) ?? new ArrayBuffer(0);