Initial commit: RepoDructor music player
- Nuxt 3 app with glassmorphism design - Music streaming from local files - Player controls with shuffle/repeat - PWA support - Responsive design for mobile - Configured for proxy deployment
This commit is contained in:
80
nuxt.config.ts
Normal file
80
nuxt.config.ts
Normal file
@@ -0,0 +1,80 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
// @ts-check
|
||||
import { defineNuxtConfig } from 'nuxt/config'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-08-02',
|
||||
devtools: { enabled: true },
|
||||
devServer: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
https: false
|
||||
},
|
||||
vite: {
|
||||
server: {
|
||||
hmr: {
|
||||
port: 3000,
|
||||
host: 'musica.nucleoriofrio.com',
|
||||
protocol: 'wss'
|
||||
}
|
||||
}
|
||||
},
|
||||
modules: ['@vueuse/nuxt', '@vite-pwa/nuxt'],
|
||||
css: ['~/assets/css/main.css'],
|
||||
nitro: {
|
||||
experimental: {
|
||||
wasm: true
|
||||
},
|
||||
devProxy: {
|
||||
'/api': {
|
||||
target: 'https://musica.nucleoriofrio.com',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
musicPath: '/music',
|
||||
baseURL: process.env.NODE_ENV === 'development' ? 'https://musica.nucleoriofrio.com' : ''
|
||||
}
|
||||
},
|
||||
pwa: {
|
||||
registerType: 'autoUpdate',
|
||||
workbox: {
|
||||
navigateFallback: '/',
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
|
||||
},
|
||||
client: {
|
||||
installPrompt: true
|
||||
},
|
||||
manifest: {
|
||||
name: 'RepoDructor Music Player',
|
||||
short_name: 'RepoDructor',
|
||||
description: 'A beautiful glassmorphism music player for your local network',
|
||||
theme_color: '#3b82f6',
|
||||
background_color: '#0f172a',
|
||||
display: 'standalone',
|
||||
orientation: 'portrait',
|
||||
scope: '/',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{
|
||||
src: 'icon.svg',
|
||||
sizes: '192x192',
|
||||
type: 'image/svg+xml'
|
||||
},
|
||||
{
|
||||
src: 'icon.svg',
|
||||
sizes: '512x512',
|
||||
type: 'image/svg+xml'
|
||||
},
|
||||
{
|
||||
src: 'icon.svg',
|
||||
sizes: '512x512',
|
||||
type: 'image/svg+xml',
|
||||
purpose: 'any maskable'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user