forked from Nouman159/Criminal-case
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
97 lines (95 loc) · 5.14 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import themes from "daisyui/src/theming/themes.js";
const config = {
// REQUIRED
appName: "TWG Criminal Law",
// REQUIRED: a short description of your app for SEO tags (can be overwritten)
appDescription:
"Tristan Gillespie, a proven battle-tested Plaintiffs litigator with 17 years of courtroom experience and thrives on holding large corporations accountable to consumers.",
// REQUIRED (no https://, not trialing slash at the end, just the naked domain)
domainName: "shipfa.st",
crisp: {
// Crisp website ID. IF YOU DON'T USE CRISP: just remove this => Then add a support email in this config file (mailgun.supportEmail) otherwise customer support won't work.
id: "",
// Hide Crisp by default, except on route "/". Crisp is toggled with <ButtonSupport/>. If you want to show Crisp on every routes, just remove this below
onlyShowOnRoutes: ["/"],
},
stripe: {
// Create multiple plans in your Stripe dashboard, then add them here. You can add as many plans as you want, just make sure to add the priceId
plans: [
{
// REQUIRED — we use this to find the plan in the webhook (for instance if you want to update the user's credits based on the plan)
priceId:
process.env.NODE_ENV === "development"
? "price_1Niyy5AxyNprDp7iZIqEyD2h"
: "price_456",
// REQUIRED - Name of the plan, displayed on the pricing page
name: "Starter",
// A friendly description of the plan, displayed on the pricing page. Tip: explain why this plan and not others
description: "Perfect for small projects",
// The price you want to display, the one user will be charged on Stripe.
price: 79,
// If you have an anchor price (i.e. $29) that you want to display crossed out, put it here. Otherwise, leave it empty
priceAnchor: 99,
features: [
{
name: "NextJS boilerplate",
},
{ name: "User oauth" },
{ name: "Database" },
{ name: "Emails" },
],
},
{
// This plan will look different on the pricing page, it will be highlighted. You can only have one plan with isFeatured: true
isFeatured: true,
priceId:
process.env.NODE_ENV === "development"
? "price_1Nk4AbAxyNprDp7iXEPBvXju"
: "price_456",
name: "Advanced",
description: "You need more power",
price: 99,
priceAnchor: 149,
features: [
{
name: "NextJS boilerplate",
},
{ name: "User oauth" },
{ name: "Database" },
{ name: "Emails" },
{ name: "1 year of updates" },
{ name: "24/7 support" },
],
},
],
},
aws: {
// If you use AWS S3/Cloudfront, put values in here
bucket: "bucket-name",
bucketUrl: `https://bucket-name.s3.amazonaws.com/`,
cdn: "https://cdn-id.cloudfront.net/",
},
mailgun: {
// subdomain to use when sending emails, if you don't have a subdomain, just remove it. Highly recommended to have one (i.e. mg.yourdomain.com or mail.yourdomain.com)
subdomain: "mg",
// REQUIRED — Email 'From' field to be used when sending magic login links
fromNoReply: `ShipFast <[email protected]>`,
// REQUIRED — Email 'From' field to be used when sending other emails, like abandoned carts, updates etc..
fromAdmin: `Marc at ShipFast <[email protected]>`,
// Email shown to customer if need support. Leave empty if not needed => if empty, set up Crisp above, otherwise you won't be able to offer customer support."
supportEmail: "[email protected]",
// When someone replies to supportEmail sent by the app, forward it to the email below (otherwise it's lost). If you set supportEmail to empty, this will be ignored.
forwardRepliesTo: "[email protected]",
},
colors: {
// REQUIRED — The DaisyUI theme to use (added to the main layout.js). Leave blank for default (light & dark mode). If you any other theme than light/dark, you need to add it in config.tailwind.js in daisyui.themes.
theme: "light",
},
auth: {
// REQUIRED — the path to log in users. It's use to protect private routes (like /dashboard). It's used in apiClient (/libs/api.js) upon 401 errors from our API
loginUrl: "/api/auth/signin",
// REQUIRED — the path you want to redirect users after successfull login (i.e. /dashboard, /private). This is normally a private page for users to manage their accounts. It's used in apiClient (/libs/api.js) upon 401 errors from our API & in ButtonSignin.js
callbackUrl: "/dashboard",
},
};
export default config;