@stacksjs/rpx 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/cli.js +613 -57895
- package/dist/index.js +615 -57911
- package/dist/start.d.ts +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ import { startProxy } from '@stacksjs/rpx'
|
|
|
47
47
|
export interface ReverseProxyConfig {
|
|
48
48
|
from: string // domain to proxy from, defaults to localhost:3000
|
|
49
49
|
to: string // domain to proxy to, defaults to stacks.localhost
|
|
50
|
+
cleanUrls?: boolean // removes the .html extension from URLs, defaults to false
|
|
50
51
|
https: boolean | TlsConfig // automatically uses https, defaults to true, also redirects http to https
|
|
51
52
|
etcHostsCleanup?: boolean // automatically cleans up /etc/hosts, defaults to false
|
|
52
53
|
verbose: boolean // log verbose output, defaults to false
|
|
@@ -54,7 +55,8 @@ export interface ReverseProxyConfig {
|
|
|
54
55
|
|
|
55
56
|
const config: ReverseProxyOptions = {
|
|
56
57
|
from: 'localhost:3000',
|
|
57
|
-
to: 'my-
|
|
58
|
+
to: 'my-docs.localhost',
|
|
59
|
+
cleanUrls: true,
|
|
58
60
|
https: true,
|
|
59
61
|
etcHostsCleanup: true,
|
|
60
62
|
}
|
|
@@ -83,6 +85,7 @@ const config: ReverseProxyOptions = {
|
|
|
83
85
|
{
|
|
84
86
|
from: 'localhost:5173',
|
|
85
87
|
to: 'my-app.localhost',
|
|
88
|
+
cleanUrls: true,
|
|
86
89
|
},
|
|
87
90
|
{
|
|
88
91
|
from: 'localhost:5174',
|