Skip to content

Commit

Permalink
fix: server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Aug 8, 2024
1 parent cc30776 commit 06b171e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
const express = require('express');
const next = require('next');

const dev = process.env.NEXT_PUBLIC_ENV !== 'production';
const app = next({ dev });
const app = next({ dev: false });
const handle = app.getRequestHandler();

const PORT = process.env.PORT || 3000;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/periodical/volume/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,6 @@ export async function getStaticProps({ params, locale }: any) {
volume,
...(await serverSideTranslations(locale, ['common', 'periodical'])),
},
revalidate: 3600 * 10,
revalidate: 60,
};
}

0 comments on commit 06b171e

Please sign in to comment.