Merge pull request #199 from knadh/feat-inbuilt-dev-server
fix: use inbuilt frontend dev server to proxy API instead of Nginx
This commit is contained in:
commit
03338d5856
|
@ -0,0 +1,2 @@
|
|||
LISTMONK_FRONTEND_PORT=8080
|
||||
LISTMONK_API_URL="http://127.0.0.1:9000"
|
|
@ -14,4 +14,13 @@ module.exports = {
|
|||
|
||||
productionSourceMap: false,
|
||||
filenameHashing: true,
|
||||
|
||||
devServer: {
|
||||
port: process.env.LISTMONK_FRONTEND_PORT || 8080,
|
||||
proxy: {
|
||||
"^/api": {
|
||||
target: process.env.LISTMONK_API_URL || "http://127.0.0.1:9000"
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue