Skip to content

Commit cd7c567

Browse files
authored
Remove Default page as fileToDelete for no-auth and silence warnings in prod (#15)
* Remove Default page as filesToDelete for no-auth * Silence possible malformed tag warning in prod
1 parent 047c392 commit cd7c567

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

scrubber/scrubUtils.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ export function scrubFile(
6767

6868
if (tryProcessTag) {
6969
if (tokens[0] in tags && tokens.length !== 2) {
70-
console.warn(
71-
chalk.yellowBright.bold(
72-
`WARNING line ${
73-
i + 1
74-
}: possible malformed tag; tags must be on their own line preceded by '}' or followed by '{'`,
75-
),
76-
);
70+
if (process.env.NODE_ENV !== "production") {
71+
console.warn(
72+
chalk.yellowBright.bold(
73+
`WARNING line ${
74+
i + 1
75+
}: possible malformed tag; tags must be on their own line preceded by '}' or followed by '{'`,
76+
),
77+
);
78+
}
7779
scrubbedLines.push(line);
7880
continue;
7981
}

scrubber/scrubberConfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"backend/python/app/utilities/firebase_rest_client.py",
5656
"frontend/src/APIClients/AuthAPIClient.ts",
5757
"frontend/src/components/auth",
58-
"frontend/src/components/pages/Default.tsx",
5958
"frontend/src/constants/AuthConstants.ts",
6059
"frontend/src/contexts/AuthContext.ts"
6160
]

0 commit comments

Comments
 (0)