diff --git a/app.arc b/app.arc index 2d4605871..3d53e075d 100644 --- a/app.arc +++ b/app.arc @@ -165,6 +165,7 @@ dedicatedMasterType t3.small.search @plugins plugin-remix +enable-source-maps # Enable Node.js source map support. sandbox-oidc-idp # Sandbox identity provider lambda-cognito-permissions # Grant the Lambda function access to Cognito to run the credential vending machine. static-bucket-permissions # Functions may only write to the /generated directory in the static bucket. diff --git a/src/plugins/enable-source-maps.js b/src/plugins/enable-source-maps.js new file mode 100644 index 000000000..73b897036 --- /dev/null +++ b/src/plugins/enable-source-maps.js @@ -0,0 +1,14 @@ +/*! + * Copyright © 2023 United States Government as represented by the + * Administrator of the National Aeronautics and Space Administration. + * All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +// Enable Node.js source map support. +export const set = { + env() { + return { NODE_OPTIONS: '--enable-source-maps' } + }, +}