|
|
|
@ -1,8 +1,13 @@ |
|
|
|
|
import { GetStaticProps } from "next"; |
|
|
|
|
|
|
|
|
|
import Term, { |
|
|
|
|
getStaticProps as termGetStaticProps, |
|
|
|
|
Props, |
|
|
|
|
} from "./[year]/[term]/index"; |
|
|
|
|
|
|
|
|
|
export async function getStaticProps() { |
|
|
|
|
export default Term; |
|
|
|
|
|
|
|
|
|
export const getStaticProps: GetStaticProps<Props> = async () => { |
|
|
|
|
const date = new Date(); |
|
|
|
|
let term = ""; |
|
|
|
|
const year = date.getUTCFullYear(); |
|
|
|
@ -30,6 +35,4 @@ export async function getStaticProps() { |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
return await termGetStaticProps(context); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export default Term; |
|
|
|
|
}; |
|
|
|
|