Skip to content

Commit

Permalink
fix: KV error for stable deno
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-dietrich committed Aug 30, 2023
1 parent 8c998d0 commit 2a33e8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ switch (env.data_engine) {
}

case 'kv': {
kv = await Deno.openKv()
try {
kv = await Deno.openKv()
} catch (_error) {
throw new Error('KV Engine not supported (run with --unstable)')
}
break
}

Expand Down

1 comment on commit 2a33e8e

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 2a33e8e Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/dist/app.js".

Please sign in to comment.