@aravinthan_p/appnest-engine 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/appnest-backend/index.js
CHANGED
|
@@ -63,9 +63,9 @@ app.post('/app-backend/:appFunctionName', async (req, res) => {
|
|
|
63
63
|
|
|
64
64
|
const result = await appnestBackendLayer.handleServerRequest({ requestEvent: event, requestContext: context, appBackendServerFile, appBackendServerFolder });
|
|
65
65
|
res
|
|
66
|
-
.status(
|
|
67
|
-
.set(
|
|
68
|
-
.send(result
|
|
66
|
+
.status(200)
|
|
67
|
+
.set({ 'Content-Type': 'application/json' })
|
|
68
|
+
.send(result);
|
|
69
69
|
} catch (err) {
|
|
70
70
|
console.error('Error invoking handler:', err);
|
|
71
71
|
res.status(500).json({ error: err.message });
|
package/appnest-proxy/server.js
CHANGED
|
@@ -206,7 +206,6 @@ async function startServers() {
|
|
|
206
206
|
createProxyMiddleware({
|
|
207
207
|
target: `http://localhost:${appBackendPort}`,
|
|
208
208
|
changeOrigin: true,
|
|
209
|
-
ws: true,
|
|
210
209
|
// This tells the proxy to use the full URL including /app-backend
|
|
211
210
|
toProxy: true,
|
|
212
211
|
pathRewrite: (path, req) => req.originalUrl,
|
|
@@ -237,7 +236,6 @@ async function startServers() {
|
|
|
237
236
|
createProxyMiddleware({
|
|
238
237
|
target: `http://localhost:${appFrontendPort}`,
|
|
239
238
|
changeOrigin: true,
|
|
240
|
-
ws: true,
|
|
241
239
|
// This tells the proxy to use the full URL including /app-backend
|
|
242
240
|
toProxy: true,
|
|
243
241
|
pathRewrite: (path, req) => req.originalUrl,
|
|
@@ -269,7 +267,6 @@ async function startServers() {
|
|
|
269
267
|
createProxyMiddleware({
|
|
270
268
|
target: `http://localhost:${appInstallationFrontendPort}`,
|
|
271
269
|
changeOrigin: true,
|
|
272
|
-
ws: true,
|
|
273
270
|
// This tells the proxy to use the full URL including /app-backend
|
|
274
271
|
toProxy: true,
|
|
275
272
|
pathRewrite: (path, req) => req.originalUrl,
|