浏览代码

fix static generation example compiling

Evan Almloff 2 年之前
父节点
当前提交
e883e8d0dd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/fullstack/examples/static-hydrated/src/main.rs

+ 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("/")]