Commit graph

11 commits

Author SHA1 Message Date
YuKun Liu
d8f76a9ebb
Update serve.md 2023-05-02 09:43:32 -07:00
Ben Sully
ead183dd2c
Add minimal proxy capabilities to dioxus serve
This adds an MVP of some proxying capabilities to the `dioxus serve`
server. The config is similar to that of `trunk serve`: the user can
specify one or more proxy backends under `[[web.proxy]]` in Dioxus.toml,
and the server will intercept requests targeted at the _path_ of that
configured backend and forward them to the backend server.

Example
-------

For example, if the dev server is serving on port 8080 with this config:

```
[[web.proxy]]
backend = "http://localhost:9000/api"
```

then requests to http://localhost:8080/api,
http://localhost:8080/api/ and http://localhost:8080/api/any-subpath
to be forwarded to the respective paths on http://localhost:9000.

This PR doesn't handle path rewriting or anything yet but it would be
fairly simple to add in future if anyone needs it.
2023-02-27 10:44:32 +00:00
YuKun Liu
ad1ed6cfb5
Merge branch 'master' into master 2022-11-03 00:21:31 -07:00
crisqyxw
90e7463bb3 Update doc to avoid misunderstanding 2022-10-21 12:17:43 +08:00
YuKun Liu
9ee572ad26 docs: add path docs 2022-09-23 09:34:12 -07:00
YuKun Liu
1c59c902a6 docs: commit docs 2022-09-22 11:05:37 -07:00
YuKun Liu
d47319526c docs: commit new document 2022-09-22 08:32:57 -07:00
YuKun Liu
f099042726 docs: commit new document 2022-09-22 00:24:07 -07:00
vianney
7aa8feaa49 [FIX] fixed typo : tailwind-css -> tailwindcss 2022-07-20 19:26:26 +02:00
vianney
014df14a24 [ADD] Added tailwind-css tool in dioxus-cli. tailwind-css downloads tailwind binary from github and puts it in the tool directory. tailwind-css handles release profile by minifying the bundle. Fixed typo in src/config.rs. Updated docs in configure.md. Updated Dioxus.toml by adding tailwind tool 2022-07-20 17:22:22 +02:00
YuKun Liu
f203b5f99d Move docs to cli repo 2022-04-24 10:44:06 +08:00