-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi, i am implementing onesignal integration in nuxt js but i am unable to replace the hardcoded one signal ids in nuxt config because i am unable to access environment variables while deploying.
currently my onesignal config looks like this:
oneSignal: {
cdn: true,
init: {
appId: "hard-coded-id",
safari_web_id: "hard-coded-id",
allowLocalhostAsSecureOrigin: true,
welcomeNotification: {
disable: true,
},
}
},
need to modify it like:
oneSignal: {
cdn: true,
init: {
appId: process.env.APP_ID,
safari_web_id: process.env.SAFARI_WEB_ID,
allowLocalhostAsSecureOrigin: true,
welcomeNotification: {
disable: true,
},
}
},
is there any way out?
Gazoon007
Metadata
Metadata
Assignees
Labels
No labels