Skip to content

Commit

Permalink
Some more hot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrea committed Aug 6, 2023
1 parent ab0f9a8 commit 693b0c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
3 changes: 2 additions & 1 deletion website/src/pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -254,7 +255,7 @@ const Dashboard = () => {
<div className="relative flex items-center">
{' '}
{/* Add flex and items-center */}
<img
<Image
src={`https://cdn.discordapp.com/avatars/${user.id}/${user.avatar}.png`}
alt={user.username}
className="w-8 h-8 rounded-full cursor-pointer"
Expand Down

0 comments on commit 693b0c8

Please sign in to comment.