Skip to content

Conversation

@guruswarupa
Copy link
Contributor

@guruswarupa guruswarupa commented Jan 8, 2026

Issue

update .env.sample

Description


Scope of Change

Select all applicable areas impacted by this PR:

  • View (UI/UX)
  • API
  • CLI
  • Infra / Deployment
  • Docs
  • Other (specify): ________

Screenshot / Video / GIF (if applicable)

Attach or embed screenshots, screen recordings, or GIFs demonstrating the feature or fix.


Related PRs (if any)

Link any related or dependent PRs across repos.


Additional Notes for Reviewers (optional)

Anything reviewers should know before testing or merging (e.g., environment variables, setup steps).


Developer Checklist

To be completed by the developer who raised the PR.

  • Add valid/relevant title for the PR
  • Self-review done
  • Manual dev testing done
  • No secrets exposed
  • No merge conflicts
  • Docs added/updated (if applicable)
  • Removed debug prints / secrets / sensitive data
  • Unit / Integration tests passing
  • Follows all standards defined in Nixopus Docs

Reviewer Checklist

To be completed by the reviewer before merge.

  • Peer review done
  • No console.logs / fmt.prints left
  • No secrets exposed
  • If any DB migrations, migration changes are verified
  • Verified release changes are production-ready

Summary by CodeRabbit

  • Chores
    • Updated the sample environment configuration to include a new API port variable used by local/dev instances. No functional changes to public APIs or exported interfaces; this is a non-breaking configuration update to help align local setups with the runtime environment.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 8, 2026

📝 Walkthrough

Walkthrough

A single line was added to api/.env.sample: the environment variable SUPERTOKENS_API_PORT=3567 to specify the SuperTokens API port.

Changes

Cohort / File(s) Summary
Configuration Update
api/.env.sample
Added SUPERTOKENS_API_PORT=3567 environment variable

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A tiny change, a port assigned,
3567 dances in the mind.
Sample env now sings in tune,
Quick and small — a config boon! 🎉

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fix: envsample' is vague and does not clearly describe the specific change made to the .env.sample file. Use a more descriptive title that explains the fix, such as 'Add SUPERTOKENS_API_PORT environment variable to .env.sample' or 'Fix: Add missing SUPERTOKENS_API_PORT to .env.sample'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
api/.env.sample (1)

61-62: Fix key ordering and add missing blank line at end of file.

Static analysis flags two issues:

  1. SUPERTOKENS_API_PORT should be declared before SUPERTOKENS_CONNECTION_URI per dotenv-linter conventions
  2. File should end with a blank line
🔧 Proposed fix
 # SuperTokens Connection URI - Same as API Domain for most setups
 # For development: http://localhost:3567
 # For production: https://your-supertokens-core-domain.com
+SUPERTOKENS_API_PORT=3567
 SUPERTOKENS_CONNECTION_URI=http://localhost:3567
-SUPERTOKENS_API_PORT=3567
+
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6bca1c8 and c838cfd.

📒 Files selected for processing (1)
  • api/.env.sample
🧰 Additional context used
🪛 dotenv-linter (4.0.0)
api/.env.sample

[warning] 62-62: [EndingBlankLine] No blank line at the end of the file

(EndingBlankLine)


[warning] 62-62: [UnorderedKey] The SUPERTOKENS_API_PORT key should go before the SUPERTOKENS_CONNECTION_URI key

(UnorderedKey)

@guruswarupa guruswarupa changed the title Fixenvsample Fix: envsample Jan 8, 2026
Co-authored-by: shravan || श्रvan <[email protected]>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
api/.env.sample (1)

62-62: Reorder the SuperTokens API port variable to maintain logical grouping.

The new SUPERTOKENS_API_PORT variable should be placed within the SuperTokens configuration section (lines 45–61) rather than at the end of the file. This maintains consistent organization and follows the dotenv-linter rule for key ordering.

Move this variable to line 47 (after SUPERTOKENS_API_KEY) to group it logically with other SuperTokens settings.

Suggested placement
 # SuperTokens API Key - Generate a secure random string for production
 SUPERTOKENS_API_KEY=NixopusSuperTokensAPIKey
+
+# SuperTokens API Port
+SUPERTOKENS_API_PORT=3567
 
 # SuperTokens API Domain - Where your SuperTokens core is running
 # For development: http://localhost:3567

Then remove line 62 from the end of the file.

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c838cfd and 5fd356b.

📒 Files selected for processing (1)
  • api/.env.sample
🧰 Additional context used
🪛 dotenv-linter (4.0.0)
api/.env.sample

[warning] 62-62: [UnorderedKey] The SUPERTOKENS_API_PORT key should go before the SUPERTOKENS_CONNECTION_URI key

(UnorderedKey)

@guruswarupa guruswarupa changed the base branch from master to feat/develop January 12, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants