fix: handle case were no Durable Objects are configured

Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
2024-01-29 00:29:17 +01:00
parent 68919fb0db
commit 60e096014d
2 changed files with 2 additions and 2 deletions

View File

@@ -334,7 +334,7 @@ class CloudflareEmulator implements Emulator {
this.miniflare = new Miniflare({
script:
`export default {async fetch() {return new Response("Hello world!");}};` +
script.outputFiles[0].text,
script.outputFiles[0]?.text,
modules: true,
cache: true,
kvNamespaces: env.kv,

View File

@@ -1,6 +1,6 @@
{
"name": "@fossoreslp/sveltekit-adapter-cloudflare",
"version": "5.0.0",
"version": "5.0.1",
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",
"repository": {
"type": "git",