Comment

Comment by lionside

Oh, one more thing! I'd like to share an excerpt from the README to make sure folks considering this approach understand all the cons that I could think of:

```

As with all things in life, there are considerations to take into account before using vite-rs:

    It's one more thing to debug when things go wrong.

    It'll increase compile time. See the note on compile times for large assets.

    For those deploying to embedded devices: it'll increase your binary size.

    Shipping frontend with your backend can slow you down as you'll have to wait for your Rust backend to compile everytime you want to release a new build. Similarly, failing CI/CD pipelines pertaining to the backend will also stop your frontend frontend from deploying.

    It may be faster or cheaper to deploy your frontend on CDNs instead of serving it.
```
parent lionside 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton