- Migrate from React/TypeScript to vanilla HTML/CSS/JS with Alpine.js - Implement all original functionality: authentication, media queue, OAuth flow - Add auto-loading of media queue on dashboard access - Enhance JWT expiration handling with proper redirects - Improve OAuth callback page with beautiful UI and status updates - Remove unused HTMX dependency - Clean up old React project files - Update README with live demo link and development instructions Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			387 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			387 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { defineConfig } from 'vite';
 | 
						|
 | 
						|
export default defineConfig({
 | 
						|
  root: './',
 | 
						|
  base: '/admin/',
 | 
						|
  server: {
 | 
						|
    host: '::',
 | 
						|
    port: 8080,
 | 
						|
    // Enable CORS for API requests
 | 
						|
    cors: true,
 | 
						|
  },
 | 
						|
  build: {
 | 
						|
    outDir: 'dist',
 | 
						|
    assetsDir: 'assets',
 | 
						|
    rollupOptions: {
 | 
						|
      input: {
 | 
						|
        main: './index.html',
 | 
						|
        callback: './oauth-callback.html'
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}); |