fix(build): isolate hydrate feature to wasm32 target and prevent SSR spawn_local panic
This commit is contained in:
1 parent
b43b060c8a
commit
6a157a2eca
4 files changed
+74
-4
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ COPY style ./style
|
||||
COPY public ./public
|
||||
|
||||
# 1. Build Axum SSR server binary
|
||||
RUN cargo build --release --locked --bin server
|
||||
RUN cargo build --release --locked -p server --bin server
|
||||
|
||||
# 2. Build Leptos WASM hydrate bundle and assemble /src/target/site
|
||||
RUN cargo build --profile wasm-release --locked --target wasm32-unknown-unknown -p frontend \
|
||||
|
||||
Reference in new issue
Block a user