Commit 2dedda7b
2dedda7bddf1Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 2 files ยท ~2 modified
Description
[attractor-e8i] Register projects module and ensure server fn registration
- Move projects module declaration outside SSR gate so Leptos can generate client stubs
- Add conditional imports and type definitions for client-side compilation
- Define Project and CachedDoc types twice: once re-exported from db (SSR), once as local stubs (client)
- Ensures server functions are callable from WASM frontend via RPC
- Both SSR and client modes now compile successfully
Details
- Commit
- 2dedda7bddf1
- Parent
- 97d8e9ddaa9d
crates/attractor-web/src/server/mod.rsmodifiedView file
@@ -1,12 +1,13 @@
11
pub mod execute;22
3+
// Leptos server functions: available to both SSR and WASM (for RPC stubs)4+
pub mod projects;5+
36
// SSR-only modules (no client stubs needed)47
#[cfg(feature = "ssr")]58
pub mod db;69
#[cfg(feature = "ssr")]710
pub mod documents;8-
#[cfg(feature = "ssr")]9-
pub mod projects;1011
#[cfg(feature = "ssr")]1112
pub mod stream;1213
#[cfg(feature = "ssr")]crates/attractor-web/src/server/projects.rsmodifiedView file
Loading diffโฆ