This commit is contained in:
sacdeq 2025-04-22 17:20:15 +02:00
parent 7dce94ae95
commit c6548d0b63
6 changed files with 11 additions and 5 deletions

View File

@ -22,8 +22,11 @@ RUN pnpm install
# Copy the rest of the application code
COPY . .
# Build the application
RUN pnpm build
# Expose the port the app runs on
EXPOSE 4173
# Command to run the application
CMD ["pnpm", "dev"]
CMD ["pnpm", "start"]

View File

@ -1,6 +1,9 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: true,
},
devIndicators: false
};

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev --turbopack -p 4173",
"build": "next build",
"start": "next start",
"start": "next start -p 4173",
"lint": "next lint"
},
"dependencies": {

View File

@ -8,7 +8,7 @@ export async function GET (
{
try
{
const { player } = await context.params;
const { player } = context.params;
const data = await getLobbyData( player );
return Response.json( data );
} catch ( err: any )

View File

@ -8,7 +8,7 @@ export async function GET (
{
try
{
const { name, tag } = await context.params;
const { name, tag } = context.params;
const data = await getRankedData( name, tag );
return Response.json( data );
} catch ( err: any )

View File

@ -8,7 +8,7 @@ export async function GET (
{
try
{
const { name, tag } = await context.params;
const { name, tag } = context.params;
const data = await getSessionData( name, tag );
return Response.json( data );
} catch ( err: any )