refactor: data location

This commit is contained in:
cha0s 2024-07-20 05:10:20 -05:00
parent 9833e2ba16
commit 49b3fc3c46
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,8 +1,8 @@
node_modules
/app/data
/.cache
/build
/coverage
/data
/dev
.env

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(import.meta.dirname, '..', '..', 'data', 'remote', 'sessions'),
cookie: {
secrets: ["r3m1xr0ck5"],
sameSite: true,

View File

@ -48,7 +48,7 @@ class SocketServer extends Server {
await mkdir(path, {recursive: true});
}
static qualify(path) {
return join(import.meta.dirname, 'data', 'remote', 'UNIVERSE', path);
return join(import.meta.dirname, '..', 'data', 'remote', 'UNIVERSE', path);
}
async readAsset(path) {
const url = new URL(path, 'https://localhost:3000')