feat: enhance module resolution and improve API error handling

This commit is contained in:
Peter Wood
2025-05-17 21:45:43 -04:00
parent cf99168f8f
commit 9382e41a55
8 changed files with 96 additions and 51 deletions

View File

@@ -15,6 +15,15 @@ export default defineConfig({
vite: {
resolve: {
alias: {
'@': '/src',
'@components': '/src/components',
'@layouts': '/src/layouts',
'@data': '/src/data',
'@pages': '/src/pages',
'@styles': '/src/styles',
'@stores': '/src/stores',
'@utils': '/src/utils',
'@types': '/src/types.ts',
// Use the browser version of react-dom/server for client-side rendering
'react-dom/server.browser': 'react-dom/cjs/react-dom-server.browser.production.min.js',
},