teableio/teable

View on GitHub
apps/nextjs-app/src/pages/setting/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import type { GetServerSideProps } from 'next';
import type { NextPageWithLayout } from '@/lib/type';

const Node: NextPageWithLayout = () => {
  return <p>redirecting</p>;
};

export const getServerSideProps: GetServerSideProps = async () => {
  return {
    redirect: {
      destination: `/setting/personal-access-token`,
      permanent: false,
    },
  };
};

export default Node;