Is there a page which talks about the common reasons as to why a worker would get cancelled
Is there a page which talks about the common reasons as to why a worker would get cancelled


mainenv.ASSETS.fetch right?selflare to dev locally for pages ?Cannot read properties of undefined (reading 'get')functions in my (react) pages project, this folder will be use for the "backend" (receive request) where I can safely import my Secrets (using env). GET or HEAD. As best I can tell, this should make it impossible for users to modify our files, unless they can somehow modify the code of the worker itself (I assume they can't). Is that correct, or is there something else I need to do to make sure our web build is secure?CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder.vite.config.ts like so (or add these lines)name = "correct-worker-name"
main = "worker.js"
compatibility_date = "2023-08-23"
kv_namespaces = [
{ binding = "WORKER_KV", id = "correctid-123" }
]export default {
async fetch(request, env, ctx) {
const value = await env.WORKER_KV.get("thecorrectkey-123");
return new Response(value);
},
};functionsSecretsHEADCompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embeddervite.config.ts{
"result": null,
"success": false,
"errors": [
{
"code": 7010,
"message": "Service unavailable"
}
],
"messages": [
]
} "assets": {
"directory": "./dist",
"binding": "ASSETS"
}import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
define: {
"import.meta.env.CF_PAGES": JSON.stringify(process.env.CF_PAGES || "1"),
"import.meta.env.CF_PAGES_URL": JSON.stringify(process.env.CF_PAGES_URL || "unresolved"),
"import.meta.env.CF_PAGES_BRANCH": JSON.stringify(process.env.CF_PAGES_BRANCH || "unresolved"),
"import.meta.env.CF_PAGES_COMMIT_SHA": JSON.stringify(process.env.CF_PAGES_COMMIT_SHA || "unknown"),
},
})