const fs = require('fs');

const file = 'app/auth/page.tsx';
let code = fs.readFileSync(file, 'utf8');

// Currently it routes to `/${workspace}/projects`
// We will route them to `/onboarding`
code = code.replace(
  'router.push(`/${workspace}/projects`);',
  'router.push(`/onboarding`);'
);

fs.writeFileSync(file, code);
