2021-09-01 20:07:11 -05:00
|
|
|
const pkg = require('./package.json')
|
|
|
|
|
|
|
|
export default {
|
|
|
|
ssr: false,
|
|
|
|
|
|
|
|
env: {
|
2021-09-02 12:19:26 -05:00
|
|
|
PROD: '1',
|
|
|
|
ANDROID_APP_URL: 'https://play.google.com/store/apps/details?id=com.audiobookshelf.app',
|
|
|
|
IOS_APP_URL: ''
|
2021-09-01 20:07:11 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
publicRuntimeConfig: {
|
|
|
|
version: pkg.version
|
|
|
|
},
|
|
|
|
|
|
|
|
head: {
|
2021-11-19 20:00:34 -06:00
|
|
|
title: 'Audiobookshelf',
|
2021-09-01 20:07:11 -05:00
|
|
|
htmlAttrs: {
|
|
|
|
lang: 'en'
|
|
|
|
},
|
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
2021-12-31 16:57:53 -06:00
|
|
|
{ name: 'viewport', content: 'viewport-fit=cover, width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1' },
|
2021-09-01 20:07:11 -05:00
|
|
|
{ hid: 'description', name: 'description', content: '' },
|
|
|
|
{ name: 'format-detection', content: 'telephone=no' }
|
|
|
|
],
|
2022-04-13 20:24:54 -05:00
|
|
|
script: [
|
|
|
|
{
|
|
|
|
src: '/libs/sortable.js'
|
|
|
|
}
|
|
|
|
],
|
2021-09-01 20:07:11 -05:00
|
|
|
link: [
|
2022-05-05 18:25:32 -05:00
|
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
2021-09-01 20:07:11 -05:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
css: [
|
2021-09-04 12:31:00 -05:00
|
|
|
'@/assets/app.css'
|
2021-09-01 20:07:11 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
plugins: [
|
2021-09-04 12:31:00 -05:00
|
|
|
'@/plugins/server.js',
|
2022-03-06 12:53:18 -06:00
|
|
|
'@/plugins/db.js',
|
2021-11-19 20:00:34 -06:00
|
|
|
'@/plugins/localStore.js',
|
2021-09-01 20:07:11 -05:00
|
|
|
'@/plugins/init.client.js',
|
|
|
|
'@/plugins/axios.js',
|
2023-09-15 17:35:44 -05:00
|
|
|
'@/plugins/nativeHttp.js',
|
2022-04-04 19:08:27 -05:00
|
|
|
'@/plugins/capacitor/index.js',
|
2022-04-11 18:38:01 -05:00
|
|
|
'@/plugins/capacitor/AbsAudioPlayer.js',
|
2021-12-04 19:56:29 -06:00
|
|
|
'@/plugins/toast.js',
|
2022-04-08 18:07:31 -05:00
|
|
|
'@/plugins/constants.js',
|
2023-06-24 14:45:25 -05:00
|
|
|
'@/plugins/haptics.js',
|
|
|
|
'@/plugins/i18n.js'
|
2021-09-01 20:07:11 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
components: true,
|
|
|
|
|
|
|
|
buildModules: [
|
|
|
|
'@nuxtjs/tailwindcss',
|
|
|
|
],
|
|
|
|
|
|
|
|
modules: [
|
|
|
|
'@nuxtjs/axios'
|
|
|
|
],
|
|
|
|
|
|
|
|
axios: {},
|
|
|
|
|
|
|
|
build: {
|
|
|
|
babel: {
|
|
|
|
plugins: [['@babel/plugin-proposal-private-property-in-object', { loose: true }]],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|