chore: correct VITE env prefix to APP

This commit is contained in:
Andrew Bastin
2023-07-17 20:06:02 +05:30
parent fc0c113e00
commit 6eb0426aca
4 changed files with 22 additions and 22 deletions

View File

@@ -150,7 +150,7 @@ export class TeamInvitationService {
template: 'team-invitation', template: 'team-invitation',
variables: { variables: {
invitee: creator.displayName ?? 'A Hoppscotch User', 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, invite_team_name: team.name,
}, },
}); });

View File

@@ -177,7 +177,7 @@ export default <HoppModule>{
onRouterInit(app, router) { onRouterInit(app, router) {
if (!import.meta.env.APP_SENTRY_DSN) { if (!import.meta.env.APP_SENTRY_DSN) {
console.log( 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 return
} }

View File

@@ -2,30 +2,30 @@
// Environment Variables Intellisense // Environment Variables Intellisense
interface ImportMetaEnv { 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 APP_API_KEY: string
readonly VITE_AUTH_DOMAIN: string readonly APP_AUTH_DOMAIN: string
readonly VITE_DATABASE_URL: string readonly APP_DATABASE_URL: string
readonly VITE_PROJECT_ID: string readonly APP_PROJECT_ID: string
readonly VITE_STORAGE_BUCKET: string readonly APP_STORAGE_BUCKET: string
readonly VITE_MESSAGING_SENDER_ID: string readonly APP_MESSAGING_SENDER_ID: string
readonly VITE_APP_ID: string readonly APP_APP_ID: string
readonly VITE_MEASUREMENT_ID: string readonly APP_MEASUREMENT_ID: string
readonly VITE_BASE_URL: string readonly APP_BASE_URL: string
readonly VITE_SHORTCODE_BASE_URL: string readonly APP_SHORTCODE_BASE_URL: string
readonly VITE_BACKEND_GQL_URL: string readonly APP_BACKEND_GQL_URL: string
readonly VITE_BACKEND_WS_URL: string readonly APP_BACKEND_WS_URL: string
readonly VITE_SENTRY_DSN?: string readonly APP_SENTRY_DSN?: string
readonly VITE_SENTRY_ENVIRONMENT?: string readonly APP_SENTRY_ENVIRONMENT?: string
readonly VITE_SENTRY_RELEASE_TAG?: string readonly APP_SENTRY_RELEASE_TAG?: string
readonly VITE_PROXYSCOTCH_ACCESS_TOKEN?: string readonly APP_PROXYSCOTCH_ACCESS_TOKEN?: string
} }
interface ImportMeta { interface ImportMeta {

View File

@@ -85,9 +85,9 @@ export default defineConfig({
nuxtStyle: true, nuxtStyle: true,
allowRobots: true, allowRobots: true,
dest: ".sitemap-gen", dest: ".sitemap-gen",
hostname: ENV.VITE_BASE_URL, hostname: ENV.APP_BASE_URL,
}) })
} },
}), }),
StaticCopy({ StaticCopy({
targets: [ targets: [