-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappConfig.js
More file actions
23 lines (21 loc) · 976 Bytes
/
Copy pathappConfig.js
File metadata and controls
23 lines (21 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const env = (process.env.NODE_ENV || 'development').trim();
const config = {
env: (process.env.NODE_ENV || 'development').trim(),
version: '1.08',
envUrl: env === 'production' ? process.env.ENV_URL : 'http://localhost:3000',
port: env === 'production' ? 5000 : 3000,
sendProductNotificationsAgain: 15, // days
gaTrackingId: env === 'production' ? 'UA-156016719-2' : 'UA-156016719-1',
initialUserData: {
emailNotifications: 1, // BIT
mobileAppNotifications: 0, // BIT
smsNotifications: 0, // BIT
},
validatePatterns: {
passwordPattern: /^(?=.*\d)(?=.*[a-z])[0-9a-zA-Z\d$@$!%*#?&]{6,}$/, // Minimum 6 characters, at least one letter and one number
userNamePattern: /^[_A-z0-9]*((-|\s)*[_A-z0-9])*$/,
urlPattern: /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([/\-\\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/,
pushNotificationTokenPattern: /(ExponentPushToken\[(.*)])/,
},
};
module.exports = config;