File tree Expand file tree Collapse file tree 5 files changed +5
-2
lines changed
Expand file tree Collapse file tree 5 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1616
1717 - uses : superfly/flyctl-actions/setup-flyctl@master
1818
19- - run : flyctl deploy --config apps/api/fly.toml --app hyprnote-api-loadtest --strategy immediate --wait-timeout 120
19+ - run : flyctl deploy --config apps/api/fly.toml --app hyprnote-api-loadtest --strategy immediate --wait-timeout 120 --env LOAD_TEST=true
2020 env :
2121 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
2222
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export const env = createEnv({
77 NODE_ENV : z
88 . enum ( [ "development" , "test" , "production" ] )
99 . default ( "development" ) ,
10+ LOAD_TEST : z . coerce . boolean ( ) . default ( false ) ,
1011 SUPABASE_URL : z . url ( ) ,
1112 SUPABASE_ANON_KEY : z . string ( ) . min ( 1 ) ,
1213 SUPABASE_SERVICE_ROLE_KEY : z . string ( ) . min ( 1 ) ,
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ Sentry.init({
44 dsn : Bun . env . SENTRY_DSN ,
55 release : `hyprnote-api@${ Bun . env . APP_REVISION ?? "local" } ` ,
66 sampleRate : 1.0 ,
7+ enabled : [ "true" , "1" ] . includes ( Bun . env . LOAD_TEST ) ,
78} ) ;
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import { env } from "./env";
44
55export const posthog = new PostHog ( env . POSTHOG_API_KEY , {
66 host : "https://us.i.posthog.com" ,
7+ disabled : env . LOAD_TEST ,
78} ) ;
Original file line number Diff line number Diff line change 1- v2.62.10
1+ v2.65.5
You can’t perform that action at this time.
0 commit comments