23 lines
664 B
TypeScript
23 lines
664 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { bgm } from '@tts/bgm';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
bgm({ root: fileURLToPath(new URL('../../games', import.meta.url)) }),
|
|
],
|
|
server: {
|
|
// Proxy API calls to the Hono backend during development.
|
|
proxy: {
|
|
'/search': 'http://localhost:3000',
|
|
'/items': 'http://localhost:3000',
|
|
'/health': 'http://localhost:3000',
|
|
'/asset': 'http://localhost:3000',
|
|
'/trace': 'http://localhost:3000',
|
|
},
|
|
},
|
|
}); |