Skip to content

Commit

Permalink
Merge branch 'main' into 3681-integration-search-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana authored Aug 11, 2023
2 parents 0b9dfb4 + 385bbec commit c047850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The types of changes are:
### Fixed
- Fixed issue when generating masked values for invalid data paths (#3906)[https://github.com/ethyca/fides/pull/3906]
- Code reload now works when running `nox -s dev` (#3914)[https://github.com/ethyca/fides/pull/3914]
- Reduce verbosity of privacy center logging further (#3915)[https://github.com/ethyca/fides/pull/3915]

## [2.18.0](https://github.com/ethyca/fides/compare/2.17.0...2.18.0)

Expand Down
10 changes: 6 additions & 4 deletions clients/privacy-center/pages/api/fides-js.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import { promises as fsPromises } from "fs";
import type { NextApiRequest, NextApiResponse } from "next";
import { CacheControl, stringify } from "cache-control-parser";
Expand Down Expand Up @@ -88,9 +87,12 @@ export default async function handler(
};
const fidesConfigJSON = JSON.stringify(fidesConfig);

console.log(
"Bundling generic fides.js & Privacy Center configuration together..."
);
if (process.env.NODE_ENV === "development") {
// eslint-disable-next-line no-console
console.log(
"Bundling generic fides.js & Privacy Center configuration together..."
);
}
const fidesJSBuffer = await fsPromises.readFile("public/lib/fides.js");
const fidesJS: string = fidesJSBuffer.toString();
if (!fidesJS || fidesJS === "") {
Expand Down

0 comments on commit c047850

Please sign in to comment.