Skip to content

Commit 06b171e

Browse files
committed
fix: server bug
1 parent cc30776 commit 06b171e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
const express = require('express');
33
const next = require('next');
44

5-
const dev = process.env.NEXT_PUBLIC_ENV !== 'production';
6-
const app = next({ dev });
5+
const app = next({ dev: false });
76
const handle = app.getRequestHandler();
87

98
const PORT = process.env.PORT || 3000;

src/pages/periodical/volume/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,6 @@ export async function getStaticProps({ params, locale }: any) {
372372
volume,
373373
...(await serverSideTranslations(locale, ['common', 'periodical'])),
374374
},
375-
revalidate: 3600 * 10,
375+
revalidate: 60,
376376
};
377377
}

0 commit comments

Comments
 (0)