vercel.json 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "trailingSlash": true,
  3. "redirects": [
  4. {
  5. "source": "/posts/(.*)",
  6. "destination": "/writing/$1",
  7. "permanent": true
  8. },
  9. {
  10. "source": "/post/(.*)",
  11. "destination": "/writing/$1",
  12. "permanent": true
  13. },
  14. {
  15. "source": "/friends/",
  16. "destination": "/link/",
  17. "permanent": true
  18. },
  19. {
  20. "source": "/links/",
  21. "destination": "/link/",
  22. "permanent": true
  23. },
  24. {
  25. "source": "/writing/2018/compile-nginx-tls1.3/",
  26. "destination": "/writing/2018/compile-nginx-tls1_3/",
  27. "permanent": true
  28. }
  29. ],
  30. "headers": [
  31. {
  32. "source": "/(.*).(jpe?g|png|gif|webp|ico|svg|css|js|ttf|otf|woff2?)",
  33. "headers": [
  34. {
  35. "key": "Cache-Control",
  36. "value": "public, max-age=15552000, immutable"
  37. }
  38. ]
  39. },
  40. {
  41. "source": "/js/comment.js",
  42. "headers": [
  43. {
  44. "key": "Cache-Control",
  45. "value": "public, max-age=2592000, must-revalidate"
  46. }
  47. ]
  48. }
  49. ]
  50. }