Branchwell

Inkspring / website / vercel.json

1{
2 "framework": "vite",
3 "buildCommand": "npm run build",
4 "outputDirectory": "dist",
5 "cleanUrls": true,
6 "redirects": [
7 {
8 "source": "/:path*",
9 "has": [{ "type": "host", "value": "www.inkspring.ai" }],
10 "destination": "https://inkspring.ai/:path*",
11 "permanent": true
12 },
13 {
14 "source": "/install/installer.jpg",
15 "destination": "/install/installer.png",
16 "permanent": true
17 },
18 {
19 "source": "/updates/Inkspring-1.0.0-Mac.dmg",
20 "destination": "/updates/Inkspring-1.0.0.dmg",
21 "permanent": false
22 },
23 {
24 "source": "/updates/Inkspring-1.0.0-Mac-5.dmg",
25 "destination": "/updates/Inkspring-1.0.0.dmg",
26 "permanent": false
27 },
28 {
29 "source": "/waitlist",
30 "destination": "/",
31 "permanent": true
32 },
33 {
34 "source": "/:page(about|about-us)",
35 "destination": "/",
36 "permanent": true
37 },
38 {
39 "source": "/auth/:path*",
40 "destination": "/#desktop",
41 "permanent": false
42 },
43 {
44 "source": "/account",
45 "destination": "/#desktop",
46 "permanent": false
47 }
48 ],
49 "headers": [
50 {
51 "source": "/(.*)",
52 "headers": [
53 {
54 "key": "X-Content-Type-Options",
55 "value": "nosniff"
56 },
57 {
58 "key": "Referrer-Policy",
59 "value": "strict-origin-when-cross-origin"
60 },
61 {
62 "key": "Content-Security-Policy",
63 "value": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://projectatom.ai; object-src 'none'; base-uri 'self'; form-action 'none'; frame-ancestors 'none'"
64 }
65 ]
66 },
67 {
68 "source": "/desktop-connect/:path*",
69 "headers": [
70 {
71 "key": "Cache-Control",
72 "value": "no-store"
73 },
74 {
75 "key": "Referrer-Policy",
76 "value": "no-referrer"
77 },
78 {
79 "key": "X-Robots-Tag",
80 "value": "noindex, nofollow"
81 }
82 ]
83 }
84 ],
85 "rewrites": [
86 {
87 "source": "/api/desktop/media",
88 "destination": "/api/media?action=upload"
89 },
90 {
91 "source": "/api/desktop/media/delete",
92 "destination": "/api/media?action=delete"
93 },
94 {
95 "source": "/tiktok-media/:file",
96 "destination": "/api/media?action=serve&file=:file"
97 },
98 {
99 "source": "/api/desktop/connect/:action",
100 "destination": "/api/connect?action=:action"
101 },
102 {
103 "source": "/api/auth/callback/:provider",
104 "destination": "/api/connect?action=callback&provider=:provider"
105 }
106 ]
107}