Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to override pcfAllowLookup flag
const fs = require('fs');
const flagsPath = 'pcf-scripts/featureflags.json';
const flags = require(flagsPath);
flags.pcfAllowLookup = 'on';
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