mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix: 🐛 Hack a fix for incorrect bundler output
This commit is contained in:
parent
84bdb75d77
commit
03f5965755
2
build.ts
2
build.ts
|
|
@ -36,6 +36,8 @@ await $`sed -i 's|/temp/node_modules|./node_modules|g' dist/**/*.js`;
|
|||
// Replace 'export { toFilter, getLevelFilter, getConsoleSink };' to remove getConsoleSink
|
||||
// Because Bun duplicates the export and it causes a runtime error
|
||||
await $`sed -i 's|export { toFilter, getLevelFilter, getConsoleSink };|export { toFilter, getLevelFilter };|g' dist/**/*.js`;
|
||||
// Delete "var list;"
|
||||
await $`sed -i 's|var list;||g' dist/**/*.js`;
|
||||
|
||||
// Copy Drizzle migrations to dist
|
||||
await $`cp -r drizzle dist/drizzle`;
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@ services:
|
|||
- ./config.cfg:/etc/sonic.cfg
|
||||
- ./store/:/var/lib/sonic/store/
|
||||
image: valeriansaliou/sonic:v1.4.9
|
||||
container_name: lysand-sonic
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- lysand-net
|
||||
|
||||
networks:
|
||||
lysand-net:
|
||||
Loading…
Reference in a new issue