@djangocfg/nextjs 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/ai/cli.ts +0 -0
- package/src/config/constants.ts +6 -11
- package/src/config/createNextConfig.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/nextjs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nextjs",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
"ai-docs": "tsx src/ai/cli.ts"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@djangocfg/api": "^2.1.
|
|
107
|
+
"@djangocfg/api": "^2.1.5",
|
|
108
108
|
"next": "^15.5.7"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@djangocfg/imgai": "^2.1.
|
|
112
|
-
"@djangocfg/layouts": "^2.1.
|
|
113
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
111
|
+
"@djangocfg/imgai": "^2.1.5",
|
|
112
|
+
"@djangocfg/layouts": "^2.1.5",
|
|
113
|
+
"@djangocfg/typescript-config": "^2.1.5",
|
|
114
114
|
"@types/node": "^24.7.2",
|
|
115
115
|
"@types/react": "19.2.2",
|
|
116
116
|
"@types/react-dom": "19.2.1",
|
package/src/ai/cli.ts
CHANGED
|
File without changes
|
package/src/config/constants.ts
CHANGED
|
@@ -10,17 +10,12 @@ export const VERSION_CACHE_TTL_MS = 60 * 60 * 1000;
|
|
|
10
10
|
|
|
11
11
|
// ASCII Art Banner for Django CFG
|
|
12
12
|
export const DJANGO_CFG_BANNER = `
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Y88b 888 888 888 888 888 888 Y88b 888 Y88..88P Y88b. 888 Y88b 888
|
|
20
|
-
"Y88888 888 "Y888888 888 888 "Y88888 "Y88P" "Y8888P 888 "Y88888
|
|
21
|
-
888 888 888
|
|
22
|
-
d88P Y8b d88P Y8b d88P
|
|
23
|
-
888P" "Y88P" "Y88P"
|
|
13
|
+
██████╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗███████╗ ██████╗
|
|
14
|
+
██╔══██╗ ██║██╔══██╗████╗ ██║██╔════╝ ██╔═══██╗ ██╔════╝██╔════╝██╔════╝
|
|
15
|
+
██║ ██║ ██║███████║██╔██╗ ██║██║ ███╗██║ ██║ ██║ █████╗ ██║ ███╗
|
|
16
|
+
██║ ██║██ ██║██╔══██║██║╚██╗██║██║ ██║██║ ██║ ██║ ██╔══╝ ██║ ██║
|
|
17
|
+
██████╔╝╚█████╔╝██║ ██║██║ ╚████║╚██████╔╝╚██████╔╝ ╚██████╗██║ ╚██████╔╝
|
|
18
|
+
╚═════╝ ╚════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝╚═╝ ╚═════╝
|
|
24
19
|
`;
|
|
25
20
|
|
|
26
21
|
// All @djangocfg packages that can be updated together
|
|
@@ -118,6 +118,20 @@ export function createBaseNextConfig(
|
|
|
118
118
|
unoptimized: true,
|
|
119
119
|
},
|
|
120
120
|
|
|
121
|
+
// CORS headers for static files
|
|
122
|
+
async headers() {
|
|
123
|
+
return [
|
|
124
|
+
{
|
|
125
|
+
source: '/static/:path*',
|
|
126
|
+
headers: [
|
|
127
|
+
{ key: 'Access-Control-Allow-Origin', value: '*' },
|
|
128
|
+
{ key: 'Access-Control-Allow-Methods', value: 'GET, OPTIONS' },
|
|
129
|
+
{ key: 'Access-Control-Allow-Headers', value: 'Origin, Content-Type, Accept' },
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
},
|
|
134
|
+
|
|
121
135
|
// Transpile packages (merge with user-provided)
|
|
122
136
|
transpilePackages: [
|
|
123
137
|
...DEFAULT_TRANSPILE_PACKAGES,
|