Skip to content

Instantly share code, notes, and snippets.

@BetimBeja
Created May 7, 2021 12:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetimBeja/ba5904d6700d857297058ae1ba50b052 to your computer and use it in GitHub Desktop.
Save BetimBeja/ba5904d6700d857297058ae1ba50b052 to your computer and use it in GitHub Desktop.
Script to override pcfAllowLookup flag
const fs = require('fs');
const flagsPath = 'pcf-scripts/featureflags.json';
const flags = require(flagsPath);
flags.pcfAllowLookup = 'on';
fs.writeFile(
require.resolve(flagsPath),
JSON.stringify(flags, null, 2),
function writeJSON(err) {
if (err) return console.log(err);
console.log(JSON.stringify(flags, null, 2));
console.log('writing to ' + flagsPath);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment