document page update

This commit is contained in:
tmshv committed 2020-03-10 19:16:39 +03:00
1 parent 01acda1e04
commit 1e22a5f437
1 file changed
+2 -2
+2 -2
View File
@@ -35,7 +35,7 @@ const Page: NextPage<Props> = props => {
)
}
export const unstable_getStaticProps = async (ctx: any) => {
export const getStaticProps = async (ctx: any) => {
const id = ctx.params.slug
const data = await requestGet(createApiUrl(`/api/files/${id}`), {})
@@ -49,7 +49,7 @@ export const unstable_getStaticProps = async (ctx: any) => {
}
}
export const unstable_getStaticPaths = async () => {
export const getStaticPaths = async () => {
const urls = await requestGet<IResponseItems<string>>(createApiUrl(`/api/files/urls`), null)
if (!urls) {
return null