From 24f5a9e1cc732a2d1904287a608f118a3df7f695 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 6 Feb 2025 21:55:43 +0530 Subject: [PATCH] chore: Enable source maps for RTS for better error traces (#39099) ## Description The source maps files are there in the RTS folder but aren't being used because they aren't enabled. This PR fixes that by adding the necessary option to node to get better stack traces that point to the actual TypeScript files. ## Automation /test sanity ### :mag: Cypress test results > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Chores** - Updated the server runtime to improve error reporting and debugging, resulting in more detailed and readable error traces for a smoother troubleshooting experience. --- deploy/docker/fs/opt/appsmith/run-rts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/docker/fs/opt/appsmith/run-rts.sh b/deploy/docker/fs/opt/appsmith/run-rts.sh index c9a5bccd38..0bac99a4b7 100644 --- a/deploy/docker/fs/opt/appsmith/run-rts.sh +++ b/deploy/docker/fs/opt/appsmith/run-rts.sh @@ -1,3 +1,3 @@ #!/bin/bash -exec node /opt/appsmith/rts/bundle/server.js \ No newline at end of file +exec node --enable-source-maps /opt/appsmith/rts/bundle/server.js