Skip to content

Commit

Permalink
fix(frontend): env variable app
Browse files Browse the repository at this point in the history
  • Loading branch information
felixleo22 committed Oct 16, 2023
1 parent eccaa8b commit af223c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineNuxtConfig({
version: process.env.NUXT_PUBLIC_VERSION || 'development',
},
mailHost: process.env.NUXT_MAIL_HOST || 'http://localhost:59705',
apikeyMail: process.env.NUXT_MAIL_APIKEY || 'changeme',
mailApikey: process.env.NUXT_MAIL_APIKEY || 'changeme',
},
devServer: {
host: '0.0.0.0',
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/plugins/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineNuxtPlugin((nuxtApp) => {
const mail = axios.create({
baseURL: mailHost,
headers: {
'x-api-key': nuxtApp.$config.public.apikeyMail,
'x-api-key': nuxtApp.$config.public.mailApikey,
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/server/routes/nuxt/mail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineEventHandler(async (event) => {
message,
},
headers: {
'x-api-key': runtimeConfig.apikeyMail,
'x-api-key': runtimeConfig.mailApikey,
'Content-type': 'application/json',
},
},
Expand Down

0 comments on commit af223c0

Please sign in to comment.