text: const { join } = require('path');
  // nx-ignore-next-line
  const withNx = require('@nrwl/next/plugins/with-nx');
  
  module.exports = withNx({
    env: {
      WORKSPACE_ROOT: join(__dirname, '../..'),
    },
    async redirects() {
      // TODO(jack): Remove in Nx 13
      return [
        {
          source: '/latest/guides/eslint',
          destination: '/guides/eslint',
          permanent: true,
        },
      ];
    },
  });
  