Openstatus www.openstatus.dev

chore: dx status-page env (#1413)

* chore: dx status-page env

* fix: tsconfig exclude env

authored by

Maximilian Kaske and committed by
GitHub
153b6ce5 662821ee

+113 -2
+79
apps/dashboard/.env.example
··· 1 + # RESEND for email 2 + RESEND_API_KEY=resend-api-key 3 + 4 + # UPSTASH for queue 5 + QSTASH_CURRENT_SIGNING_KEY=qstash-current-signing-key 6 + QSTASH_NEXT_SIGNING_KEY=qstash-next-signing-key 7 + QSTASH_TOKEN=qstash-token 8 + QSTASH_URL=https://qstash.upstash.io/v1/publish/ 9 + 10 + # UPSTASH redis for waiting list 11 + UPSTASH_REDIS_REST_URL=test 12 + UPSTASH_REDIS_REST_TOKEN=test 13 + 14 + # TINY BIRD for time series data (trackers) 15 + TINY_BIRD_API_KEY=tiny-bird-api-key 16 + 17 + # TURSO SQLITE 18 + DATABASE_URL=http://127.0.0.1:8080 19 + DATABASE_AUTH_TOKEN=any-token 20 + 21 + # Solves 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', see https://github.com/nextauthjs/next-auth/issues/3580 22 + # NODE_TLS_REJECT_UNAUTHORIZED="0" 23 + 24 + # For vercel upload 25 + BLOB_READ_WRITE_TOKEN=blob-read-write-token 26 + 27 + # STRIPE 28 + NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= 29 + STRIPE_SECRET_KEY= 30 + STRIPE_WEBHOOK_SECRET_KEY= 31 + 32 + # Custom Domains 33 + PROJECT_ID_VERCEL= 34 + TEAM_ID_VERCEL= 35 + VERCEL_AUTH_BEARER_TOKEN= 36 + 37 + NEXT_PUBLIC_URL= 38 + 39 + NEXT_PUBLIC_SENTRY_DSN='' 40 + 41 + # Unkey 42 + UNKEY_API_ID= 43 + UNKEY_TOKEN= 44 + 45 + # GCP Messaging Queue 46 + GCP_PROJECT_ID= 47 + GCP_LOCATION= 48 + GCP_CLIENT_EMAIL= 49 + GCP_PRIVATE_KEY= 50 + CRON_SECRET= 51 + 52 + EXTERNAL_API_URL= 53 + 54 + PLAYGROUND_UNKEY_API_KEY= 55 + 56 + # RUM server with separate clickhouse for self-host 57 + CLICKHOUSE_URL= 58 + CLICKHOUSE_USERNAME= 59 + CLICKHOUSE_PASSWORD= 60 + 61 + AUTH_SECRET=secret 62 + AUTH_DRIZZLE_URL=file:./../../openstatus-dev.db 63 + AUTH_GITHUB_ID= 64 + AUTH_GITHUB_SECRET= 65 + AUTH_GOOGLE_ID= 66 + AUTH_GOOGLE_SECRET= 67 + 68 + PAGERDUTY_APP_ID= 69 + 70 + SLACK_SUPPORT_WEBHOOK_URL= 71 + 72 + WORKSPACES_LOOKBACK_30= 73 + WORKSPACES_HIDE_URL= 74 + 75 + # https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#loose-mode 76 + TURBO_ENV_MODE=loose 77 + 78 + NEXT_PUBLIC_OPENPANEL_CLIENT_ID=something 79 + OPENPANEL_CLIENT_SECRET=something
+2
apps/dashboard/env.ts
··· 1 + const file = Bun.file("./.env.example"); 2 + await Bun.write("./.env", file);
+1 -1
apps/dashboard/tsconfig.json
··· 24 24 } 25 25 }, 26 26 "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 27 - "exclude": ["node_modules"] 27 + "exclude": ["node_modules", "env.ts"] 28 28 }
+19
apps/status-page/.env.example
··· 1 + # UPSTASH redis for waiting list 2 + UPSTASH_REDIS_REST_URL=test 3 + UPSTASH_REDIS_REST_TOKEN=test 4 + 5 + # TINY BIRD for time series data (trackers) 6 + TINY_BIRD_API_KEY=tiny-bird-api-key 7 + 8 + # TURSO SQLITE 9 + DATABASE_URL=http://127.0.0.1:8080 10 + DATABASE_AUTH_TOKEN=any-token 11 + 12 + NEXT_PUBLIC_SENTRY_DSN='' 13 + 14 + 15 + # https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#loose-mode 16 + TURBO_ENV_MODE=loose 17 + 18 + NEXT_PUBLIC_OPENPANEL_CLIENT_ID=something 19 + OPENPANEL_CLIENT_SECRET=something
+2
apps/status-page/env.ts
··· 1 + const file = Bun.file("./.env.example"); 2 + await Bun.write("./.env", file);
+1
apps/status-page/package.json
··· 3 3 "version": "1.0.0", 4 4 "private": true, 5 5 "scripts": { 6 + "env": "bun env.ts", 6 7 "dev": "next dev --turbopack", 7 8 "build": "next build", 8 9 "start": "next start",
+1 -1
apps/status-page/tsconfig.json
··· 24 24 } 25 25 }, 26 26 "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 27 - "exclude": ["node_modules"] 27 + "exclude": ["node_modules", "env.ts"] 28 28 }
+2
package.json
··· 10 10 "lint:fix": "pnpm biome lint --write --unsafe .", 11 11 "lint:turbo": "turbo run lint", 12 12 "dev:web": "turbo run dev --filter='./apps/web' --filter='./packages/db'", 13 + "dev:status-page": "turbo run dev --filter='./apps/status-page' --filter='./packages/db'", 14 + "dev:dashboard": "turbo run dev --filter='./apps/dashboard' --filter='./packages/db'", 13 15 "dx": "turbo run dx", 14 16 "tsc": "tsc", 15 17 "test": "turbo run test"
+6
turbo.json
··· 32 32 "cache": false, 33 33 "dependsOn": ["@openstatus/react#build"] 34 34 }, 35 + "@openstatus/status-page#dev": { 36 + "cache": false 37 + }, 38 + "@openstatus/dashboard#dev": { 39 + "cache": false 40 + }, 35 41 "test": { 36 42 "cache": false 37 43 },