Spaces:
Configuration error
Configuration error
Clean vercel.json for static deployment compatibility
Browse files- Simplified vercel.json to use rewrites instead of conflicting routes/headers
- Moved static files from public/ to dashboard/ root directory
- Updated package.json scripts to match new structure
- Ready for error-free Vercel deployment
dashboard/{public/index.html → index.html}
RENAMED
|
File without changes
|
dashboard/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
| 4 |
"description": "AetheroOS Introspective Dashboard",
|
| 5 |
"main": "index.html",
|
| 6 |
"scripts": {
|
| 7 |
-
"dev": "
|
| 8 |
-
"build": "echo '
|
| 9 |
-
"start": "
|
| 10 |
},
|
| 11 |
"keywords": ["aethero", "dashboard", "introspective", "ai"],
|
| 12 |
"author": "AetheroOS",
|
|
|
|
| 4 |
"description": "AetheroOS Introspective Dashboard",
|
| 5 |
"main": "index.html",
|
| 6 |
"scripts": {
|
| 7 |
+
"dev": "python3 -m http.server 3000",
|
| 8 |
+
"build": "echo 'Static files ready for deployment'",
|
| 9 |
+
"start": "python3 -m http.server 8080"
|
| 10 |
},
|
| 11 |
"keywords": ["aethero", "dashboard", "introspective", "ai"],
|
| 12 |
"author": "AetheroOS",
|
dashboard/{public/script.js → script.js}
RENAMED
|
File without changes
|
dashboard/{public/styles.css → styles.css}
RENAMED
|
File without changes
|
dashboard/vercel.json
CHANGED
|
@@ -1,44 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"version": 2,
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
|
| 7 |
-
"builds": [
|
| 8 |
-
{
|
| 9 |
-
"src": "public/**/*",
|
| 10 |
-
"use": "@vercel/static"
|
| 11 |
-
}
|
| 12 |
-
],
|
| 13 |
-
"routes": [
|
| 14 |
-
{
|
| 15 |
-
"src": "/(.*\\.(js|css|png|jpg|svg|ico))",
|
| 16 |
-
"headers": {
|
| 17 |
-
"Cache-Control": "public, max-age=31536000, immutable"
|
| 18 |
-
}
|
| 19 |
-
},
|
| 20 |
-
{
|
| 21 |
-
"src": "/(.*)",
|
| 22 |
-
"dest": "/index.html"
|
| 23 |
-
}
|
| 24 |
-
],
|
| 25 |
-
"headers": [
|
| 26 |
-
{
|
| 27 |
-
"source": "/(.*)",
|
| 28 |
-
"headers": [
|
| 29 |
-
{
|
| 30 |
-
"key": "X-Content-Type-Options",
|
| 31 |
-
"value": "nosniff"
|
| 32 |
-
},
|
| 33 |
-
{
|
| 34 |
-
"key": "X-Frame-Options",
|
| 35 |
-
"value": "DENY"
|
| 36 |
-
},
|
| 37 |
-
{
|
| 38 |
-
"key": "X-XSS-Protection",
|
| 39 |
-
"value": "1; mode=block"
|
| 40 |
-
}
|
| 41 |
-
]
|
| 42 |
-
}
|
| 43 |
]
|
| 44 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": 2,
|
| 3 |
+
"cleanUrls": true,
|
| 4 |
+
"trailingSlash": false,
|
| 5 |
+
"rewrites": [
|
| 6 |
+
{ "source": "/(.*)", "destination": "/index.html" }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
]
|
| 8 |
}
|