diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..a99224c --- /dev/null +++ b/vercel.json @@ -0,0 +1 @@ +{ "src": "/[^.]+", "dest": "/", "status": 200 } diff --git a/vite.config.ts b/vite.config.ts index c514f5b..89fc7d8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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'; - } - }, - }, - }, - }, });