Skip to content

Commit 3ff1bec

Browse files
committedNov 3, 2023
Setup boilerplate
1 parent 94ceceb commit 3ff1bec

15 files changed

+566
-202
lines changed
 

‎.env

Whitespace-only changes.

‎.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"plugins": ["prettier-plugin-organize-imports"]
6+
}

‎README.md

+1-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1 @@
1-
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).
2-
3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22-
23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
26-
27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31-
32-
## Deploy on Vercel
33-
34-
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.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
1+
# CourseInsider

‎next.config.js

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {}
2+
const nextConfig = {
3+
compiler: {
4+
removeConsole: process.env.NODE_ENV === "production",
5+
},
36

4-
module.exports = nextConfig
7+
async headers() {
8+
return [
9+
{
10+
source: "/(.*)",
11+
headers: [
12+
{
13+
key: "Referrer-Policy",
14+
value: "no-referrer-when-downgrade",
15+
},
16+
],
17+
},
18+
];
19+
},
20+
};
21+
22+
module.exports = nextConfig;

‎package.json

+18-4
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,33 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@auth/prisma-adapter": "^1.0.5",
13+
"@prisma/client": "^5.5.2",
14+
"axios": "^1.6.0",
15+
"clsx": "^2.0.0",
16+
"next": "14.0.1",
17+
"next-auth": "^4.24.4",
18+
"prisma": "^5.5.2",
1219
"react": "^18",
1320
"react-dom": "^18",
14-
"next": "14.0.1"
21+
"tailwind-merge": "^2.0.0",
22+
"uuid": "^9.0.1"
1523
},
1624
"devDependencies": {
17-
"typescript": "^5",
1825
"@types/node": "^20",
1926
"@types/react": "^18",
2027
"@types/react-dom": "^18",
28+
"@types/uuid": "^9.0.6",
2129
"autoprefixer": "^10.0.1",
30+
"eslint": "^8",
31+
"eslint-config-next": "14.0.1",
32+
"eslint-config-prettier": "^9.0.0",
2233
"postcss": "^8",
34+
"prettier-plugin-organize-imports": "^3.2.3",
35+
"prettier-plugin-tailwindcss": "^0.5.6",
36+
"react-spinners": "^0.13.8",
2337
"tailwindcss": "^3.3.0",
24-
"eslint": "^8",
25-
"eslint-config-next": "14.0.1"
38+
"tailwindcss-debug-screens": "^2.2.1",
39+
"typescript": "^5"
2640
}
2741
}

0 commit comments

Comments
 (0)
Please sign in to comment.