Skip to content

Commit 4e6532d

Browse files
committed
fix litefs integration
Closes #1017
1 parent 1ace33e commit 4e6532d

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

app/utils/litefs.server.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
// litefs-js should be used server-side only. It imports `fs` which results in Remix
22
// including a big polyfill. So we put the import in a `.server.ts` file to avoid that
33
// polyfill from being included. https://github.com/epicweb-dev/epic-stack/pull/331
4-
export * from 'litefs-js'
5-
export * from 'litefs-js/remix'
4+
export {
5+
getInstanceInfo,
6+
getInstanceInfoSync,
7+
TXID_NUM_COOKIE_NAME,
8+
waitForUpToDateTxNumber,
9+
getTxNumber,
10+
getTxSetCookieHeader,
11+
checkCookieForTransactionalConsistency,
12+
getInternalInstanceDomain,
13+
getAllInstances,
14+
} from 'litefs-js'
15+
16+
export {
17+
ensurePrimary,
18+
ensureInstance,
19+
getReplayResponse,
20+
handleTransactionalConsistency,
21+
appendTxNumberCookie,
22+
} from 'litefs-js/remix'

0 commit comments

Comments
 (0)