-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add admin mailer. #103
Add admin mailer. #103
Changes from all commits
fad94df
a70edfa
14d3ca9
bbda648
1074e5c
e5484da
d12ea05
0a6a2da
f1e4067
62f4df1
f0fc32a
31071b1
ebd2e1e
f5f8307
07421de
97799c6
237850b
accb4c4
b136506
428b3a5
468ef61
552fe69
84e1b13
1f1a017
81585f7
1568777
3b8defc
04be4e3
1fbd525
6eb3369
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -271,6 +271,18 @@ If you prefer another host you can explore alternatives: | |||||||||
- [Community adapters](https://sveltesociety.dev/components#adapters) including Github pages, AppEngine, Azure, and more | ||||||||||
- [Supabase](https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit) if you want one host for everything. Note: they do charge $10 a month for custom domains, unlike Cloudflare. | ||||||||||
|
||||||||||
## Setup Admin Emailer -- Optional | ||||||||||
|
||||||||||
SaaS Starter includes an admin emailer for sending yourself email notifications when important events happen. This let's you monitor your app and respond to users without watching the database. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix grammatical error: "setup" should be "set up". The word "setup" is a noun. The verb form is "set up". -If you setup the admin emailer, it will email you when users create their profile, or when the 'Contact Us' form is submitted.
+If you set up the admin emailer, it will email you when users create their profile, or when the 'Contact Us' form is submitted.
|
||||||||||
|
||||||||||
If you setup the admin emailer, it will email you when users create their profile, or when the 'Contact Us' form is submitted. You can add additional calls to sendAdminEmail() for any other events you want to monitor. | ||||||||||
|
||||||||||
To setup, set these environment variables: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix grammatical error: "setup" should be "set up". The word "setup" is a noun. The verb form is "set up". -To setup, set these environment variables:
+To set up, set these environment variables: Committable suggestion
Suggested change
ToolsLanguageTool
|
||||||||||
|
||||||||||
- `PRIVATE_ADMIN_EMAIL`: the email address to which admin emails will be sent. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix punctuation issue: Remove loose punctuation mark. The colon after "PRIVATE_ADMIN_EMAIL" is unnecessary. -`PRIVATE_ADMIN_EMAIL`: the email address to which admin emails will be sent.
+`PRIVATE_ADMIN_EMAIL` - the email address to which admin emails will be sent. Committable suggestion
Suggested change
ToolsLanguageTool
|
||||||||||
- `PRIVATE_FROM_ADMIN_EMAIL`: the email address to use as the from address for admin emails (defaults to `PRIVATE_ADMIN_EMAIL` if not set). | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix punctuation issue: Remove loose punctuation mark. The colon after "PRIVATE_FROM_ADMIN_EMAIL" is unnecessary. -`PRIVATE_FROM_ADMIN_EMAIL`: the email address to use as the from address for admin emails (defaults to `PRIVATE_ADMIN_EMAIL` if not set).
+`PRIVATE_FROM_ADMIN_EMAIL` - the email address to use as the from address for admin emails (defaults to `PRIVATE_ADMIN_EMAIL` if not set). Committable suggestion
Suggested change
ToolsLanguageTool
|
||||||||||
- `PRIVATE_RESEND_API_KEY`: a https://resend.com API key. Note, you'll need to verify your domain with them before you can use their service. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix Markdown issue: Use link syntax for bare URL. The URL should be formatted as a link. -`PRIVATE_RESEND_API_KEY`: a https://resend.com API key. Note, you'll need to verify your domain with them before you can use their service.
+`PRIVATE_RESEND_API_KEY` - an [https://resend.com](https://resend.com) API key. Note, you'll need to verify your domain with them before you can use their service. Committable suggestion
Suggested change
ToolsLanguageTool
Markdownlint
Fix punctuation issue: Remove loose punctuation mark. The colon after "PRIVATE_RESEND_API_KEY" is unnecessary. -`PRIVATE_RESEND_API_KEY`: a https://resend.com API key. Note, you'll need to verify your domain with them before you can use their service.
+`PRIVATE_RESEND_API_KEY` - a https://resend.com API key. Note, you'll need to verify your domain with them before you can use their service. Committable suggestion
Suggested change
ToolsLanguageTool
Markdownlint
|
||||||||||
|
||||||||||
## Add Your Content | ||||||||||
|
||||||||||
After the steps above, you’ll have a working version like the demo page. However, it’s not branded, and doesn’t have your content. The following checklist helps you customize the template to make a SaaS homepage for your company. | ||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# Supabase settings | ||
PUBLIC_SUPABASE_URL='https://REPLACE_ME.supabase.co' | ||
PUBLIC_SUPABASE_ANON_KEY='REPLACE_ME' | ||
PRIVATE_SUPABASE_SERVICE_ROLE='REPLACE_ME' | ||
|
||
# Stripe settings | ||
PRIVATE_STRIPE_API_KEY='REPLACE_ME' | ||
|
||
# settings for email - optional | ||
# PRIVATE_ADMIN_EMAIL='[email protected]' | ||
# PRIVATE_FROM_ADMIN_EMAIL='REPLACE_ME' | ||
# PRIVATE_RESEND_API_KEY='REPLACE_ME' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix grammatical error: "Setup" should be "Set up".
The word "setup" is a noun. The verb form is "set up".
Committable suggestion