We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ace33e commit 4e6532dCopy full SHA for 4e6532d
1 file changed
app/utils/litefs.server.ts
@@ -1,5 +1,22 @@
1
// litefs-js should be used server-side only. It imports `fs` which results in Remix
2
// including a big polyfill. So we put the import in a `.server.ts` file to avoid that
3
// polyfill from being included. https://github.com/epicweb-dev/epic-stack/pull/331
4
-export * from 'litefs-js'
5
-export * from 'litefs-js/remix'
+export {
+ 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
17
+ ensurePrimary,
18
+ ensureInstance,
19
+ getReplayResponse,
20
+ handleTransactionalConsistency,
21
+ appendTxNumberCookie,
22
+} from 'litefs-js/remix'
0 commit comments