use workers-assets-gen cmd in Durable Objects example

This commit is contained in:
syumai 2024-01-03 00:12:39 +09:00
parent b7ad06e894
commit 647f1f0e2f
2 changed files with 2 additions and 7 deletions

View File

@ -4,7 +4,7 @@ dev:
.PHONY: build
build:
mkdir -p build
go run ../../cmd/workers-assets-gen
tinygo build -o ./build/app.wasm -target wasm -no-debug ./...
.PHONY: deploy

View File

@ -1,9 +1,4 @@
import * as imports from "../assets/shim.mjs";
import mod from "./build/app.wasm";
imports.init(mod);
export default { fetch: imports.fetch }
export { default } from "./build/worker.mjs";
// Durable Object