Skip to content

Commit

Permalink
🚑 Block runtime assert's error from yew.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Oct 10, 2024
1 parent 08c353f commit fdb6e86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ exec cargo clippy --all-targets --all-features -- -D warnings
script = '''
#!@duckscript
exec cargo build --target wasm32-unknown-unknown --package _client
exec wasm-bindgen --out-dir ./target/wasm32-html --out-name client --target no-modules --no-typescript --no-modules-global wasm_vendor_entry ./target/wasm32-unknown-unknown/debug/_client.wasm
exec cargo build --target wasm32-unknown-unknown --package _client --release
exec wasm-bindgen --out-dir ./target/wasm32-html --out-name client --target no-modules --no-typescript --no-modules-global wasm_vendor_entry ./target/wasm32-unknown-unknown/release/_client.wasm
set_env PORT 8080
set_env JWT_SECRET "ciallo@0721"
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use once_cell::sync::Lazy;
#[cfg(not(debug_assertions))]
use std::path::Path;
use std::path::PathBuf;

pub static WASM_DIR: Lazy<PathBuf> = Lazy::new(|| {
Expand Down

0 comments on commit fdb6e86

Please sign in to comment.