Skip to content

Commit

Permalink
🔧 Chore: SockJS로 인한 VITE 설정 변경 #91
Browse files Browse the repository at this point in the history
  • Loading branch information
gd06070 committed Jan 7, 2025
1 parent 20da617 commit a777fbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
src="//dapi.kakao.com/v2/maps/sdk.js?appkey=%VITE_KAKAO_API_KEY%&libraries=services,drawing,clusterer"
></script>

<script>
const global = globalThis;
</script>

<script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script>
</head>

Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ export default defineConfig({
host: true,
proxy: {
'/api': {
target: 'http://mallangs2-two-env.eba-b7cptgum.ap-northeast-2.elasticbeanstalk.com',
target: 'http://mallangs2-two-env.eba-b7cptgum.ap-northeast-2.elasticbeanstalk.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api/v1'),
},
},
},
include: '**/*.svg?react',
define: { global: 'globalThis' },
});

0 comments on commit a777fbe

Please sign in to comment.