Skip to content

Commit

Permalink
fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinOomenTheDeveloper committed May 29, 2024
1 parent 5de414b commit ed680d6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 62 deletions.
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Stage 1: Build the Next.js application
FROM node:18-alpine AS builder

# Set working directory
WORKDIR /app

# Copy package.json and install dependencies
COPY package.json ./
RUN npm install --production --frozen-lockfile

# Copy application files
COPY . .

# Build the application
RUN npm run build

# Stage 2: Run the Next.js application
FROM node:18-alpine

# Set working directory
WORKDIR /app

# Copy built files from the builder stage
COPY --from=builder /app ./

# Expose the port the app runs on
EXPOSE 3000

# Start the application
CMD ["npm", "start"]
38 changes: 0 additions & 38 deletions src/app/api/auth/[...nextauth]/route.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/app/page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default async function Annotations() {

return (
<div>
{data.map((song, index) => (
<p>{song.name}</p>
{data.map((song) => (
<p key={song.id}>{song.name}</p>
))}
</div>
);
Expand Down
21 changes: 0 additions & 21 deletions src/app/test/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down

0 comments on commit ed680d6

Please sign in to comment.