Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
"devDependencies": {
"@clawe/eslint-config": "workspace:*",
"@clawe/typescript-config": "workspace:*",
"eslint": "^9.39.1",
"@types/node": "^22.0.0",
"eslint": "^9.39.1",
"pino-pretty": "^13.1.3",
"tsx": "^4.19.0",
"typescript": "5.9.2",
"vitest": "^4.0.0"
Expand Down
10 changes: 10 additions & 0 deletions apps/watcher/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import pino from "pino";

const isDev = process.env.NODE_ENV !== "production";

export const logger = pino({
level: process.env.LOG_LEVEL || "info",
name: "watcher",
...(isDev && {
transport: {
target: "pino-pretty",
options: {
colorize: true,
},
},
}),
});
4 changes: 3 additions & 1 deletion apps/web/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ export async function proxy(request: NextRequest) {
}

export const config = {
matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"],
matcher: [
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:png|jpg|jpeg|gif|svg|ico|webp|mp4|webm|woff2?|ttf|eot)$).*)",
],
};
2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
node = "latest"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"scripts": {
"build": "dotenv -e .env -- turbo run build",
"dev": "dotenv -e .env -- turbo run dev",
"dev:docker": "pnpm --filter @clawe/cli build && pnpm --filter @clawe/squadhub-extensions build && docker compose up --build squadhub",
"build:docker": "pnpm --filter @clawe/cli build && docker compose build --no-cache squadhub",
"dev:docker": "pnpm --filter @clawe/cli... build && pnpm --filter @clawe/squadhub-extensions... build && docker compose up --build squadhub",
"build:docker": "pnpm --filter @clawe/cli... build && docker compose build --no-cache squadhub",
"debug": "dotenv -e .env -- turbo run debug",
"dev:web": "dotenv -e .env -- turbo run dev --filter=@clawe/web",
"convex:dev": "dotenv -e .env -- turbo run dev --filter=@clawe/backend",
Expand Down
86 changes: 86 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://v2-7-6.turborepo.dev/schema.json",
"ui": "tui",
"globalEnv": ["ENVIRONMENT", "CLAWE_EDITION"],
"globalEnv": ["ENVIRONMENT", "CLAWE_EDITION", "NODE_ENV"],
"globalPassThroughEnv": [
"CONVEX_URL",
"SQUADHUB_URL",
Expand Down