forked from NdoleStudio/httpsms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
157 lines (145 loc) · 4.13 KB
/
nuxt.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: '%s',
title: 'Convert your android phone into an SMS gateway - httpSMS',
htmlAttrs: {
lang: 'en',
},
script: [
{
hid: 'integrations',
src: '/integrations.js',
async: true,
defer: true,
},
],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Use your android phone to send and receive SMS messages using a simple HTTP API.',
},
{ name: 'format-detection', content: 'telephone=no' },
{ hid: 'twitter:site', name: 'twitter:site', content: '@NdoleStudio' },
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary_large_image',
},
{
hid: 'og:title',
name: 'og:title',
content: 'Convert your android phone into an SMS gateway - httpSMS',
},
{
hid: 'og:description',
name: 'og:description',
content:
'Use your android phone to send and receive SMS messages using a simple HTTP API.',
},
{
hid: 'og:image',
name: 'og:image',
content: 'https://httpsms.com/header.png',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'~plugins/filters.ts',
{ src: '~/plugins/vue-glow', ssr: false },
{ src: '~/plugins/chart', ssr: false },
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
'@nuxt/typescript-build',
// https://go.nuxtjs.dev/stylelint
'@nuxtjs/stylelint-module',
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// Simple usage
'@nuxtjs/dotenv',
[
'@nuxtjs/firebase',
{
config: {
apiKey: 'AIzaSyClL8AX2H_F77_n8yu5FgLzBmJTiSM0NsQ',
authDomain: 'httpsms-86c51.firebaseapp.com',
projectId: 'httpsms-86c51',
storageBucket: 'httpsms-86c51.appspot.com',
messagingSenderId: '877524083399',
appId: '1:877524083399:web:430d6a29a0d808946514e2',
measurementId: 'G-EZ5W9DVK8T',
},
services: {
analytics: true,
auth: {
persistence: 'local', // default
initialize: {
onAuthStateChangedAction: 'onAuthStateChanged',
onIdTokenChangedAction: 'onIdTokenChanged',
subscribeManually: false,
},
ssr: false,
},
},
},
],
// Simple Usage
[
'nuxt-highlightjs',
{
style: 'androidstudio',
},
],
'@nuxtjs/sitemap', // always put it at the end
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: process.env.BASE_URL || 'http://localhost:8000',
},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
treeShake: true,
customVariables: ['~/assets/variables.scss'],
defaultAssets: {
icons: 'mdiSvg',
},
theme: {
dark: true,
},
},
sitemap: {
hostname: 'https://httpsms.com',
gzip: true,
exclude: ['/messages', '/settings', '/threads**', '/billing'],
},
publicRuntimeConfig: {
checkoutURL: process.env.CHECKOUT_URL,
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: ['chart.js', 'vue-chartjs'],
},
server: {
port: 3000,
},
}