Skip to content

Commit b1817f0

Browse files
committed
fix: navigation padding
1 parent 5dc36e5 commit b1817f0

7 files changed

Lines changed: 451 additions & 556 deletions

File tree

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": false,
4+
"tabWidth": 4,
5+
"printWidth": 200,
6+
"trailingComma": "es5"
7+
}

next.config.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
import { withPayload } from '@payloadcms/next/withPayload'
2-
import { NextConfig } from 'next'
1+
import { withPayload } from "@payloadcms/next/withPayload"
2+
import { NextConfig } from "next"
3+
4+
const isDev = process.env.NODE_ENV === "development"
35

46
const nextConfig: NextConfig = {
57
output: "standalone",
68
productionBrowserSourceMaps: true,
9+
images: {
10+
dangerouslyAllowLocalIP: isDev,
11+
remotePatterns: isDev
12+
? [
13+
{
14+
protocol: "http",
15+
hostname: "localhost",
16+
port: "3000",
17+
pathname: "/api/media/**",
18+
},
19+
{
20+
protocol: "http",
21+
hostname: "127.0.0.1",
22+
port: "3000",
23+
pathname: "/api/media/**",
24+
},
25+
]
26+
: [],
27+
},
728
}
829

930
export default withPayload(nextConfig)

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@tabler/icons-react": "3.41.1",
3434
"class-variance-authority": "^0.7.1",
3535
"clsx": "^2.1.1",
36-
"knip": "^6.16.1",
3736
"graphql": "^16.14.2",
37+
"knip": "^6.16.1",
3838
"motion": "^12.40.0",
3939
"next": "^16.2.7",
4040
"next-sitemap": "^4.2.3",
@@ -50,10 +50,11 @@
5050
},
5151
"devDependencies": {
5252
"@tailwindcss/postcss": "^4.3.0",
53-
"@types/react": "^19.2.17",
5453
"@types/node": "^25.9.2",
54+
"@types/react": "^19.2.17",
5555
"@types/react-dom": "^19.2.3",
5656
"postcss": "^8.5.15",
57+
"prettier": "^3.8.4",
5758
"tailwindcss": "^4.3.0",
5859
"tsx": "^4.22.4",
5960
"typescript": "^6.0.3"

src/components/navigation/NavigationDesktop.tsx

Lines changed: 112 additions & 141 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)