Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
383
Merge Requests
61
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
79ca3713
Commit
79ca3713
authored
2 hours ago
by
Emiliano Balbuena
Browse files
Options
Download
(chore): Proxy
parent
ef9e19e1
chore/ssr-local-serve
1 merge request
!756
Webpack proxy for devs
Pipeline
#114961703
failed with stages
in 30 minutes and 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
19 deletions
+26
-19
package.json
View file @
79ca3713
...
...
@@ -13,7 +13,7 @@
"serve-dev"
:
"npm run server:ssr"
,
"build:dev"
:
"ng build --output-path dist --deploy-url=/ --watch=true --poll=800"
,
"preserve:dev"
:
"npm run prebuild-dev -- --deploy-url=http://${HOST:-localhost}:${PORT:-4200}"
,
"serve:dev"
:
"ng serve --deploy-url=/ --port ${PORT:-4200} --poll=800 --progress --proxy-config proxy.conf.js
on
--host=0.0.0.0 --disableHostCheck=true"
,
"serve:dev"
:
"ng serve --deploy-url=/ --port ${PORT:-4200} --poll=800 --progress --proxy-config proxy.conf.js --host=0.0.0.0 --disableHostCheck=true"
,
"serve:dev:hmr"
:
"npm run serve:dev -- --configuration=hmr --hmr"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
...
...
This diff is collapsed.
proxy.conf.js
0 → 100644
View file @
79ca3713
const
engineSecure
=
Boolean
(
parseInt
(
process
.
env
[
'
ENGINE_SECURE
'
])
||
0
);
const
engineHost
=
process
.
env
[
'
ENGINE_HOST
'
]
||
'
localhost
'
;
const
enginePort
=
process
.
env
[
'
ENGINE_PORT
'
]
||
(
engineSecure
?
443
:
80
);
const
PROXY_CONFIG
=
[
{
context
:
[
'
/api
'
,
'
/fs
'
,
'
/icon
'
,
'
/carousel
'
,
],
target
:
{
protocol
:
engineSecure
?
'
https:
'
:
'
http:
'
,
host
:
engineHost
,
port
:
enginePort
,
},
secure
:
false
,
changeOrigin
:
true
,
withCredentials
:
true
,
logLevel
:
process
.
env
[
'
PROXY_LOG_LEVEL
'
]
||
'
warn
'
,
}
];
module
.
exports
=
PROXY_CONFIG
;
This diff is collapsed.
proxy.conf.json
deleted
100644 → 0
View file @
ef9e19e1
{
"/api"
:
{
"target"
:
"http://localhost:80"
,
"secure"
:
false
},
"/fs"
:
{
"target"
:
"http://localhost:80"
,
"secure"
:
false
},
"/icon"
:
{
"target"
:
"http://localhost:80"
,
"secure"
:
false
},
"/carousel"
:
{
"target"
:
"http://localhost:80"
,
"secure"
:
false
}
}
This diff is collapsed.
Please
register
or
sign in
to comment