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({
|
this.miniflare = new Miniflare({
|
||||||
script:
|
script:
|
||||||
`export default {async fetch() {return new Response("Hello world!");}};` +
|
`export default {async fetch() {return new Response("Hello world!");}};` +
|
||||||
script.outputFiles[0].text,
|
script.outputFiles[0]?.text,
|
||||||
modules: true,
|
modules: true,
|
||||||
cache: true,
|
cache: true,
|
||||||
kvNamespaces: env.kv,
|
kvNamespaces: env.kv,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fossoreslp/sveltekit-adapter-cloudflare",
|
"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",
|
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user