diff --git a/server/@types/nunjucks/index.d.ts b/server/@types/nunjucks/index.d.ts new file mode 100644 index 0000000000..7bc53840fe --- /dev/null +++ b/server/@types/nunjucks/index.d.ts @@ -0,0 +1,7 @@ +export default {} + +declare module 'nunjucks' { + export interface ConfigureOptions { + dev?: boolean | undefined + } +} diff --git a/server/utils/nunjucksSetup.ts b/server/utils/nunjucksSetup.ts index 9d4dd84ff1..9e24bb24d0 100644 --- a/server/utils/nunjucksSetup.ts +++ b/server/utils/nunjucksSetup.ts @@ -56,6 +56,7 @@ export default function nunjucksSetup(app: express.Express, path: pathModule.Pla { autoescape: true, express: app, + dev: false, // This is set to true to allow us to see the full stacktrace from errors in global functions, otherwise it gets swallowed and tricky to see in logs }, )