Skip to content

Commit 6f1acfd

Browse files
authored
Merge pull request #6 from fs-webdev/auth
Add EXO proxy setup for new apps
2 parents 1b18f65 + de77212 commit 6f1acfd

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

packages/react-scripts/scripts/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = async function(
9797

9898
// Setup the script rules
9999
appPackage.scripts = {
100-
start: 'react-scripts start',
100+
start: 'PORT=5000 react-scripts start',
101101
build: 'react-scripts build',
102102
test: 'react-scripts test',
103103
eject: 'react-scripts eject',

packages/react-scripts/scripts/utils/frontierInit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function installFrontierDependencies(appPath, answers, useYarn, ownPath) {
5353
const defaultModules = [
5454
5555
56+
'fs-webdev/exo'
5657
];
5758
installModulesSync(defaultModules, useYarn);
5859
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// sets local proxies using http-proxy-middleware configs
2+
// docs here: https://github.com/fs-webdev/exo#proxy
3+
const setProxies = require('exo/proxy');
4+
5+
module.exports = (app) => {
6+
setProxies(app);
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// sets local proxies using http-proxy-middleware configs
2+
// docs here: https://github.com/fs-webdev/exo#proxy
3+
const setProxies = require('exo/proxy');
4+
5+
module.exports = (app) => {
6+
setProxies(app);
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// sets local proxies using http-proxy-middleware configs
2+
// docs here: https://github.com/fs-webdev/exo#proxy
3+
const setProxies = require('exo/proxy');
4+
5+
module.exports = (app) => {
6+
setProxies(app);
7+
}

0 commit comments

Comments
 (0)