File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 "dev" : " vite" ,
88 "dev:env" : " bash -c 'set -a && source ../../.env && set +a && vite \" $@\" ' --" ,
99 "build" : " yarn clean && tsc && vite build" ,
10- "build:env" : " bash -c 'yarn clean && set -a && source ../../.env && set +a && tsc && vite build \" $@\" ' --" ,
10+ "build:env" : " bash -c 'yarn clean && set -a && source ../../.env && set +a && tsc && if [ \" $1 \" = \" -- \" ]; then shift; fi; vite build \" $@\" ' --" ,
1111 "lint" : " eslint ./src/**/**/*.{ts,tsx} --fix" ,
1212 "type-check" : " tsc --noEmit" ,
1313 "preview:env" : " bash ./scripts/preview-ensure.sh" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import tailwindcss from "@tailwindcss/vite";
77import { githubPagesSpa } from "@sctg/vite-plugin-github-pages-spa" ;
88import dotenv from "dotenv" ;
99import path from "path" ;
10+
1011const env = dotenv . config ( {
1112 path : path . resolve ( import . meta. dirname , '.env' ) ,
1213} ) ;
You can’t perform that action at this time.
0 commit comments