Skip to content

Commit 981b860

Browse files
committed
revert revaldate
1 parent 925eaf3 commit 981b860

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:16
2+
3+
WORKDIR /app
4+
5+
COPY package.json yarn.lock ./
6+
7+
RUN yarn install
8+
RUN yarn build
9+
10+
COPY .next/ .
11+
12+
EXPOSE 8888
13+
14+
CMD ["yarn", "start"]

pages/[pageId].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getStaticProps = async (context) => {
1010
try {
1111
const props = await resolveNotionPage(domain, rawPageId)
1212

13-
return { props, revalidate: 30 }
13+
return { props, revalidate: 10 }
1414
} catch (err) {
1515
console.error('page error', domain, rawPageId, err)
1616

pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const getStaticProps = async () => {
77
try {
88
const props = await resolveNotionPage(domain)
99

10-
return { props, revalidate: 30 }
10+
return { props, revalidate: 10 }
1111
} catch (err) {
1212
console.error('page error', domain, err)
1313

0 commit comments

Comments
 (0)