-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
32 lines (29 loc) · 1.09 KB
/
vite.config.ts
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
import path from "path"
import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
root: "./src",
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
build: {
outDir: "../dist",
},
server: {
host: process.env.ZUKE_HOST || "0.0.0.0", // This app is designed to run in a container
port: parseInt(process.env.ZUKE_PORT || "3000"),
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
DEFAULT_ENDPOINT_URL: JSON.stringify(process.env.ZUKE_S3_DEFAULT_ENDPOINT_URL || "https://s3.ap-northeast-1.amazonaws.com"),
DEFAULT_BUCKET_NAME: JSON.stringify(process.env.ZUKE_S3_DEFAULT_BUCKET_NAME || ""),
DEFAULT_ACCESS_KEY_ID: JSON.stringify(process.env.ZUKE_S3_DEFAULT_ACCESS_KEY_ID || ""),
DEFAULT_SECRET_ACCESS_KEY: JSON.stringify(process.env.ZUKE_S3_DEFAULT_SECRET_ACCESS_KEY || ""),
DEFAULT_HTTP_PROXY: JSON.stringify(process.env.ZUKE_S3_DEFAULT_HTTP_PROXY || ""),
},
base: process.env.ZUKE_BASE_URL || "/",
})