import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  base: '/heatmap/',
  plugins: [react()],
  server: {
    host: true,
    fs: {
      strict: false
    },
    allowedHosts: [
      'floke-ai.duckdns.org'
    ],
    proxy: {
      '/api': {
        target: 'http://heatmap-backend:8000',
        changeOrigin: true,
      },
    }
  }
})
