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
// allowHeaders: 'content-type', //default cors value
35
41
},
36
42
staging: {
@@ -44,26 +50,36 @@ module.exports = {
44
50
```
45
51
46
52
## 💥 Run
47
-
```
53
+
```shell
48
54
your-dev-server start
49
55
npx localhostify prod
50
56
npx localhostify staging
51
57
```
58
+
Browse `http://localhost:3001` and `http://localhost:3002` to enjoy local frotend mixed with real backends enviroments! Hot reload works concurrently!!
59
+
52
60
53
-
Browse `http://localhost:3001` and `http://localhost:3002` to enjoy local frotend mixed with real backends enviroments!<br/>
54
-
Hot reload works concurrently!!
61
+
## 🍭 External Redirects
62
+
If your application use external login or SSO you will need to forward browser redirect to localhost.
63
+
This happens on the browser side, so we need a web extension.
64
+
65
+
```shell
66
+
npx localhostify --chrome-ext
67
+
```
68
+
This command will create a folder ".localhostify-ext" on your project. Load it on Chrome. That's all!.
69
+
Note: if you update your .localhostify.js config, please execute again `npx localhostify --chrome-ext` to update also the ext.
70
+
It the browser is opened, refresh all the exstensions.
55
71
56
-
<br/><br/>
57
72
58
-
## 👏 Contributing
73
+
###👏 Contributing
59
74
60
75
If you are interested in contributing to `localhostify`, open an issue or a pr!
61
76
62
-
## 🎉 Thanks
77
+
###🎉 Credits
63
78
64
-
Thank You, Open Source!
79
+
Thank You, Open Source! </br>
80
+
Chrome Ext inspired by requestly.io
65
81
66
-
## 📜 License
82
+
###📜 License
67
83
68
84
`localhostify` is 100% free and open-source, under [MIT](LICENSE).
0 commit comments