Spaces:
Paused
Paused
File size: 5,822 Bytes
83a59ca | 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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-01-01',
ssr: false,
modules: [
'@nuxt/eslint',
'vuetify-nuxt-module',
'@pinia/nuxt',
'@nuxtjs/google-fonts',
'@nuxtjs/seo',
],
googleFonts: {
families: {
Roboto: [100, 300, 400, 500, 700, 900],
},
display: 'swap',
download: true,
},
css: ['vuetify/styles', 'v-phone-input/styles'],
site: {
url: process.env.APP_URL || 'https://httpsms.com',
name: process.env.APP_NAME || 'httpSMS',
description:
'Turn your Android phone into an SMS gateway. Send and receive text messages worldwide with a simple HTTP API — no SMS provider or short code required.',
defaultLocale: 'en',
},
// Authenticated app routes that should never appear in search engines or the
// sitemap. The marketing/blog/legal pages remain public and indexable.
robots: {
disallow: [
'/messages',
'/threads',
'/settings',
'/billing',
'/bulk-messages',
'/heartbeats',
'/phone-api-keys',
'/search-messages',
],
},
sitemap: {
exclude: [
'/messages',
'/threads',
'/threads/**',
'/settings',
'/billing',
'/bulk-messages',
'/heartbeats/**',
'/phone-api-keys',
'/search-messages',
'/login',
],
},
// The app ships as a client-rendered SPA (ssr: false) served statically, so
// runtime Satori OG-image generation is not available. Curated static OG
// images are set per page instead.
ogImage: {
enabled: false,
},
// Static download assets in /public are valid at runtime but are not Nuxt
// routes, so exclude them from link validation to avoid false positives.
linkChecker: {
excludeLinks: ['/templates/**'],
},
build: {
transpile: ['vuetify', 'chart.js', 'vue-chartjs', 'v-phone-input'],
},
vite: {
define: {
'process.env.DEBUG': false,
},
optimizeDeps: {
include: [
'@mdi/js',
'chartjs-adapter-moment',
'date-fns',
'firebase/app',
'firebase/auth',
'highlight.js/lib/core',
'libphonenumber-js',
'pusher-js',
'qrcode',
],
},
},
vuetify: {
moduleOptions: {
prefixComposables: true,
},
vuetifyOptions: {
theme: {
defaultTheme: 'dark',
},
icons: {
defaultSet: 'mdi-svg',
},
},
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:8000',
clientVersion: process.env.GITHUB_SHA || 'dev',
appUrl: process.env.APP_URL || 'https://httpsms.com',
appName: process.env.APP_NAME || 'HTTP SMS',
appGithubUrl:
process.env.APP_GITHUB_URL || 'https://github.com/NdoleStudio/httpsms',
appDocumentationUrl:
process.env.APP_DOCUMENTATION_URL || 'https://docs.httpsms.com',
appDownloadUrl:
process.env.APP_DOWNLOAD_URL || 'https://apk.httpsms.com/HttpSms.apk',
appEnv: process.env.APP_ENV || 'production',
checkoutUrl: process.env.CHECKOUT_URL || '',
enterpriseCheckoutUrl: process.env.ENTERPRISE_CHECKOUT_URL || '',
cloudflareTurnstileSiteKey:
process.env.CLOUDFLARE_TURNSTILE_SITE_KEY || '',
pusherKey: process.env.PUSHER_KEY || '',
pusherCluster: process.env.PUSHER_CLUSTER || '',
firebaseApiKey: process.env.FIREBASE_API_KEY || '',
firebaseAuthDomain: process.env.FIREBASE_AUTH_DOMAIN || '',
firebaseProjectId: process.env.FIREBASE_PROJECT_ID || '',
firebaseStorageBucket: process.env.FIREBASE_STORAGE_BUCKET || '',
firebaseMessagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID || '',
firebaseAppId: process.env.FIREBASE_APP_ID || '',
firebaseMeasurementId: process.env.FIREBASE_MEASUREMENT_ID || '',
},
},
nitro: {
prerender: {
routes: [],
failOnError: false,
},
},
routeRules: {
'/messages': { robots: false },
'/threads': { robots: false },
'/threads/**': { robots: false },
'/settings': { robots: false },
'/billing': { robots: false },
'/bulk-messages': { robots: false },
'/heartbeats/**': { robots: false },
'/phone-api-keys': { robots: false },
'/search-messages': { robots: false },
},
app: {
head: {
titleTemplate: '%s',
title: 'Convert your android phone into an SMS gateway - httpSMS',
htmlAttrs: { lang: 'en' },
script: [
{ src: '/integrations.js', async: true, defer: true },
{
src: 'https://lmsqueezy.com/affiliate.js',
async: true,
defer: true,
},
{
src: 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit',
},
],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'description',
content:
'Use your android phone to send and receive SMS messages using a simple HTTP API.',
},
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'twitter:site', content: '@NdoleStudio' },
{ name: 'twitter:card', content: 'summary_large_image' },
{
property: 'og:title',
content: 'Convert your android phone into an SMS gateway - httpSMS',
},
{
property: 'og:description',
content:
'Use your android phone to send and receive SMS messages using a simple HTTP API.',
},
{
property: 'og:image',
content: 'https://httpsms.com/header.png',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
},
})
|