Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for typescript. #748

Closed
jadedevin13 opened this issue Dec 10, 2023 · 1 comment
Closed

Support for typescript. #748

jadedevin13 opened this issue Dec 10, 2023 · 1 comment

Comments

@jadedevin13
Copy link

I've tried using something like this in astro cloudflare plugin but it's throwing an error

this._miniflare = new Miniflare({
            cachePersist: `${runtimeConfig.persistTo}/cache`,
            d1Persist: `${runtimeConfig.persistTo}/d1`,
            r2Persist: `${runtimeConfig.persistTo}/r2`,
            kvPersist: `${runtimeConfig.persistTo}/kv`,
            durableObjectsPersist: `${runtimeConfig.persistTo}/do`,
            workers: [
                {
                    name: 'worker',
                    scriptPath: "workers/worker-handler.ts",
                    modulesRules: [{type: "ESModule", include: ["**/*.ts"], fallthrough: true }],
                    modules: true,
                    cacheWarnUsage: true,
                    cache: true,
                    bindings: varBindings,
                    d1Databases: d1Bindings,
                    r2Buckets: r2Bindings,
                    kvNamespaces: kvBindings,
                    durableObjects: durableObjectBindings,
                },
            ],
        });

Relevant Line

@mrbbot
Copy link
Contributor

mrbbot commented Dec 11, 2023

Closing as duplicate of cloudflare/workers-sdk#4584

@mrbbot mrbbot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants