Voxley / website / vercel.json
| 1 | { |
| 2 | "buildCommand": "node tools/indexnow.mjs sitemap.xml . --lastmod && rm tools/indexnow.mjs", |
| 3 | "outputDirectory": ".", |
| 4 | "headers": [ |
| 5 | { |
| 6 | "source": "/assets/fonts/(.*)", |
| 7 | "headers": [ |
| 8 | { |
| 9 | "key": "Cache-Control", |
| 10 | "value": "public, max-age=31536000, immutable" |
| 11 | } |
| 12 | ] |
| 13 | }, |
| 14 | { |
| 15 | "source": "/(.*)", |
| 16 | "headers": [ |
| 17 | { |
| 18 | "key": "Referrer-Policy", |
| 19 | "value": "strict-origin-when-cross-origin" |
| 20 | }, |
| 21 | { |
| 22 | "key": "X-Content-Type-Options", |
| 23 | "value": "nosniff" |
| 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | { |
| 28 | "source": "/downloads/(.*)", |
| 29 | "headers": [ |
| 30 | { |
| 31 | "key": "Content-Disposition", |
| 32 | "value": "attachment" |
| 33 | }, |
| 34 | { |
| 35 | "key": "Content-Type", |
| 36 | "value": "application/x-apple-diskimage" |
| 37 | } |
| 38 | ] |
| 39 | }, |
| 40 | { |
| 41 | "source": "/appcast.xml", |
| 42 | "headers": [ |
| 43 | { |
| 44 | "key": "Content-Type", |
| 45 | "value": "application/rss+xml; charset=utf-8" |
| 46 | }, |
| 47 | { |
| 48 | "key": "Cache-Control", |
| 49 | "value": "public, max-age=300" |
| 50 | } |
| 51 | ] |
| 52 | } |
| 53 | ], |
| 54 | "redirects": [ |
| 55 | { |
| 56 | "source": "/downloads", |
| 57 | "destination": "/download/", |
| 58 | "permanent": false |
| 59 | }, |
| 60 | { |
| 61 | "source": "/downloads/", |
| 62 | "destination": "/download/", |
| 63 | "permanent": false |
| 64 | } |
| 65 | ] |
| 66 | } |