vercel.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "public": true,
  3. "headers": [
  4. {
  5. "source": "/",
  6. "headers": [
  7. {
  8. "key": "Access-Control-Allow-Origin",
  9. "value": "https://excalidraw.com"
  10. },
  11. {
  12. "key": "X-Content-Type-Options",
  13. "value": "nosniff"
  14. },
  15. {
  16. "key": "Feature-Policy",
  17. "value": "*"
  18. },
  19. {
  20. "key": "Referrer-Policy",
  21. "value": "origin"
  22. }
  23. ]
  24. },
  25. {
  26. "source": "/plus/",
  27. "headers": [
  28. {
  29. "key": "Access-Control-Allow-Origin",
  30. "value": "https://plus.excalidraw.com"
  31. },
  32. {
  33. "key": "X-Content-Type-Options",
  34. "value": "nosniff"
  35. },
  36. {
  37. "key": "Feature-Policy",
  38. "value": "*"
  39. },
  40. {
  41. "key": "Referrer-Policy",
  42. "value": "origin"
  43. }
  44. ]
  45. },
  46. {
  47. "source": "/:file*.woff2",
  48. "headers": [
  49. {
  50. "key": "Cache-Control",
  51. "value": "public, max-age=31536000"
  52. },
  53. {
  54. "key": "Access-Control-Allow-Origin",
  55. "value": "https://excalidraw.com"
  56. }
  57. ]
  58. },
  59. {
  60. "source": "/(Virgil|Cascadia|Assistant-Regular).woff2",
  61. "headers": [
  62. {
  63. "key": "Cache-Control",
  64. "value": "public, max-age=31536000"
  65. },
  66. {
  67. "key": "Access-Control-Allow-Origin",
  68. "value": "*"
  69. }
  70. ]
  71. }
  72. ],
  73. "rewrites": [
  74. {"source": "/plus/", "destination": "https://plus.excalidraw.com/"}
  75. ],
  76. "redirects": [
  77. {
  78. "source": "/webex/:match*",
  79. "destination": "https://for-webex.excalidraw.com"
  80. },
  81. {
  82. "source": "/:path*",
  83. "has": [
  84. {
  85. "type": "host",
  86. "value": "vscode.excalidraw.com"
  87. }
  88. ],
  89. "destination": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor"
  90. }
  91. ],
  92. "outputDirectory": "excalidraw-app/build",
  93. "installCommand": "yarn install"
  94. }