fix: use .env values - fixed #1639
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require("dotenv").config()
|
||||
|
||||
// Common options
|
||||
export const options = {
|
||||
name: "Hoppscotch",
|
||||
@@ -116,6 +118,8 @@ export default {
|
||||
"@nuxtjs/google-fonts",
|
||||
// https://github.com/nuxt/typescript
|
||||
"@nuxt/typescript-build",
|
||||
// https://github.com/nuxt-community/dotenv-module
|
||||
"@nuxtjs/dotenv",
|
||||
],
|
||||
|
||||
// Modules (https://go.nuxtjs.dev/config-modules)
|
||||
@@ -172,7 +176,7 @@ export default {
|
||||
|
||||
// Sitemap module configuration (https://github.com/nuxt-community/sitemap-module)
|
||||
sitemap: {
|
||||
hostname: process.env.BASE_URL || "https://hoppscotch.io",
|
||||
hostname: process.env.BASE_URL,
|
||||
},
|
||||
|
||||
// Robots module configuration (https://github.com/nuxt-community/robots-module)
|
||||
@@ -390,23 +394,4 @@ export default {
|
||||
generate: {
|
||||
fallback: true,
|
||||
},
|
||||
|
||||
// Public runtime configuration (https://nuxtjs.org/guide/runtime-config)
|
||||
publicRuntimeConfig: {
|
||||
GA_ID: process.env.GA_ID || "UA-61422507-4",
|
||||
GTM_ID: process.env.GTM_ID || "GTM-NMKVBMV",
|
||||
BASE_URL: process.env.BASE_URL || "https://hoppscotch.io",
|
||||
},
|
||||
|
||||
// Private runtime configuration (https://nuxtjs.org/guide/runtime-config)
|
||||
privateRuntimeConfig: {
|
||||
API_KEY: process.env.API_KEY,
|
||||
AUTH_DOMAIN: process.env.AUTH_DOMAIN,
|
||||
DATABASE_URL: process.env.DATABASE_URL,
|
||||
PROJECT_ID: process.env.PROJECT_ID,
|
||||
STORAGE_BUCKET: process.env.STORAGE_BUCKET,
|
||||
MESSAGING_SENDER_ID: process.env.MESSAGING_SENDER_ID,
|
||||
APP_ID: process.env.APP_ID,
|
||||
MEASUREMENT_ID: process.env.MEASUREMENT_ID,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user