Skip to content

Fix/issue 1835#1836

Merged
Priyanshu-byte-coder merged 2 commits into
Priyanshu-byte-coder:mainfrom
shankumar7:fix/issue-1835
Jun 2, 2026
Merged

Fix/issue 1835#1836
Priyanshu-byte-coder merged 2 commits into
Priyanshu-byte-coder:mainfrom
shankumar7:fix/issue-1835

Conversation

@shankumar7
Copy link
Copy Markdown
Contributor

Summary

Fixed widespread E2E test failures caused by a missing NEXTAUTH_SECRET environment variable in the Next.js Edge Runtime when running Playwright in standalone mode.

Closes #1835


Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Updated .github/workflows/e2e.yml to explicitly create a .env.production file during the CI pipeline.
  • Injected NEXTAUTH_SECRET and other required OS environment variables into the build process so they are correctly passed to the Next.js Edge middleware sandbox.

How to Test

Steps for the reviewer to verify this works:

  1. Create or view a pull request.
  2. Navigate to the GitHub Actions tab and inspect the E2E / Playwright smoke tests workflow.
  3. Verify that the previously failing tests (like settings page saves and reflects changes) now pass successfully.
  4. Ensure no regression occurs in unauthenticated routes.

Screenshots (if UI change)

N/A


Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

Accessibility Checklist

  • Proper keyboard navigation tested
  • Responsive UI verified
  • Accessibility labels added where needed

Additional Notes

Next.js standalone mode does not automatically inherit OS-level environment variables in the Edge runtime. Generating .env.production ensures the variables are bundled and accessible to middleware.ts for JWT decryption.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@shankumar7 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:devops GSSoC type bonus: devops (+15 pts) labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Priyanshu-byte-coder Priyanshu-byte-coder added the level2 GSSoC Level 2 - Medium complexity (25 points) label Jun 2, 2026
@Priyanshu-byte-coder Priyanshu-byte-coder merged commit afa0932 into Priyanshu-byte-coder:main Jun 2, 2026
10 of 12 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

🎉 Merged! Thanks for contributing to DevTrack.

If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers.

Keep an eye on open issues for your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution level2 GSSoC Level 2 - Medium complexity (25 points) type:bug GSSoC type bonus: bug fix type:devops GSSoC type bonus: devops (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] E2E Playwright tests are failing due to missing NEXTAUTH_SECRET in Edge Runtime (Standalone Mode)

2 participants