-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
46 lines (45 loc) · 1.41 KB
/
vite.config.ts
File metadata and controls
46 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import { defineConfig } from 'vite';
// https://vite.dev/config/
export default defineConfig({
base: '/',
preview: {
port: 3000,
strictPort: true,
},
server: {
host: true,
port: 3000,
origin: 'http://0.0.0.0:3000',
strictPort: true,
allowedHosts: [
"7a93b4c1bde2.ngrok-free.app",
"fccd5be1b946.ngrok-free.app",
"d1f6d6cc6042.ngrok-free.app",
"a44e7b19701e.ngrok-free.app"]
},
plugins: [
react(),
tailwindcss(),
],
resolve: {
alias: {
'@': path.resolve(__dirname,'./src'),
'@api': path.resolve(__dirname, './src/api'),
'@assets': path.resolve(__dirname, './src/assets'),
'@components': path.resolve(__dirname, './src/components'),
'@context': path.resolve(__dirname, './src/context'),
'@db': path.resolve(__dirname, './src/db'),
'@features': path.resolve(__dirname, './src/features'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@routes': path.resolve(__dirname, './src/routes'),
'@services': path.resolve(__dirname, './src/services'),
'@store': path.resolve(__dirname, './src/store'),
'@utils': path.resolve(__dirname, './src/utils'),
'@views': path.resolve(__dirname, './src/views'),
},
},
});