Private
Public Access
1
0

Fix Docker build: add native deps for bcrypt, simplify vite config

- Add python3/make/g++ to Alpine for bcrypt native compilation
- Remove Socket.IO vite plugin (uses SvelteKit aliases unavailable at config level)
- Use prisma db push instead of migrate deploy for initial setup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-25 21:05:45 -05:00
parent 2f398711c8
commit 2c0583d0e4
2 changed files with 7 additions and 18 deletions
+1 -17
View File
@@ -1,23 +1,7 @@
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
import type { Plugin } from 'vite';
function socketIOPlugin(): Plugin {
return {
name: 'socket-io-dev',
configureServer(server) {
if (!server.httpServer) return;
// Dynamic import to avoid bundling socket.io in client
import('./src/socket/index.js').then(({ initSocketIO }) => {
initSocketIO(server.httpServer!);
console.log('Socket.IO dev server initialized');
});
}
};
}
export default defineConfig({
plugins: [tailwindcss(), sveltekit(), socketIOPlugin()]
plugins: [tailwindcss(), sveltekit()]
});