1
0
Эх сурвалжийг харах

fix static generation example compiling

Evan Almloff 2 жил өмнө
parent
commit
e883e8d0dd

+ 3 - 0
packages/fullstack/examples/static-hydrated/src/main.rs

@@ -38,6 +38,9 @@ fn main() {
     );
 }
 
+#[cfg(not(any(feature = "web", feature = "ssr")))]
+fn main() {}
+
 #[derive(Clone, Routable, Debug, PartialEq, Serialize, Deserialize)]
 enum Route {
     #[route("/")]