ASCIInator/vite.config.js
dev a95c184be7 fix: Fastify on 0.0.0.0, remove vueDevTools, nginx API proxy config
- Fastify listens on 0.0.0.0:3050 (was 127.0.0.1, blocked nginx proxy)
- Remove vite-plugin-vue-devtools (was causing silent page reloads)
- Add asciinator.conf with working nginx config (API proxy strips /api/ prefix)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 11:26:18 +00:00

26 lines
520 B
JavaScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
server: {
host: '0.0.0.0',
allowedHosts: ['asciinator.waynehayesdevelopment.com'],
proxy: {
'/api': {
target: 'http://localhost:3050',
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
})