Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4bfeb commit 47ef496Copy full SHA for 47ef496
agent-reactflow/apps/backend/src/client.ts
@@ -1,17 +1,12 @@
1
import Restack from "@restackio/ai";
2
3
-// import dotenv from 'dotenv';
4
-// import path from 'path';
5
-
6
-// dotenv.config({ path: path.resolve(__dirname, '../../../.env') });
7
8
-export const apiAddress = process.env.RESTACK_ENGINE_API_ADDRESS!
+import "dotenv/config";
9
10
export const connectionOptions = {
11
engineId: process.env.RESTACK_ENGINE_ID!,
12
address: process.env.RESTACK_ENGINE_ADDRESS!,
13
apiKey: process.env.RESTACK_ENGINE_API_KEY!,
14
- apiAddress,
+ apiAddress: process.env.RESTACK_ENGINE_API_ADDRESS!,
15
};
16
17
export const client = new Restack(
0 commit comments