-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathconfig.ts
114 lines (111 loc) · 5.69 KB
/
config.ts
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import themes from "daisyui/src/theming/themes.js";
import { ConfigProps } from "./types/config";
const config = {
// REQUIRED
appName: "Pump",
// REQUIRED: a short description of your app for SEO tags (can be overwritten)
appDescription:
"Responsável por trazer soluções para o mundo de exercício físico auxiliando Personal Trainers.",
// REQUIRED (no https://, not trialing slash at the end, just the naked domain)
domainName: "pump",
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_1ODT8IA56A0EdwEkQ6OcAXYf"
: "need_to_be_configured",
// REQUIRED - Name of the plan, displayed on the pricing page
name: "Plano Básico",
// A friendly description of the plan, displayed on the pricing page. Tip: explain why this plan and not others
description: "Perfeito para quem está começando",
// The price you want to display, the one user will be charged on Stripe.
price: 29.9,
// If you have an anchor price (i.e. $29) that you want to display crossed out, put it here. Otherwise, leave it empty
// priceAnchor: 29,
features: [
{ name: "10 alunos registrados" },
{ name: "10 avaliações registradas" },
{ name: "10 treinos registrados" },
],
},
{
priceId:
process.env.NODE_ENV === "development"
? "price_1ODTDyA56A0EdwEkrGdzHKK9"
: "need_to_be_configured",
// This plan will look different on the pricing page, it will be highlighted. You can only have one plan with isFeatured: true
isFeatured: true,
name: "Plano Avançado",
description: "Você precisa de mais recurso",
price: 39.9,
// priceAnchor: 49,
features: [
{ name: "30 alunos registrados" },
{ name: "30 avaliações registradas" },
{ name: "30 treinos registrados" },
{ name: "Envio de treino/avaliação via email" },
{ name: "24/7 suporte" },
],
},
{
priceId:
process.env.NODE_ENV === "development"
? "price_1ODTFeA56A0EdwEkebAeZlNy"
: "need_to_be_configured",
// This plan will look different on the pricing page, it will be highlighted. You can only have one plan with isFeatured: true
name: "Plano Premium",
description: "Outro patamar",
price: 59.9,
features: [
{ name: "50 alunos registrados" },
{ name: "50 avaliações registradas" },
{ name: "50 treinos registrados" },
{ name: "Envio de treino/avaliação via email" },
{ name: "Treino compartilhável com os alunos" },
{ name: "24/7 suporte" },
],
},
],
},
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 <noreply@mg.shipfa.st>`,
// REQUIRED — Email 'From' field to be used when sending other emails, like abandoned carts, updates etc..
fromAdmin: `Marc at ShipFast <marc@mg.shipfa.st>`,
// 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: "official@gopump.co",
// 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: "marc.louvion@gmail.com",
},
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: "dark",
// REQUIRED — This color will be reflected on the whole app outside of the document (loading bar, Chrome tabs, etc..). By default it takes the primary color from your DaisyUI theme (make sure to update your the theme name after "data-theme=")
// OR you can just do this to use a custom color: main: "#f37055". HEX only.
main: themes[`[data-theme=dark]`]["primary"],
},
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: "/sign-in",
// 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: "/home",
},
} as ConfigProps;
export default config;