refactor: cwd
This commit is contained in:
parent
21fa00da85
commit
b72a0db2be
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user