updates
This commit is contained in:
parent
eb0ddedfaf
commit
9e4568c8eb
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
20
Dockerfile
Normal file
20
Dockerfile
Normal 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"]
|
@ -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";
|
||||
|
||||
import React from "react";
|
||||
|
@ -1,3 +1,8 @@
|
||||
/** # MODULE TRACE
|
||||
======================================================================
|
||||
* No imports found for this Module
|
||||
==== MODULE TRACE END ==== */
|
||||
|
||||
// General imports
|
||||
import { Metadata } from "next";
|
||||
import GeneralLayout from "../layouts/general_layout/GeneralLayout";
|
||||
|
11
pages/api/test.ts
Normal file
11
pages/api/test.ts
Normal 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",
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user