Add OneSignal configuration and service

This commit is contained in:
faris Aljohari
2024-05-26 00:35:20 +03:00
parent 167cb055c1
commit 8b88d2be95
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { registerAs } from '@nestjs/config';
export default registerAs(
'onesignal-config',
(): Record<string, any> => ({
ONESIGNAL_APP_ID: process.env.ONESIGNAL_APP_ID,
ONESIGNAL_API_KEY: process.env.ONESIGNAL_API_KEY,
}),
);