Skip to content

Commit d8e9fc4

Browse files
authored
add a server feature for fullstack templates (#80)
1 parent 68dcb04 commit d8e9fc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common.rhai

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ if variable::get(NEEDS_DEFAULT_PLATFORM_VAR) {
6363
}
6464
}
6565

66+
// Add a server feature if the fullstack feature is enabled
67+
if is_fullstack {
68+
features.push("server = [\"dioxus/server\"]");
69+
}
6670

6771
let is_router = variable::get(IS_ROUTER_VAR);
6872
switch [is_router, is_fullstack] {

0 commit comments

Comments
 (0)