- Introduced a new HTML documentation page for the oradio API, including a JavaScript file to handle dynamic content and API requests. - Added a CSS file for styling the documentation page. - Implemented an underground station importer script that fetches data from Radio-Browser and writes it to a JSON file. - Created a stats module to compute and manage vote and play statistics for radio stations. - Added a polyfill for modulepreload to ensure compatibility with older browsers.
26 lines
668 B
JavaScript
26 lines
668 B
JavaScript
import { defineConfig } from 'vite';
|
|
import { resolve } from 'node:path';
|
|
|
|
export default defineConfig({
|
|
root: 'web',
|
|
publicDir: false,
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://localhost:4173',
|
|
'/ws': { target: 'ws://localhost:4173', ws: true }
|
|
}
|
|
},
|
|
build: {
|
|
outDir: '../server/public',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
kiosk: resolve(__dirname, 'web/index.html'),
|
|
admin: resolve(__dirname, 'web/admin/index.html'),
|
|
docs: resolve(__dirname, 'web/docs/index.html')
|
|
}
|
|
}
|
|
}
|
|
});
|