From 0a4cde2aab6c6c7f5c7e7137a7242ed586688fda Mon Sep 17 00:00:00 2001 From: Aaron Menezes <123612000+aaron1857@users.noreply.github.com> Date: Tue, 31 Mar 2026 16:26:57 -0500 Subject: [PATCH 1/2] Fix email config for nuxt template --- .env.example | 6 +- .../migrations/20260206183958/migration.sql | 66 ------------------- server/utils/auth.ts | 2 +- 3 files changed, 4 insertions(+), 70 deletions(-) delete mode 100755 prisma/migrations/20260206183958/migration.sql diff --git a/.env.example b/.env.example index 7e94ad7..cfd58f9 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,6 @@ BETTER_AUTH_SECRET="randomly-generated-str" BETTER_AUTH_URL=http://localhost:3000 EMAIL_USER="sample-user@gmail.com" EMAIL_PASS="google-app-pwd" -EMAIL_HOST=smtp.gmail.com - -UPLOAD_STORAGE_PATH="full-path-to-image-store" \ No newline at end of file +EMAIL_FROM=smtp.gmail.com +EMAIL_HOST="sample-user@gmail.com" +UPLOAD_STORAGE_PATH="full-path-to-image-store" diff --git a/prisma/migrations/20260206183958/migration.sql b/prisma/migrations/20260206183958/migration.sql deleted file mode 100755 index 05d2994..0000000 --- a/prisma/migrations/20260206183958/migration.sql +++ /dev/null @@ -1,66 +0,0 @@ --- CreateTable -CREATE TABLE "user" ( - "id" TEXT NOT NULL PRIMARY KEY, - "name" TEXT NOT NULL, - "email" TEXT NOT NULL, - "emailVerified" BOOLEAN NOT NULL DEFAULT false, - "image" TEXT,smtp.example.com - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- CreateTable -CREATE TABLE "session" ( - "id" TEXT NOT NULL PRIMARY KEY, - "expiresAt" DATETIME NOT NULL, - "token" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "ipAddress" TEXT, - "userAgent" TEXT, - "userId" TEXT NOT NULL, - CONSTRAINT "session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "account" ( - "id" TEXT NOT NULL PRIMARY KEY, - "accountId" TEXT NOT NULL, - "providerId" TEXT NOT NULL, - "userId" TEXT NOT NULL, - "accessToken" TEXT, - "refreshToken" TEXT, - "idToken" TEXT, - "accessTokenExpiresAt" DATETIME, - "refreshTokenExpiresAt" DATETIME, - "scope" TEXT, - "password" TEXT, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - CONSTRAINT "account_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "verification" ( - "id" TEXT NOT NULL PRIMARY KEY, - "identifier" TEXT NOT NULL, - "value" TEXT NOT NULL, - "expiresAt" DATETIME NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- CreateIndex -CREATE UNIQUE INDEX "user_email_key" ON "user"("email"); - --- CreateIndex -CREATE INDEX "session_userId_idx" ON "session"("userId"); - --- CreateIndex -CREATE UNIQUE INDEX "session_token_key" ON "session"("token"); - --- CreateIndex -CREATE INDEX "account_userId_idx" ON "account"("userId"); - --- CreateIndex -CREATE INDEX "verification_identifier_idx" ON "verification"("identifier"); diff --git a/server/utils/auth.ts b/server/utils/auth.ts index ceff0cb..eca339e 100644 --- a/server/utils/auth.ts +++ b/server/utils/auth.ts @@ -23,7 +23,7 @@ export const auth = betterAuth({ emailOTP({ async sendVerificationOTP({ email, otp, type }) { await transporter.sendMail({ - from: process.env.EMAIL_USER, + from: process.env.EMAIL_FROM, to: email, subject: 'OTP for nuxt-template', html: `Your OTP is: ${otp}`, From 6dfaa224cf5ef86d95f946b157db73bd21d000dc Mon Sep 17 00:00:00 2001 From: TusharW4ni Date: Sat, 11 Apr 2026 01:42:22 -0500 Subject: [PATCH 2/2] add: github issue templates for bugs and features --- .github/ISSUE_TEMPLATE/bug_report.md | 28 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 24 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..5f23636 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug Report +about: Create a report to help us improve +title: 'Bug: ' +labels: 'bug' +assignees: '' +--- + +### Context / Problem + +[Describe the bug. What is the expected behavior, and what is actually happening? Provide context.] + +### Proposed Solution + +[If you have a solution in mind, describe it here.] + +### Implementation Details / Reproduction Steps + +[Provide steps to reproduce the bug, or implementation details if a fix is known.] + +1. +2. +3. + +### Acceptance Criteria + +- [ ] [Criteria 1 - E.g., The bug no longer occurs when doing X] +- [ ] [Criteria 2] diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..ae9305a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,24 @@ +--- +name: Enhancement / DX Improvement +about: Suggest an idea for this project +title: 'DX/Feature: ' +labels: 'enhancement' +assignees: '' +--- + +### Context / Problem + +[Provide context. Why is this an issue specifically for local development or in the context of an EPICS project? What problem does this solve?] + +### Proposed Solution + +[Provide detailed steps on how to fix or implement it.] + +### Implementation Details + +[If known, provide code snippets or configuration examples showing exactly what needs to change.] + +### Acceptance Criteria + +- [ ] [Criteria 1] +- [ ] [Criteria 2]