Skip to content

Commit 487f491

Browse files
fix: install libsql in build (#376)
1 parent abf13bd commit 487f491

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

apps/stack/sst.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ export default {
1111
};
1212
},
1313
stacks(app) {
14+
app.setDefaultFunctionProps({
15+
runtime: 'nodejs18.x',
16+
nodejs: {
17+
install: [
18+
'@libsql/client'
19+
]
20+
}
21+
});
1422
app.stack(ExtractStack);
1523
app.stack(TransformStack);
1624
app.stack(InfoStack);

apps/stack/stacks/ExtractStack.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export function ExtractStack({ stack }: StackContext) {
7171
REDIS_USER_TOKEN_TTL,
7272
PER_PAGE
7373
],
74-
runtime: "nodejs18.x",
7574
},
7675
},
7776
});
@@ -175,7 +174,6 @@ export function ExtractStack({ stack }: StackContext) {
175174
REDIS_TOKEN,
176175
REDIS_USER_TOKEN_TTL
177176
],
178-
runtime: "nodejs18.x",
179177
},
180178
},
181179
authorizers: {
@@ -211,7 +209,6 @@ export function ExtractStack({ stack }: StackContext) {
211209
REDIS_TOKEN,
212210
REDIS_USER_TOKEN_TTL,
213211
],
214-
runtime: "nodejs18.x",
215212
}
216213
}
217214
})

apps/stack/stacks/TransformStack.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export function TransformStack({ stack }: StackContext) {
5151
SUPER_DATABASE_AUTH_TOKEN,
5252
SUPER_DATABASE_URL,
5353
],
54-
runtime: "nodejs18.x",
5554
},
5655
},
5756
authorizers: {
@@ -80,7 +79,6 @@ export function TransformStack({ stack }: StackContext) {
8079
SUPER_DATABASE_AUTH_TOKEN,
8180
SUPER_DATABASE_URL,
8281
],
83-
runtime: "nodejs18.x",
8482
}
8583
}
8684
});

0 commit comments

Comments
 (0)