From 30ac5c7fd781285393c8ac7d810ea1217a7a66ad Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 12 Sep 2023 10:15:56 +0700 Subject: Fix error when no category homepage data --- src/lib/home/components/CategoryHome.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/home/components/CategoryHome.jsx b/src/lib/home/components/CategoryHome.jsx index 181ba327..34c28728 100644 --- a/src/lib/home/components/CategoryHome.jsx +++ b/src/lib/home/components/CategoryHome.jsx @@ -7,7 +7,7 @@ const CategoryHome = ({ id }) => { return (
- {categoryHome.data ? ( + {categoryHome?.data?.length > 0 ? ( Date: Tue, 12 Sep 2023 10:22:46 +0700 Subject: Add ecosystem config for pm2 --- ecosystem.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 00000000..0429088a --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,19 @@ +module.exports = { + apps: [ + { + name: 'next-indoteknik', + script: 'npm', + args: 'start', + instances: 'max', + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'development' + }, + env_production: { + NODE_ENV: 'production' + } + } + ] +} -- cgit v1.2.3