2021-09-01 20:07:11 -05:00
|
|
|
const pkg = require('./package.json')
|
|
|
|
|
|
|
|
export default {
|
|
|
|
ssr: false,
|
2024-01-01 10:19:55 -06:00
|
|
|
target: 'static',
|
2024-01-25 17:39:22 -06:00
|
|
|
telemetry: false,
|
2021-09-01 20:07:11 -05:00
|
|
|
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'
|
|
|
|
},
|
2025-01-17 17:06:50 -06:00
|
|
|
meta: [{ charset: 'utf-8' }, { name: 'viewport', content: 'viewport-fit=cover, width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' }],
|
2022-04-13 20:24:54 -05:00
|
|
|
script: [
|
|
|
|
{
|
|
|
|
src: '/libs/sortable.js'
|
|
|
|
}
|
|
|
|
],
|
2025-01-17 17:06:50 -06:00
|
|
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
|
2021-09-01 20:07:11 -05:00
|
|
|
},
|
|
|
|
|
2025-01-17 17:06:50 -06:00
|
|
|
css: ['@/assets/tailwind.css', '@/assets/app.css'],
|
2021-09-01 20:07:11 -05:00
|
|
|
|
2025-01-17 17:06:50 -06:00
|
|
|
plugins: ['@/plugins/server.js', '@/plugins/db.js', '@/plugins/localStore.js', '@/plugins/init.client.js', '@/plugins/axios.js', '@/plugins/nativeHttp.js', '@/plugins/capacitor/index.js', '@/plugins/capacitor/AbsAudioPlayer.js', '@/plugins/toast.js', '@/plugins/constants.js', '@/plugins/haptics.js', '@/plugins/i18n.js'],
|
2021-09-01 20:07:11 -05:00
|
|
|
|
|
|
|
components: true,
|
|
|
|
|
2025-01-17 17:06:50 -06:00
|
|
|
modules: ['@nuxtjs/axios'],
|
2021-09-01 20:07:11 -05:00
|
|
|
|
|
|
|
axios: {},
|
|
|
|
|
|
|
|
build: {
|
2024-01-25 17:39:22 -06:00
|
|
|
postcss: {
|
2025-01-17 17:06:50 -06:00
|
|
|
postcssOptions: {
|
|
|
|
plugins: {
|
|
|
|
tailwindcss: {},
|
|
|
|
autoprefixer: {}
|
|
|
|
}
|
|
|
|
}
|
2024-01-25 17:39:22 -06:00
|
|
|
},
|
2021-09-01 20:07:11 -05:00
|
|
|
babel: {
|
2025-01-17 17:06:50 -06:00
|
|
|
plugins: [['@babel/plugin-proposal-private-property-in-object', { loose: true }]]
|
|
|
|
}
|
2021-09-01 20:07:11 -05:00
|
|
|
}
|
|
|
|
}
|