fix: handle case were no Durable Objects are configured
Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
2
index.ts
2
index.ts
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user