2022-11-25 16:23:26 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# In CI, we need to make sure the vercel.json file is built correctly,
|
|
|
|
# or else it will mess up the deployment to Vercel
|
|
|
|
|
2022-11-25 17:02:11 +00:00
|
|
|
if ! diff -q /tmp/vercel-old.json ./vercel.json &>/dev/null; then
|
|
|
|
diff /tmp/vercel-old.json ./vercel.json
|
2022-11-25 16:23:26 +00:00
|
|
|
echo "vercel.json changed, run yarn build and make sure everything looks okay"
|
|
|
|
exit 1
|
|
|
|
fi
|