build
This commit is contained in:
parent
7dce94ae95
commit
c6548d0b63
|
|
@ -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"]
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
devIndicators: false
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in New Issue