Files
CatsOfMastodonGo-Admin/vite.config.js
Mohammad Mahdi 803687738e feat: Convert React application to HTML/CSS/JS with Alpine.js
- 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>
2025-09-25 21:45:01 +03:30

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'
}
}
}
});