Skip to content

Commit

Permalink
Merge pull request #24 from CivicTechTO/dev
Browse files Browse the repository at this point in the history
merge before remove branch `Dev`
  • Loading branch information
NewJerseyStyle authored Oct 11, 2024
2 parents ca385f3 + e0c6a0f commit 38a3bc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ const shouldUseTranslationAPI = isTrue(
process.env.SHOULD_USE_TRANSLATION_API
) as boolean;

import("source-map-support").then((sourceMapSupport) => {
sourceMapSupport.install();
});
/* Do NOT use source-map-support in production as it uses the non-standard stack property of Errors */
if(devMode) {
// require('source-map-support').install();
import("source-map-support").then((sourceMapSupport) => {
sourceMapSupport.install();
});
}

export default {
domainOverride: domainOverride as string | null,
Expand Down
3 changes: 3 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ import _ from "underscore";
import pg from "pg";
import { encode } from "html-entities";

import Config from "./config";
import { METRICS_IN_RAM, addInRamMetric, MPromise } from "./utils/metered";
import CreateUser from "./auth/create-user";
import Password from "./auth/password";
import dbPgQuery from "./db/pg-query";

// Re-import disassembled code to promise existing code will work
import Log from "./log";
import Config from "./config";
import fail from "./utils/fail";

Expand Down

0 comments on commit 38a3bc4

Please sign in to comment.