forked from jeremycoder/nuxt-iam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
55 lines (45 loc) · 1.67 KB
/
nuxt.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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
// IAM token secrets. Please rotate every 2 - 4 weeks
iamAccessTokenSecret: process.env.IAM_ACCESS_TOKEN_SECRET,
iamRefreshTokenSecret: process.env.IAM_REFRESH_TOKEN_SECRET,
iamResetTokenSecret: process.env.IAM_RESET_TOKEN_SECRET,
iamVerifyTokenSecret: process.env.IAM_VERIFY_TOKEN_SECRET,
// Public Url
iamPublicUrl: process.env.IAM_PUBLIC_URL,
// IAM Emailer
iamEmailer: process.env.IAM_EMAILER,
// nodemailer-service
iamNodemailerService: process.env.IAM_NODEMAILER_SERVICE,
iamNodemailerServiceSender: process.env.IAM_NODEMAILER_SERVICE_SENDER,
iamNodemailerServicePassword: process.env.IAM_NODEMAILER_SERVICE_PASSWORD,
// nodemailer-smtp
iamNodemailerSmtpHost: process.env.IAM_NODEMAILER_SMTP_HOST,
iamNodemailerSmtpPort: process.env.IAM_NODEMAILER_SMTP_PORT,
iamNodemailerSmtpSender: process.env.IAM_NODEMAILER_SMTP_SENDER,
iamNodemailerSmtpPassword: process.env.IAM_NODEMAILER_SMTP_PASSWORD,
// IAM SendGrid
iamSendGridApiKey: process.env.IAM_SENDGRID_API_KEY,
iamSendgridSender: process.env.IAM_SENDGRID_SENDER,
// GOOGLE CLIENT ID
iamGoogleClientId: process.env.IAM_GOOGLE_CLIENT_ID,
// Do not put secret information here
public: {
iamVerifyRegistrations: process.env.IAM_VERIFY_REGISTRATIONS,
iamAllowGoogleAuth: process.env.IAM_ALLOW_GOOGLE_AUTH,
},
},
// Modules
modules: [
"nuxt-vue3-google-signin",
"@pinia/nuxt",
],
// Google sign in
googleSignIn: {
clientId: process.env.IAM_GOOGLE_CLIENT_ID,
},
typescript: {
shim: false,
},
});