Skip to content

Commit

Permalink
Merge pull request #48 from side-project-pokehub/Hun
Browse files Browse the repository at this point in the history
배포 설정 테스트
  • Loading branch information
cdm1263 authored Jan 12, 2024
2 parents 526aa78 + 74443cf commit 04e58d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
1 change: 1 addition & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "src": "/[^.]+", "dest": "/", "status": 200 }
52 changes: 0 additions & 52 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,56 +18,4 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
if (
id.includes('node_modules/react') ||
id.includes('node_modules/react-dom') ||
id.includes('node_modules/react-query') ||
id.includes('node_modules/react-router-dom') ||
id.includes('node_modules/zustand')
) {
return 'react';
}

if (
id.includes('node_modules/antd') ||
id.includes('node_modules/@toast-ui/react-editor') ||
id.includes('node_modules/react-content-loader')
) {
return 'ui-components';
}

if (
id.includes('node_modules/axios') ||
id.includes('node_modules/firebase') ||
id.includes('node_modules/react-query')
) {
return 'data-processing';
}

if (
id.includes('node_modules/dom-to-image') ||
id.includes('node_modules/file-saver')
) {
return 'image-file-processing';
}

if (
id.includes('node_modules/sass') ||
id.includes('node_modules/uuid') ||
id.includes('node_modules/@react-icons/all-files')
) {
return 'styling-utilities';
}

return 'vendor';
}
},
},
},
},
});

0 comments on commit 04e58d8

Please sign in to comment.