Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo leptos watch ignores bin-target-tripple #242

Open
DylanRJohnston opened this issue Jan 21, 2024 · 5 comments
Open

cargo leptos watch ignores bin-target-tripple #242

DylanRJohnston opened this issue Jan 21, 2024 · 5 comments

Comments

@DylanRJohnston
Copy link

DylanRJohnston commented Jan 21, 2024

When running cargo leptos watch building the server ignores the bin-target-tripple configuration.

I'm trying to explore if cargo leptos watch can integrate well with deploying to Cloudflare workers which is a wasm32-unknown-unknown target. Building works fine, but the watch subcommand ignores the bin-target-tripple configuration option.

@DylanRJohnston
Copy link
Author

Setting LEPTOS_BIN_TARGET_TRIPLE="wasm32-unknown-unknown" works as expected however it then errors after compilation trying to watch target/wasm32-unknown-unknown/debug/server as it's missing the .wasm extension.

@benwis
Copy link
Collaborator

benwis commented Jan 21, 2024 via email

@DanielJoyce
Copy link
Contributor

One quick question... Are you using the right key name, because every time you mention it here, its mispelled.

bin-tripple-target

@DylanRJohnston
Copy link
Author

Apologies @DanielJoyce, I can confirm I was using the bin-target-tripple = "wasm32-unknown-unknown" in the configuration.

@DylanRJohnston
Copy link
Author

@benwis what about a simple way to override the server command with an arbitrary command? That would let me launch wranger dev appropriately after building and still make use of the hot reloading of CSS, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants