fix: use inbuilt frontend dev server to proxy API instead of Nginx
@@ -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"
+ }
};