Skip to content

Commit

Permalink
Merge pull request #92 from InvTrack/onesignal-envs
Browse files Browse the repository at this point in the history
feat: envs
  • Loading branch information
michalstruck authored Feb 10, 2024
2 parents d2f25ab + 654cbbd commit 4096cff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions admin/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@
notifyButton: {
enable: true,
},
allowLocalhostAsSecureOrigin: true,
allowLocalhostAsSecureOrigin: import.meta.env.DEV,
}).then(() => {
OneSignal.Slidedown.promptPush({
// TODO: tłumaczenie
forceSlidedownOverNative: true,
slidedownPromptOptions: {},
slidedownPromptOptions: {
force: true,
categoryOptions: {
errorButtonText: "Zamknij",
negativeUpdateButton: "Nie, dziękuję",
positiveUpdateButton: "Tak, chcę",
savingButtonText: "Zapisywanie...",
updateMessage: "Czy chcesz otrzymywać powiadomienia o nowych produktach?",
tags: [{ label: "Powiadomienia", checked: true, tag: "powiadomienia" }],
},
},
});
});
}
Expand Down
3 changes: 0 additions & 3 deletions supabase/functions/.env.example

This file was deleted.

3 changes: 3 additions & 0 deletions supabase/functions/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ONESIGNAL_APP_ID=5eef0226-6707-4d09-9d7f-8a1aa372ef16
USER_AUTH_KEY=ONESIGNAL-ACCOUNT->ACCOUNT&APIKEYS
ONESIGNAL_REST_API_KEY=ONESIGNAL_APP_REST_API_KEY

0 comments on commit 4096cff

Please sign in to comment.