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 the rest of the application code
COPY . . COPY . .
# Build the application
RUN pnpm build
# Expose the port the app runs on # Expose the port the app runs on
EXPOSE 4173 EXPOSE 4173
# Command to run the application # Command to run the application
CMD ["pnpm", "dev"] CMD ["pnpm", "start"]

View File

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

View File

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

View File

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

View File

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

View File

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