Skip to content

Commit

Permalink
Merge pull request #2780 from lpsinger/enable-source-maps
Browse files Browse the repository at this point in the history
Enable source map support
  • Loading branch information
dakota002 authored Dec 12, 2024
2 parents 1d39ea5 + afb20b6 commit 909af08
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.arc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions src/plugins/enable-source-maps.js
Original file line number Diff line number Diff line change
@@ -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' }
},
}

0 comments on commit 909af08

Please sign in to comment.