forked from trent_larson/crowd-funder-for-time-pwa
Fix Docker build issues and SQL worker configuration
- Fix .dockerignore to allow dist directory for Docker builds - Add uint8arrays dependency for crypto operations - Configure Vite for proper SQL worker bundling with absurd-sql - Update Dockerfile with build context documentation - Fix Nginx configuration for non-root user permissions - Remove conflicting backend proxy configuration - Add SQL worker polyfills to vite.config.common.mts Resolves Docker build failures and ensures proper SQL database functionality in containerized environment.
This commit is contained in:
@@ -80,6 +80,20 @@ export default defineConfig(async ({ mode }) => {
|
||||
sourcemap: mode === 'development' || mode === 'test',
|
||||
// Server configuration inherited from base config
|
||||
// CORS headers removed to allow images from any domain
|
||||
plugins: []
|
||||
plugins: [],
|
||||
// Worker configuration for SQL worker
|
||||
worker: {
|
||||
format: 'es',
|
||||
plugins: () => []
|
||||
},
|
||||
// Optimize dependencies for SQL worker
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'@jlongster/sql.js',
|
||||
'absurd-sql',
|
||||
'absurd-sql/dist/indexeddb-main-thread',
|
||||
'absurd-sql/dist/indexeddb-backend'
|
||||
]
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user