From 387c2e88feca7f7034b98b5832c066a509d53758 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:45:10 -0500 Subject: [PATCH] update example env, add RedisInsight docker --- .env.example | 4 +++- apps/app/package.json | 2 +- docker/docker-compose.yml | 13 ++++++++++++- packages/db/.gitignore | 2 ++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index b404eb5910..1d9e42f575 100644 --- a/.env.example +++ b/.env.example @@ -24,10 +24,12 @@ COGNITO_CLIENT_ID= COGNITO_CLIENT_SECRET= GOOGLE_PLACES_API_KEY= -NEXT_PUBLIC_GOOGLE_MAPS_API= +NEXT_PUBLIC_GOOGLE_MAPS_API=$GOOGLE_PLACES_API_KEY NEXT_PUBLIC_GA_MEASUREMENT_ID='' +# Vercel edge config +EDGE_CONFIG= ## Storybook Figma Plugin ## diff --git a/apps/app/package.json b/apps/app/package.json index da0b9479b8..1c58b3846e 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -9,7 +9,7 @@ "build:prebuild": "SKIP_ENV_VALIDATION=true tsx ./lib/prebuild.ts", "clean:node": "rm -rf ./node_modules/ || true && rm -rf ./.next || true", "predev": "pnpm -w docker:up", - "dev": "next dev", + "dev": "pnpm with-env next dev", "postdev": "pnpm -w docker:down", "dev:verbose": "NEXT_VERBOSE=1 next dev", "format": "prettier --write --ignore-unknown .", diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index c914c53a3f..ac3990aa7b 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -54,7 +54,6 @@ services: container_name: InReach-redis ports: - '6379:6379' - command: redis-server --save 20 1 --loglevel warning --requirepass password volumes: - cache:/data # Redis serverless proxy (to emulate @vercel/kv) @@ -71,6 +70,17 @@ services: SRH_MODE: env SRH_TOKEN: 7fkVoJi4o/NtjkBTCVPXg4jSC/9Ib6H/ZCmUZfcy0IQ= SRH_CONNECTION_STRING: 'redis://redis:6379' + redis-insight: + container_name: InReach-redis-insight + image: redislabs/redisinsight:latest + pull_policy: always + restart: unless-stopped + depends_on: + - redis + ports: + - 8001:5540 + volumes: + - redis_insight:/db configs: pgAdmin-pgpass: @@ -84,3 +94,4 @@ volumes: pgadmin: {} cache: driver: local + redis_insight: {} diff --git a/packages/db/.gitignore b/packages/db/.gitignore index d6cc7644e9..abf8ebc961 100644 --- a/packages/db/.gitignore +++ b/packages/db/.gitignore @@ -23,6 +23,8 @@ seed/recon/generated/*.json seed/recon/output/**/*.json seed/recon/input/**/*.json +.snaplet/snapshots + prisma/generated prisma/dbml prisma/data-migrations/**/!*.json