This commit is contained in:
Tben 2023-08-21 09:14:02 +01:00
parent eb0ddedfaf
commit 9e4568c8eb
5 changed files with 44 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# Set Node.js version
FROM node:16
# Set working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose port 3000
EXPOSE 3000
# Run the app
CMD ["npm", "run", "build", "&&", "npm", "start"]

View File

@ -1,3 +1,10 @@
/** # MODULE TRACE
======================================================================
* Detected 1 files that call this module. The files are listed below:
======================================================================
* `import` Statement Found in [HomepageComponent.tsx] => file:///d:\GitHub\personal_site\app\(components)\HomepageComponent.tsx
==== MODULE TRACE END ==== */
"use client"; "use client";
import React from "react"; import React from "react";

View File

@ -1,3 +1,8 @@
/** # MODULE TRACE
======================================================================
* No imports found for this Module
==== MODULE TRACE END ==== */
// General imports // General imports
import { Metadata } from "next"; import { Metadata } from "next";
import GeneralLayout from "../layouts/general_layout/GeneralLayout"; import GeneralLayout from "../layouts/general_layout/GeneralLayout";

11
pages/api/test.ts Normal file
View File

@ -0,0 +1,11 @@
import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
/**
* @type {NextApiHandler}
*/
export default function handler(req: NextApiRequest, res: NextApiResponse) {
return res.status(200).json({
title: "Hello There",
message: "General Kenobi",
});
}