Skip to content

Commit d87da89

Browse files
committed
chore: updated uws
1 parent 59278de commit d87da89

5 files changed

Lines changed: 22 additions & 4 deletions

File tree

_ultimate-express/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```
2+
pnpm install
3+
pnpm run dev
4+
```
5+
6+
```
7+
open http://localhost:5173
8+
```

_ultimate-express/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ globalThis.tryCatch = (fn: () => any) => {
1414
} catch (err) {
1515
if (!(err instanceof Error)) {
1616
if (err instanceof Object) {
17-
return { error: JSON.stringify(err) };
17+
err = JSON.stringify(err);
1818
}
19+
20+
// @ts-expect-error
21+
err = new Error(err || "no error message");
1922
}
2023

2124
return { error: err };

_worker/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM golang:1.23 AS build-go
1212
WORKDIR /app
1313
COPY . .
1414
RUN go mod download
15-
RUN GOOS=js GOARCH=wasm go build -ldflags='-s -w' -o ./bin/app.wasm ./pkg/main.go
15+
RUN GOOS=js GOARCH=wasm go build -o ./bin/app.wasm ./pkg/main.go
1616

1717
FROM base AS build
1818
COPY . .
@@ -21,7 +21,6 @@ COPY --from=build-go /app/bin/app.wasm /app/bin/app.wasm
2121
RUN pnpm run build:js
2222

2323
FROM base
24-
RUN apt update && apt install curl -y
2524
COPY migrations migrations
2625
COPY package.json package.json
2726
COPY wrangler.toml wrangler.toml
@@ -30,6 +29,5 @@ COPY --from=build /app/dist .
3029
COPY --from=build-go /app/bin bin
3130

3231
EXPOSE 5173
33-
HEALTHCHECK --interval=30s --timeout=30s --retries=3 --start-period=3s --start-interval=150ms CMD curl -f http://localhost:5173/health || exit 1
3432
RUN pnpm add wrangler
3533
CMD ["pnpm", "start"]

_worker/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```
2+
pnpm install
3+
pnpm run dev
4+
```
5+
6+
```
7+
open http://localhost:5173
8+
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@cloudflare/vite-plugin": "^1.12.0",
2929
"@cloudflare/vitest-pool-workers": "^0.8.67",
3030
"@faker-js/faker": "^10.0.0",
31+
"@types/bun": "^1.2.21",
3132
"@types/node": "^24.3.0",
3233
"vite": "^7.1.3",
3334
"vite-plugin-watch": "^0.3.1",

0 commit comments

Comments
 (0)