feat: update server port to 3003 and enhance logging; refactor frontend styles and components for improved UI/UX
- Changed server port from 3000 to 3003 in backend. - Updated logging message for server startup. - Refactored global CSS styles for a neon theme with new color variables. - Introduced responsive typography and layout adjustments in frontend. - Added new components: EmptyState and GameCover for better game display. - Implemented loading states and error handling in the Home page. - Updated API base URL to match new server port.
This commit is contained in:
@@ -3,14 +3,15 @@ import { buildApp } from './app';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const port = Number(process.env.PORT ?? 3000);
|
||||
const port = Number(process.env.PORT ?? 3003);
|
||||
const app = buildApp();
|
||||
|
||||
const start = async () => {
|
||||
const host = '0.0.0.0';
|
||||
|
||||
try {
|
||||
await app.listen({ port, host: '0.0.0.0' });
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`Server listening on http://0.0.0.0:${port}`);
|
||||
await app.listen({ port, host });
|
||||
console.log(`🚀 Server ready and listening on http://${host}:${port}`);
|
||||
} catch (err) {
|
||||
app.log.error(err);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user