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
Evan Almloff
bfbda510fe
log errors instead of panicing on io errors
2023-02-22 09:09:00 -06:00
Koji AGAWA
3ca4628ae6
fix: get_ip on watcher hangs on windows
2023-02-11 22:38:38 +09:00
Evan Almloff
33e3f9c360
move hot reloading utilities to dioxus repository
2022-12-23 15:42:14 -06:00
Evan Almloff
86e10a9858
fix some warnings and remove debugging statements
2022-12-22 17:00:55 -06:00
Evan Almloff
ef6ae642ba
fix hot reloading rsx with nested rsx calls
2022-12-22 16:37:15 -06:00
Evan Almloff
6f92e05d64
fix some warnings
2022-12-22 11:37:22 -06:00
Evan Almloff
c5ac7698fa
fix hot reloading
2022-12-19 20:48:35 -06:00
=
6da1b531bb
WIP update templates
2022-12-18 21:00:31 -06:00
Jonathan Kelley
15ec138320
chore: fix
2022-12-11 13:01:50 -08:00
Jonathan Kelley
7d49f71cd5
fix: disable hotreloaidng stuff
2022-12-11 12:54:17 -08:00
Jonathan Kelley
aa05dc3054
fix: builds of CLI
2022-12-07 12:55:28 -08:00
YuKun Liu
bbc9e1b3a2
feat: default plugin info
2022-11-03 00:30:47 -07:00
YuKun Liu
5104f767b3
Merge branch 'master' of https://github.com/DioxusLabs/cli
2022-10-03 09:37:26 -07:00
Demonthos
46d46b139a
Merge branch 'master' into templates
2022-10-02 07:12:14 -05:00
YuKun Liu
762093094f
feat: commit code
2022-09-27 20:34:32 -07:00
YuKun Liu
52e8d9f357
Merge branch 'master' into master
2022-09-25 13:55:46 +08:00
Shiroko
a0ffb3bb65
Fix jetbrains saving tmp file to tilde suffix
2022-09-24 03:25:01 +08:00
Shiroko
dddaec20fc
Fix program not found by fallback to ANSI-escape
2022-09-24 01:45:40 +08:00
YuKun Liu
20c29ed042
feat: add serve-shutdown support
2022-09-21 22:57:26 -07:00
YuKun Liu
37ef7c3ff9
feat: support some event
2022-09-21 16:56:36 -07:00
YuKun Liu
59b8a84530
feat: commit code
2022-08-30 21:12:57 -07:00
YuKun Liu
9f20337e5e
feat: rebuild supported
2022-08-27 21:56:31 -07:00
Evan Almloff
7b9a321356
update to work with templates
2022-08-26 16:28:46 -05:00
mrxiaozhuox
6c1374edb3
feat: commit code
2022-08-22 11:00:31 -07:00
YuKun Liu
0e8414b40a
Merge branch 'master' into master
2022-08-18 16:33:09 -07:00
mrxiaozhuox
d9891d9f0c
feat: commit build field
2022-08-18 15:54:42 -07:00
trevyn
6d9ec38eac
update for notify 5.0.0-pre.16
2022-08-15 07:47:19 -04:00
YuKun Liu
66862e2310
Merge pull request #55 from Demonthos/fix_single_line_rsx_hot_reloading
...
fix single line rsx hot reloading
2022-07-14 21:30:11 +08:00
Evan Almloff
6c11eca05b
fix single line rsx hot reloading
2022-07-14 07:38:51 -05:00
YuKun Liu
0adabf68a0
feat: clean warning info
2022-07-10 11:28:20 +08:00
YuKun Liu
6cefdcc0cf
fix: typo
2022-07-09 22:37:06 +08:00
YuKun Liu
d543ea19d0
feat: commit some thing
2022-07-09 22:02:33 +08:00
YuKun Liu
bfaa8e3c74
feat: commit code
2022-07-09 20:54:16 +08:00
YuKun Liu
8613518c40
feat: commit code
2022-07-09 20:00:17 +08:00
YuKun Liu
78c78548e8
feat: commit prettier_build
2022-07-09 16:41:53 +08:00
YuKun Liu
526a88cab1
feat: commit code
2022-07-09 14:16:19 +08:00
YuKun Liu
f57dc5212b
fix: change local https to http
2022-07-06 23:01:39 +08:00
YuKun Liu
3551d1b6a0
feat: commit code
2022-07-06 22:44:50 +08:00
YuKun Liu
14a2ec306e
feat: commit code
2022-07-06 22:37:27 +08:00
YuKun Liu
61c06ea598
feat: commit console log
2022-07-06 21:23:35 +08:00
YuKun Liu
81b712ec0b
feat: commit code
2022-07-06 21:08:46 +08:00
YuKun Liu
8dbf571891
feat: commit console print
2022-07-06 18:11:25 +08:00
YuKun Liu
9e64b5dde8
feat: commit code
2022-07-06 17:46:46 +08:00
YuKun Liu
b2c5141fa6
feat: commit code
2022-07-06 17:36:14 +08:00
YuKun Liu
719e48c0a5
feat: beautify console
2022-07-06 16:16:16 +08:00
YuKun Liu
c86c39477f
Merge branch 'master' of https://github.com/mrxiaozhuox/dioxus-cli
2022-07-06 00:22:51 +08:00
YuKun Liu
f4ed207649
feat: commit code
2022-07-06 00:22:40 +08:00
YuKun Liu
a0a8b8b2d3
Merge pull request #48 from Demonthos/fix_path_seperator
...
fix path separator for hot reloading
2022-06-30 09:25:40 +08:00
YuKun Liu
c54d467730
feat: set port configurable
2022-06-29 16:40:23 +08:00