2023-01-11 04:54:25 -05:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
2024-09-24 04:22:05 -04:00
|
|
|
devServer: {
|
|
|
|
port: 3000, // default: 3000
|
|
|
|
host: '127.0.0.1', // default: localhost
|
|
|
|
},
|
2023-01-11 04:54:25 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
nitro: {
|
|
|
|
devProxy: {
|
|
|
|
'/api': { target: 'http://127.0.0.1:8787/api' },
|
|
|
|
'/auth': { target: 'http://127.0.0.1:8787/auth' },
|
|
|
|
'/data': { target: 'http://127.0.0.1:8787/data' },
|
|
|
|
'/live': { target: 'http://127.0.0.1:8787/live' },
|
|
|
|
'/1/live': { target: 'http://127.0.0.1:8787/1/live' },
|
|
|
|
'/file': { target: 'http://127.0.0.1:8787/file' },
|
|
|
|
'/hls': { target: 'http://127.0.0.1:8787/hls' },
|
|
|
|
},
|
|
|
|
},
|
2023-01-11 04:54:25 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
ignore: ['**/public/tv-media**', '**/public/Videos**', '**/public/live**', '**/public/home**'],
|
|
|
|
ssr: false,
|
2023-01-11 04:54:25 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
// debug: true,
|
2023-01-11 04:54:25 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
app: {
|
|
|
|
head: {
|
|
|
|
title: 'ffplayout',
|
|
|
|
meta: [
|
|
|
|
{
|
|
|
|
charset: 'utf-8',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'viewport',
|
|
|
|
content: 'width=device-width, initial-scale=1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
hid: 'description',
|
|
|
|
name: 'description',
|
|
|
|
content: 'Frontend for ffplayout, the 24/7 Rust and playlist based streaming solution.',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
link: [
|
|
|
|
{
|
|
|
|
rel: 'icon',
|
|
|
|
type: 'image/x-icon',
|
|
|
|
href: '/favicon.ico',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2023-01-11 04:54:25 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
modules: [
|
|
|
|
'@nuxt/eslint',
|
|
|
|
'@nuxtjs/color-mode',
|
|
|
|
'@nuxtjs/tailwindcss',
|
|
|
|
'@nuxtjs/i18n',
|
|
|
|
'@pinia/nuxt',
|
|
|
|
'@vueuse/nuxt',
|
|
|
|
],
|
2024-04-04 17:28:25 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
css: ['@/assets/scss/main.scss'],
|
2024-04-11 15:34:03 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
colorMode: {
|
|
|
|
preference: 'dark', // default value of $colorMode.preference
|
|
|
|
fallback: 'system', // fallback value if not system preference found
|
|
|
|
hid: 'nuxt-color-mode-script',
|
|
|
|
globalName: '__NUXT_COLOR_MODE__',
|
|
|
|
componentName: 'ColorScheme',
|
|
|
|
classPrefix: '',
|
|
|
|
classSuffix: '',
|
|
|
|
dataValue: 'theme',
|
|
|
|
storageKey: 'theme',
|
|
|
|
},
|
2024-04-11 15:34:03 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
i18n: {
|
|
|
|
locales: [
|
|
|
|
{
|
|
|
|
code: 'de',
|
|
|
|
name: 'Deutsch',
|
|
|
|
file: 'de-DE.js',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'en',
|
|
|
|
name: 'English',
|
|
|
|
file: 'en-US.js',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'pt-br',
|
|
|
|
name: 'Português (BR)',
|
|
|
|
file: 'pt-BR.js',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'ru',
|
|
|
|
name: 'Русский язык (RU)',
|
|
|
|
file: 'ru-RU.js',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
customRoutes: 'config',
|
|
|
|
pages: {
|
|
|
|
player: {
|
|
|
|
de: '/wiedergabe',
|
|
|
|
en: '/player',
|
|
|
|
'pt-br': '/player',
|
|
|
|
ru: '/player',
|
|
|
|
},
|
|
|
|
media: {
|
|
|
|
de: '/medien',
|
|
|
|
en: '/media',
|
|
|
|
'pt-br': '/armazenamento',
|
|
|
|
ru: '/media',
|
|
|
|
},
|
|
|
|
message: {
|
|
|
|
de: '/nachrichten',
|
|
|
|
en: '/message',
|
|
|
|
'pt-br': '/legenda',
|
|
|
|
ru: '/message',
|
|
|
|
},
|
|
|
|
logging: {
|
|
|
|
de: '/protokollierung',
|
|
|
|
en: '/logging',
|
|
|
|
'pt-br': '/registro',
|
|
|
|
ru: '/logging',
|
|
|
|
},
|
|
|
|
configure: {
|
|
|
|
de: '/einstellungen',
|
|
|
|
en: '/configure',
|
|
|
|
'pt-br': '/configurar',
|
|
|
|
ru: '/configure',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
detectBrowserLanguage: {
|
|
|
|
useCookie: true,
|
|
|
|
alwaysRedirect: true,
|
|
|
|
},
|
|
|
|
// debug: true,
|
|
|
|
langDir: 'i18n/locales',
|
|
|
|
defaultLocale: 'en',
|
2023-01-11 07:41:22 -05:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
compilation: {
|
|
|
|
strictMessage: false,
|
|
|
|
},
|
|
|
|
},
|
2024-07-10 03:25:47 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
vite: {
|
|
|
|
build: {
|
|
|
|
chunkSizeWarningLimit: 800000,
|
|
|
|
},
|
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
scss: {
|
|
|
|
silenceDeprecations: ['legacy-js-api'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-10 03:25:47 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
experimental: {
|
|
|
|
payloadExtraction: false,
|
|
|
|
},
|
2024-07-10 03:25:47 -04:00
|
|
|
|
2024-09-24 04:22:05 -04:00
|
|
|
compatibilityDate: '2024-07-10',
|
2024-08-18 10:33:00 -04:00
|
|
|
})
|