Fix env?
This commit is contained in:
parent
d83c51f4eb
commit
f26d02c333
|
@ -25,8 +25,6 @@ export function getOpnRequestsOptions(request, opts) {
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
|
|
||||||
console.log('getOpnRequestsOptions', config, request, opts)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
baseURL: config.public.apiBase,
|
baseURL: config.public.apiBase,
|
||||||
onResponseError({response}) {
|
onResponseError({response}) {
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
export default {
|
export default {
|
||||||
// Keys within public, will be also exposed to the client-side
|
// Keys within public, will be also exposed to the client-side
|
||||||
public: {
|
public: {
|
||||||
apiBase: '',
|
apiBase: process.env.NUXT_PUBLIC_API_BASE ||'',
|
||||||
appUrl: '',
|
appUrl: process.env.NUXT_PUBLIC_APP_URL || '',
|
||||||
env: 'local',
|
env: process.env.NUXT_PUBLIC_ENV || 'local',
|
||||||
hCaptchaSiteKey: null,
|
hCaptchaSiteKey: process.env.NUXT_PUBLIC_H_CAPTCHA_SITE_KEY || null,
|
||||||
googleAnalyticsCode: null,
|
googleAnalyticsCode: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE || null,
|
||||||
amplitudeCode: null,
|
amplitudeCode: process.env.NUXT_PUBLIC_AMPLITUDE_CODE || null,
|
||||||
sentryDsn: null,
|
sentryDsn: process.env.NUXT_PUBLIC_SENTRY_DSN || null,
|
||||||
crispWebsiteId: null,
|
crispWebsiteId: process.env.NUXT_PUBLIC_CRISP_WEBSITE_ID || null,
|
||||||
aiFeaturesEnabled: false,
|
aiFeaturesEnabled: process.env.NUXT_PUBLIC_AI_FEATURES_ENABLED || false,
|
||||||
s3Enabled: false,
|
s3Enabled: process.env.NUXT_PUBLIC_S3_ENABLED || false,
|
||||||
paidPlansEnabled: false,
|
paidPlansEnabled: process.env.NUXT_PUBLIC_PAID_PLANS_ENABLED || false,
|
||||||
customDomainsEnabled: false
|
customDomainsEnabled: process.env.NUXT_PUBLIC_CUSTOM_DOMAINS_ENABLED || false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue