api ulandi
This commit is contained in:
@@ -5,11 +5,23 @@ import { defineConfig } from "vite";
|
|||||||
import tsconfigPaths from "vite-tsconfig-paths";
|
import tsconfigPaths from "vite-tsconfig-paths";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), tailwindcss(), tsconfigPaths()],
|
plugins: [
|
||||||
|
react(), // React uchun
|
||||||
|
tailwindcss(), // Tailwind CSS integratsiyasi
|
||||||
|
tsconfigPaths(), // @ alias yo‘llarini avtomatik o‘qish
|
||||||
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
|
alias: {
|
||||||
|
"@": path.resolve(__dirname, "./src"),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
allowedHosts: ["71ad80caca04.ngrok-free.app"],
|
host: true, // Lokal tarmoqda test uchun
|
||||||
|
port: 5173, // Default port
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
outDir: "dist", // Vercel build chiqishini shu papkadan oladi
|
||||||
|
sourcemap: false, // Agar kerak bo‘lmasa o‘chirib qo‘ying
|
||||||
|
},
|
||||||
|
base: "./", // <— Muhim: nisbiy yo‘l, Vercel’da assetlar to‘g‘ri yuklanadi
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user