Skip to content

Commit 546215c

Browse files
authored
fix(celest): Fallback to in-memory database (#238)
1 parent 13210ea commit 546215c

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

packages/celest/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1+2
2+
3+
- fix: Fallback to in-memory database
4+
15
## 1.0.1+1
26

37
- fix: Fix expectation of trace context when running in cloud

packages/celest/lib/src/runtime/data/connect.io.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ Future<QueryExecutor> localExecutor({
1717
String? path,
1818
}) async {
1919
if (path == null) {
20-
final packageConfig = await Isolate.packageConfig;
20+
Uri? packageConfig;
21+
try {
22+
packageConfig = await Isolate.packageConfig;
23+
} on Object {
24+
// Not available in all environments.
25+
}
2126
if (packageConfig == null) {
2227
_logger.warning(
2328
'Failed to determine package config path. '

packages/celest/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: celest
22
description: The Flutter cloud platform. Celest enables you to build your entire backend in Dart.
3-
version: 1.0.1+1
3+
version: 1.0.1+2
44
homepage: https://celest.dev
55
repository: https://github.com/celest-dev/celest/tree/main/packages/celest
66

0 commit comments

Comments
 (0)