feat: Add ops/AIsupplychain/aisupply Vercel config for production deployment to LoRRI
#15
by MouleeswaranM - opened
ops/AIsupplychain/aisupply/vercel.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"rewrites": [
|
| 3 |
-
{ "source": "/api/(.*)", "destination": "https://fairrelay-
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
| 5 |
"headers": [
|
| 6 |
{
|
| 7 |
"source": "/(.*)",
|
| 8 |
"headers": [
|
| 9 |
-
{ "key": "X-Frame-Options", "value": "
|
| 10 |
-
{ "key": "
|
| 11 |
-
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
|
| 12 |
]
|
| 13 |
}
|
| 14 |
]
|
|
|
|
| 1 |
{
|
| 2 |
+
"buildCommand": "npm run build",
|
| 3 |
+
"outputDirectory": "dist",
|
| 4 |
+
"framework": "vite",
|
| 5 |
"rewrites": [
|
| 6 |
+
{ "source": "/api/(.*)", "destination": "https://fairrelay-backend.onrender.com/api/$1" }
|
| 7 |
],
|
| 8 |
+
"env": {
|
| 9 |
+
"VITE_API_URL": "https://fairrelay-backend.onrender.com"
|
| 10 |
+
},
|
| 11 |
"headers": [
|
| 12 |
{
|
| 13 |
"source": "/(.*)",
|
| 14 |
"headers": [
|
| 15 |
+
{ "key": "X-Frame-Options", "value": "ALLOWALL" },
|
| 16 |
+
{ "key": "Access-Control-Allow-Origin", "value": "*" }
|
|
|
|
| 17 |
]
|
| 18 |
}
|
| 19 |
]
|