Skip to content

Commit

Permalink
fix: base URL 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoonyi committed Jun 30, 2024
1 parent 3bd84f0 commit 3679c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/public/favicon.ico" />
<link rel="stylesheet" href="/src/reset.css" />
<link rel="stylesheet" href="/src/index.css" />
<link rel="stylesheet" href=`${import.meta.env.BASE_URL}/src/reset.css` />
<link rel="stylesheet" href=`${import.meta.env.BASE_URL}/src/index.css` />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CubeIT</title>
<link
Expand All @@ -13,7 +13,7 @@
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
/>
<script defer type="module" src="/src/App.js"></script>
<script defer type="module" src=`${import.meta.env.BASE_URL}/src/App.js`></script>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default ({ mode }) => {
const env = loadEnv(mode, process.cwd());

return defineConfig({
base: '/idle-intranet-service',
base: process.env.BASE_URL || '/',
server: {
proxy: {
'/api': {
Expand Down

0 comments on commit 3679c0a

Please sign in to comment.