Skip to content

Commit

Permalink
docs: refactor demo
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Aug 27, 2024
1 parent b29c014 commit 6788176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Table, Thead, Tbody, Tr, Th, Td } from '../src/index';

const PkgDemo = dynamic(() => import('react-pkg-demo'), { ssr: false });

export async function getServerSideProps() {
export async function getStaticProps() {
const readFile = (filePath) => {
const absolutePath = path.resolve(process.cwd(), filePath);
return fs.readFileSync(absolutePath, 'utf8');
Expand Down

0 comments on commit 6788176

Please sign in to comment.