-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.ts
More file actions
36 lines (33 loc) · 1.07 KB
/
vite.config.ts
File metadata and controls
36 lines (33 loc) · 1.07 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// import fs from "fs";
import path from "path";
// 로컬 호스트에서 https 실행
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@components": path.resolve(__dirname, "src/components"),
"@hooks": path.resolve(__dirname, "src/hooks"),
"@layout": path.resolve(__dirname, "src/layout"),
"@pages": path.resolve(__dirname, "src/pages"),
"@assets": path.resolve(__dirname, "src/assets"),
"@styles": path.resolve(__dirname, "src/styles"),
"@api": path.resolve(__dirname, "src/api"),
},
},
// server: {
// https: {
// key: fs.readFileSync(path.resolve(__dirname, "localhost-key.pem")),
// cert: fs.readFileSync(path.resolve(__dirname, "localhost.pem")),
// },
// port: 5173,
// },
});
// 배포 서버에서 https 실행
// import { defineConfig } from "vite";
// import react from "@vitejs/plugin-react";
// // https://vitejs.dev/config/
// export default defineConfig({
// plugins: [react()],
// });