24 lines
630 B
TypeScript
24 lines
630 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(), tsconfigPaths()],
|
|
resolve: {
|
|
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
|
|
},
|
|
define: {
|
|
"process.env": {},
|
|
},
|
|
server: {
|
|
port: 5174,
|
|
host: true, // barcha hostlarga ruxsat
|
|
allowedHosts: [
|
|
"worth-fathers-turned-diamonds.trycloudflare.com", // ngrok host qo'shildi
|
|
],
|
|
},
|
|
});
|