Skip to content

Commit

Permalink
Remove Default page as fileToDelete for no-auth and silence warnings …
Browse files Browse the repository at this point in the history
…in prod (#15)

* Remove Default page as filesToDelete for no-auth

* Silence possible malformed tag warning in prod
  • Loading branch information
sherryhli authored May 2, 2021
1 parent 047c392 commit cd7c567
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions scrubber/scrubUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ export function scrubFile(

if (tryProcessTag) {
if (tokens[0] in tags && tokens.length !== 2) {
console.warn(
chalk.yellowBright.bold(
`WARNING line ${
i + 1
}: possible malformed tag; tags must be on their own line preceded by '}' or followed by '{'`,
),
);
if (process.env.NODE_ENV !== "production") {
console.warn(
chalk.yellowBright.bold(
`WARNING line ${
i + 1
}: possible malformed tag; tags must be on their own line preceded by '}' or followed by '{'`,
),
);
}
scrubbedLines.push(line);
continue;
}
Expand Down
1 change: 0 additions & 1 deletion scrubber/scrubberConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"backend/python/app/utilities/firebase_rest_client.py",
"frontend/src/APIClients/AuthAPIClient.ts",
"frontend/src/components/auth",
"frontend/src/components/pages/Default.tsx",
"frontend/src/constants/AuthConstants.ts",
"frontend/src/contexts/AuthContext.ts"
]
Expand Down

0 comments on commit cd7c567

Please sign in to comment.