summaryrefslogtreecommitdiff
path: root/vite.config.ts
blob: 1616d2b0599ed46a9a8f4314663251d197e16828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';

export default defineConfig({
    resolve: {
        alias: {
            '@': path.resolve(__dirname, 'src'),
            '@hono/node-server': path.resolve(__dirname, 'src/utils/hono-stub.ts'),
            'hono': path.resolve(__dirname, 'src/utils/hono-stub.ts'),
        },
    },
    plugins: [react()],
    define: {
        'process.env': {},
        'global': 'globalThis',
    },
});