- frontend-temp/ 폴더 생성 (Strangler Fig Pattern) - package.json: clsx 추가, 버전 2.0.0 - vite.config.js: @ path alias 추가 - 기본 폴더 구조 생성 (api, components, hooks, pages, stores, utils, constants) - docker-compose.yml: fromis9-frontend-dev 서비스 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
532 B
JavaScript
27 lines
532 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
host: true,
|
|
port: 80,
|
|
allowedHosts: true,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://fromis9-backend:80",
|
|
changeOrigin: true,
|
|
},
|
|
"/docs": {
|
|
target: "http://fromis9-backend:80",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|