refactor: data location
This commit is contained in:
parent
9833e2ba16
commit
49b3fc3c46
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,8 +1,8 @@
|
|||
node_modules
|
||||
|
||||
/app/data
|
||||
/.cache
|
||||
/build
|
||||
/coverage
|
||||
/data
|
||||
/dev
|
||||
.env
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user