chore(docs): Added a guide on using wasm modules in Edge Functions (#32811)

* chore(docs): Added a guide on using wasm modules in Edge Functions

* update example

* WASM -> Wasm

* fix page title
This commit is contained in:
Lakshan Perera authored and GitHub committed 2025-01-16 09:55:31 +11:00
1 parent cdb95a6036
commit e63a082dda
4 files changed
+93 -2

No files matched your search

+1 -1
View File
@@ -75,4 +75,4 @@ objects_path = "./buckets/images"
import_map = "./functions/import_map.json"
[functions.wasm-modules]
static_files = [ "./functions/wasm-modules/add-wasm/pkg/add_wasm_bg.wasm"]
static_files = [ "./functions/wasm-modules/add-wasm/pkg/*.wasm"]
@@ -2,5 +2,5 @@ use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn add(a: u32, b: u32) -> u32 {
a + b + 100
a + b
}