chore: correct VITE env prefix to APP
This commit is contained in:
@@ -150,7 +150,7 @@ export class TeamInvitationService {
|
||||
template: 'team-invitation',
|
||||
variables: {
|
||||
invitee: creator.displayName ?? 'A Hoppscotch User',
|
||||
action_url: `${process.env.VITE_BASE_URL}/join-team?id=${dbInvitation.id}`,
|
||||
action_url: `${process.env.APP_BASE_URL}/join-team?id=${dbInvitation.id}`,
|
||||
invite_team_name: team.name,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -177,7 +177,7 @@ export default <HoppModule>{
|
||||
onRouterInit(app, router) {
|
||||
if (!import.meta.env.APP_SENTRY_DSN) {
|
||||
console.log(
|
||||
"Sentry tracing is not enabled because 'VITE_SENTRY_DSN' env is not defined"
|
||||
"Sentry tracing is not enabled because 'APP_SENTRY_DSN' env is not defined"
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
36
packages/hoppscotch-common/src/vite-envs.d.ts
vendored
36
packages/hoppscotch-common/src/vite-envs.d.ts
vendored
@@ -2,30 +2,30 @@
|
||||
|
||||
// Environment Variables Intellisense
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_GA_ID: string
|
||||
readonly APP_GA_ID: string
|
||||
|
||||
readonly VITE_GTM_ID: string
|
||||
readonly APP_GTM_ID: string
|
||||
|
||||
readonly VITE_API_KEY: string
|
||||
readonly VITE_AUTH_DOMAIN: string
|
||||
readonly VITE_DATABASE_URL: string
|
||||
readonly VITE_PROJECT_ID: string
|
||||
readonly VITE_STORAGE_BUCKET: string
|
||||
readonly VITE_MESSAGING_SENDER_ID: string
|
||||
readonly VITE_APP_ID: string
|
||||
readonly VITE_MEASUREMENT_ID: string
|
||||
readonly APP_API_KEY: string
|
||||
readonly APP_AUTH_DOMAIN: string
|
||||
readonly APP_DATABASE_URL: string
|
||||
readonly APP_PROJECT_ID: string
|
||||
readonly APP_STORAGE_BUCKET: string
|
||||
readonly APP_MESSAGING_SENDER_ID: string
|
||||
readonly APP_APP_ID: string
|
||||
readonly APP_MEASUREMENT_ID: string
|
||||
|
||||
readonly VITE_BASE_URL: string
|
||||
readonly VITE_SHORTCODE_BASE_URL: string
|
||||
readonly APP_BASE_URL: string
|
||||
readonly APP_SHORTCODE_BASE_URL: string
|
||||
|
||||
readonly VITE_BACKEND_GQL_URL: string
|
||||
readonly VITE_BACKEND_WS_URL: string
|
||||
readonly APP_BACKEND_GQL_URL: string
|
||||
readonly APP_BACKEND_WS_URL: string
|
||||
|
||||
readonly VITE_SENTRY_DSN?: string
|
||||
readonly VITE_SENTRY_ENVIRONMENT?: string
|
||||
readonly VITE_SENTRY_RELEASE_TAG?: string
|
||||
readonly APP_SENTRY_DSN?: string
|
||||
readonly APP_SENTRY_ENVIRONMENT?: string
|
||||
readonly APP_SENTRY_RELEASE_TAG?: string
|
||||
|
||||
readonly VITE_PROXYSCOTCH_ACCESS_TOKEN?: string
|
||||
readonly APP_PROXYSCOTCH_ACCESS_TOKEN?: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
||||
@@ -85,9 +85,9 @@ export default defineConfig({
|
||||
nuxtStyle: true,
|
||||
allowRobots: true,
|
||||
dest: ".sitemap-gen",
|
||||
hostname: ENV.VITE_BASE_URL,
|
||||
hostname: ENV.APP_BASE_URL,
|
||||
})
|
||||
}
|
||||
},
|
||||
}),
|
||||
StaticCopy({
|
||||
targets: [
|
||||
|
||||
Reference in New Issue
Block a user