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 node_modules
/app/data
/.cache /.cache
/build /build
/coverage /coverage
/data
/dev /dev
.env .env

View File

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

View File

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