mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 01:39:11 +00:00
use workers-assets-gen cmd in Durable Objects example
This commit is contained in:
parent
b7ad06e894
commit
647f1f0e2f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user