import path from 'node:path'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@bigtech-sucks/core': path.resolve(__dirname, '../core/src/index.ts'), }, }, build: { rollupOptions: { // The front door is the generated rating list in public/index.html. // The game is a separate page at /game.html, and will move to its own // subdomain when it becomes its own funnel. input: { game: path.resolve(__dirname, 'game.html') }, }, }, server: { port: 5173, proxy: { '/api': 'http://localhost:3001', }, }, });