mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: clean client cache when feature flags change (#51285)
This commit is contained in:
committed by
GitHub
parent
a622414ae5
commit
b9dff0337d
@@ -126,7 +126,7 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
|
||||
) {
|
||||
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
|
||||
console.log('Feature flags have been changed, cleaning client cache.');
|
||||
const child = spawn('pnpm', ['run', 'clean:client']);
|
||||
const child = spawn('pnpm', ['run', '-w', 'clean:client']);
|
||||
child.stdout.setEncoding('utf8');
|
||||
child.stdout.on('data', function (data) {
|
||||
console.log(data);
|
||||
|
||||
Reference in New Issue
Block a user