Quick Notes
Written by Eddie ZhangatDecember 27, 2024
quick notes
fix the eol issue
.gitattributes
bash* text=auto eol=lf # default LF *.{cmd,[cC][mM][dD]} text eol=crlf # CRLF for cmd *.{bat,[bB][aA][tT]} text eol=crlf # CRLF for bat
bash# replace all the files with LF in old files git rm --cached -r . git reset --hard
fix the revalidate issue
ts[❌] export const revalidate = 15*60; //error [✅] export const revalidate = 900; //success
set git proxy
bashgit config --global http.proxy '<http|socks5>://<hostname>:<port>' # cannot set https proxy because git doesn't have this option # see the config is set or not git config --global --get http.proxy
fix drizzle orm generate error
bashpnpx drizzle-kit generate # cli shows this error Please install latest version of drizzle-orm
package.json
.bashnpx drizzle-kit generate # or pnpm exec drizzle-kit generate