diff --git a/.github/workflows/deploy-ec2.yml b/.github/workflows/deploy-ec2.yml index 7034a23..0a4c961 100644 --- a/.github/workflows/deploy-ec2.yml +++ b/.github/workflows/deploy-ec2.yml @@ -52,11 +52,13 @@ jobs: echo "NODE_ENV=production" >> .env # Append project-specific environment from EC2_ENV secret - # EC2_ENV should contain additional KEY=VALUE lines - echo "${{ secrets.EC2_ENV }}" >> .env + # EC2_ENV should contain additional KEY=VALUE lines. We use a here-doc + # so the secret content is treated as literal text and not executed. + cat <<'EOF' >> .env + ${{ secrets.EC2_ENV }} + EOF - echo "Environment file created (sensitive values masked):" - cat .env | sed 's/\(PASS\|SECRET\|KEY\|TOKEN\|DATABASE_URL\)=.*/\1=***MASKED***/g' || true + echo "Environment file created with EC2_ENV contents appended." - name: Setup SSH run: | diff --git a/src/app/dashboard/juno-engine/email-templates/page.tsx b/src/app/dashboard/juno-engine/email-templates/page.tsx index a047173..9a85135 100644 --- a/src/app/dashboard/juno-engine/email-templates/page.tsx +++ b/src/app/dashboard/juno-engine/email-templates/page.tsx @@ -1,15 +1,9 @@ "use client" import { useEffect, useMemo, useState } from "react" -import { - FileText, - Search, - Plus, - Loader2, - Edit, - Trash2, -} from "lucide-react" +import { FileText, Search, Plus, Loader2, Edit, Trash2 } from "lucide-react" import { renderTemplate } from "@/lib/templates/simpleRenderer" +import { useTheme } from "@/components/ThemeProvider" type TemplateIntent = "general" | "shipping_delay" | "refund_request" | "question" type TemplateMood = "neutral" | "angry" | "confused" | "happy" @@ -58,6 +52,8 @@ export default function EmailTemplatesPage() { const [editing, setEditing] = useState