Skip to content

Commit

Permalink
fix(api): sharp esbuild issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapobajza committed Oct 6, 2024
1 parent 684dfad commit aabefe1
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 227 deletions.
2 changes: 1 addition & 1 deletion apps/api/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void (async () => {
bundle: true,
outdir: "dist",
platform: "node",
external: ["sodium-native"],
external: ["sodium-native", "sharp"],
loader: {
".node": "file",
},
Expand Down
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"json-schema-to-ts": "3.1.0",
"lodash.clonedeep": "^4.5.0",
"pg": "8.12.0",
"sharp": "^0.33.5",
"sharp": "0.32.6",
"sodium-native": "4.1.1",
"zod": "3.23.8"
},
Expand Down
6 changes: 2 additions & 4 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ services:

api:
image: ghcr.io/kapobajza/zdnevnik_api:prod
build:
target: prod
depends_on:
postgres_db: !reset null
env_file: ./apps/api/.env.prod
Expand All @@ -21,13 +19,13 @@ services:

web:
image: ghcr.io/kapobajza/zdnevnik_web:prod
build:
target: prod
env_file: ./apps/sveltastic/.env.prod
labels:
- "promtail=true"
deploy:
replicas: 3

volumes:
caddy_data:
caddy_config:
postgres_data: !reset null
2 changes: 0 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ services:
- 5435:5432

volumes:
caddy_data:
caddy_config:
postgres_data:
Loading

0 comments on commit aabefe1

Please sign in to comment.