Skip to content

Commit

Permalink
refactor(front): .env variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco Rocco committed Dec 28, 2023
1 parent 240fcd5 commit 4ba0eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "./bootstrap";
const queryClient = new QueryClient();

Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN_PUBLIC as string,
dsn: env.VITE_SENTRY_DSN_PUBLIC,
integrations: [
new Sentry.BrowserTracing({
// See docs for support of different versions of variation of react router
Expand Down
1 change: 1 addition & 0 deletions resources/js/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const envSchema = z.object({
VITE_APP_NAME: defaultValidation,
VITE_API_URL: defaultValidation,
VITE_GOOGLE_AUTH_SSO_CLIENT_ID: defaultValidation,
VITE_SENTRY_DSN_PUBLIC: defaultValidation,
});

type EnvValues = z.infer<typeof envSchema>;
Expand Down

0 comments on commit 4ba0eb4

Please sign in to comment.