Skip to content

Commit ecf1c0f

Browse files
committed
fix: vercel dev rewrites
1 parent 81fcb64 commit ecf1c0f

File tree

1 file changed

+137
-8
lines changed

1 file changed

+137
-8
lines changed

vercel.json

+137-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
23
"rewrites": [
34
{
45
"source": "/__debug_proxy",
@@ -10,35 +11,163 @@
1011
},
1112
{
1213
"source": "/share/:path*",
13-
"destination": "https://follow-external-ssr.vercel.app/share/:path*"
14+
"destination": "https://follow-external-ssr.vercel.app/share/:path*",
15+
"has": [
16+
{
17+
"type": "host",
18+
"value": "app.follow.is"
19+
}
20+
]
21+
},
22+
{
23+
"source": "/og/:path*",
24+
"destination": "https://follow-external-ssr.vercel.app/og/:path*",
25+
"has": [
26+
{
27+
"type": "host",
28+
"value": "app.follow.is"
29+
}
30+
]
31+
},
32+
{
33+
"source": "/login",
34+
"destination": "https://follow-external-ssr.vercel.app/login",
35+
"has": [
36+
{
37+
"type": "host",
38+
"value": "app.follow.is"
39+
}
40+
]
41+
},
42+
{
43+
"source": "/register",
44+
"destination": "https://follow-external-ssr.vercel.app/register",
45+
"has": [
46+
{
47+
"type": "host",
48+
"value": "app.follow.is"
49+
}
50+
]
51+
},
52+
{
53+
"source": "/forget-password",
54+
"destination": "https://follow-external-ssr.vercel.app/forget-password",
55+
"has": [
56+
{
57+
"type": "host",
58+
"value": "app.follow.is"
59+
}
60+
]
61+
},
62+
{
63+
"source": "/reset-password",
64+
"destination": "https://follow-external-ssr.vercel.app/reset-password",
65+
"has": [
66+
{
67+
"type": "host",
68+
"value": "app.follow.is"
69+
}
70+
]
71+
},
72+
{
73+
"source": "/external-dist/:path*",
74+
"destination": "https://follow-external-ssr.vercel.app/external-dist/:path*",
75+
"has": [
76+
{
77+
"type": "host",
78+
"value": "app.follow.is"
79+
}
80+
]
81+
},
82+
{
83+
"source": "/dist-external/:path*",
84+
"destination": "https://follow-external-ssr.vercel.app/dist-external/:path*",
85+
"has": [
86+
{
87+
"type": "host",
88+
"value": "app.follow.is"
89+
}
90+
]
91+
},
92+
{
93+
"source": "/share/:path*",
94+
"destination": "https://follow-external-ssr-dev.vercel.app/share/:path*",
95+
"has": [
96+
{
97+
"type": "host",
98+
"value": "dev.follow.is"
99+
}
100+
]
14101
},
15102
{
16103
"source": "/og/:path*",
17-
"destination": "https://follow-external-ssr.vercel.app/og/:path*"
104+
"destination": "https://follow-external-ssr-dev.vercel.app/og/:path*",
105+
"has": [
106+
{
107+
"type": "host",
108+
"value": "dev.follow.is"
109+
}
110+
]
18111
},
19112
{
20113
"source": "/login",
21-
"destination": "https://follow-external-ssr.vercel.app/login"
114+
"destination": "https://follow-external-ssr-dev.vercel.app/login",
115+
"has": [
116+
{
117+
"type": "host",
118+
"value": "dev.follow.is"
119+
}
120+
]
22121
},
23122
{
24123
"source": "/register",
25-
"destination": "https://follow-external-ssr.vercel.app/register"
124+
"destination": "https://follow-external-ssr-dev.vercel.app/register",
125+
"has": [
126+
{
127+
"type": "host",
128+
"value": "dev.follow.is"
129+
}
130+
]
26131
},
27132
{
28133
"source": "/forget-password",
29-
"destination": "https://follow-external-ssr.vercel.app/forget-password"
134+
"destination": "https://follow-external-ssr-dev.vercel.app/forget-password",
135+
"has": [
136+
{
137+
"type": "host",
138+
"value": "dev.follow.is"
139+
}
140+
]
30141
},
31142
{
32143
"source": "/reset-password",
33-
"destination": "https://follow-external-ssr.vercel.app/reset-password"
144+
"destination": "https://follow-external-ssr-dev.vercel.app/reset-password",
145+
"has": [
146+
{
147+
"type": "host",
148+
"value": "dev.follow.is"
149+
}
150+
]
34151
},
35152
{
36153
"source": "/external-dist/:path*",
37-
"destination": "https://follow-external-ssr.vercel.app/external-dist/:path*"
154+
"destination": "https://follow-external-ssr-dev.vercel.app/external-dist/:path*",
155+
"has": [
156+
{
157+
"type": "host",
158+
"value": "dev.follow.is"
159+
}
160+
]
38161
},
39162
{
40163
"source": "/dist-external/:path*",
41-
"destination": "https://follow-external-ssr.vercel.app/dist-external/:path*"
164+
"destination": "https://follow-external-ssr-dev.vercel.app/dist-external/:path*",
165+
"has": [
166+
{
167+
"type": "host",
168+
"value": "dev.follow.is"
169+
}
170+
]
42171
},
43172
{
44173
"source": "/((?!assets|vendor|locales|dist-external|external-dist/).*)",

0 commit comments

Comments
 (0)