From 693b0c89518aea0a74e999c27eb717d4bbb606cf Mon Sep 17 00:00:00 2001 From: kyrea Date: Mon, 7 Aug 2023 05:12:23 +0530 Subject: [PATCH] Some more hot fixes --- package.json | 2 +- src/index.js | 2 +- website/src/pages/dashboard.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e8ac1e1..d73e8c7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "scripts": { "start": "npm run build:website && npm run api", - "build:website": "cd website && npm install && npm run build", + "build:website": "cd website && npm run build", "api": "node src/index.js", "dev": "npm run dev:website & npm run dev:api", "dev:website": "cd website && npm run dev", diff --git a/src/index.js b/src/index.js index fe85abb..69fdd44 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ const chalk = require('chalk') const app = require('./app') // PORT -const PORT = 4000 +const PORT = process.env.PORT || 4000 // NODE ENV LOGGER if (process.env.NODE_ENV === 'development') { diff --git a/website/src/pages/dashboard.js b/website/src/pages/dashboard.js index 8669ed4..d699e89 100644 --- a/website/src/pages/dashboard.js +++ b/website/src/pages/dashboard.js @@ -6,6 +6,7 @@ import { ToastContainer, toast } from 'react-toastify' import 'react-toastify/dist/ReactToastify.css' import LoadingSpinner from './components/LoadingSpinner' import generateToken from '../utils/generateToken' +import Image from 'next/image' const Dashboard = () => { const router = useRouter() @@ -254,7 +255,7 @@ const Dashboard = () => {
{' '} {/* Add flex and items-center */} -