You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Issue Description
When using Leptos with Cloudflare Workers in a Windows PowerShell environment, you might encounter build issues with the following command:
Running custom build: cargo leptos build --release && LEPTOS_OUTPUT_NAME=start-axum worker-build --release --features ssr
This command uses Linux/Unix-style environment variable settings, which doesn't work properly in Windows PowerShell.
Solution
We can resolve this by managing the build process with a PowerShell script.
1. Create PowerShell Build Script
Create a
build.ps1
file in your project root with the following content:2. Modify wrangler.toml
Update your wrangler.toml file as follows:
and... build
> npx wrangler dev
Beta Was this translation helpful? Give feedback.
All reactions