ALwrity + Wix + Wordpress + GSC integration
This commit is contained in:
45
vercel.json
45
vercel.json
@@ -1,40 +1,21 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"buildCommand": "cd frontend && npm install && npm run build",
|
"builds": [
|
||||||
"outputDirectory": "frontend/build",
|
|
||||||
"framework": null,
|
|
||||||
"rewrites": [
|
|
||||||
{
|
{
|
||||||
"source": "/(.*)",
|
"src": "frontend/package.json",
|
||||||
"destination": "/index.html"
|
"use": "@vercel/static-build",
|
||||||
|
"config": {
|
||||||
|
"distDir": "build"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"headers": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"source": "/(.*)",
|
"src": "/(.*)",
|
||||||
"headers": [
|
"dest": "/frontend/$1"
|
||||||
{
|
|
||||||
"key": "X-Content-Type-Options",
|
|
||||||
"value": "nosniff"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "X-Frame-Options",
|
|
||||||
"value": "DENY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "X-XSS-Protection",
|
|
||||||
"value": "1; mode=block"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/static/(.*)",
|
|
||||||
"headers": [
|
|
||||||
{
|
|
||||||
"key": "Cache-Control",
|
|
||||||
"value": "public, max-age=31536000, immutable"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"env": {
|
||||||
|
"REACT_APP_ENVIRONMENT": "production"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user