Skip to content

Commit 26306f4

Browse files
committed
add env variable
1 parent 25a2117 commit 26306f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphql-apollo/server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ApolloServer } from '@apollo/server';
22
import { startStandaloneServer } from '@apollo/server/standalone';
33
import { Database } from '@sqlitecloud/drivers';
44

5-
const connStr = '<your-connection-string/databaseName>'
5+
const connStr = Bun.env.CONN_STR || ':memory:';
66

77
const db = new Database(connStr)
88

0 commit comments

Comments
 (0)