From e4f31048a3048b96e3ec18b739e1888da543564f Mon Sep 17 00:00:00 2001 From: grey Date: Wed, 16 Nov 2022 21:32:48 +0100 Subject: [PATCH] some cleanup work --- .gitignore | 1 + README.md | 34 ++-------------------------------- next.config.js | 3 +++ package.json | 2 +- pages/api/hello.js | 5 ----- pages/index.js | 4 ++-- 6 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 pages/api/hello.js diff --git a/.gitignore b/.gitignore index c87c9b3..00256e2 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts +out.zip diff --git a/README.md b/README.md index b12f3e3..c56725d 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,4 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +## [Project-Name-Here] - Website +This is the repo for our website. It is built using Next.js. diff --git a/next.config.js b/next.config.js index a843cbe..08ec22b 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + images: { + unoptimized: true, + } } module.exports = nextConfig diff --git a/package.json b/package.json index 542a9dd..2644f69 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build -p 3001", + "build": "next build", "start": "next start", "lint": "next lint" }, diff --git a/pages/api/hello.js b/pages/api/hello.js deleted file mode 100644 index df63de8..0000000 --- a/pages/api/hello.js +++ /dev/null @@ -1,5 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction - -export default function handler(req, res) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/pages/index.js b/pages/index.js index d613ffc..4232cb5 100644 --- a/pages/index.js +++ b/pages/index.js @@ -26,7 +26,7 @@ export default function Home() { -
+ {/*
-
+
*/} )