eddev 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import settings from "_utils/ed-config"
|
|
1
2
|
import { fetchWordpressProps } from "../_utils/fetch-wordpress-props"
|
|
2
3
|
|
|
3
4
|
export default function Home() {
|
|
@@ -6,7 +7,9 @@ export default function Home() {
|
|
|
6
7
|
|
|
7
8
|
export async function getStaticProps({ params }: any) {
|
|
8
9
|
const result = await fetchWordpressProps("/")
|
|
10
|
+
const revalidate = result.data.revalidate || settings.serverless?.defaultRevalidate || false
|
|
9
11
|
return {
|
|
12
|
+
revalidate,
|
|
10
13
|
props: result.data,
|
|
11
14
|
}
|
|
12
15
|
}
|