-
Notifications
You must be signed in to change notification settings - Fork 1
feat: simplify env var usage #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b05e2a5
chore: update development script to set NODE_ENV for improved environ…
wiktoriavh 48f31b9
feat: add development environment support for configuration management
wiktoriavh 0e09848
feat: add environment configuration files for development and production
wiktoriavh 4e7beee
chore: simplify development script by removing NODE_ENV setting
wiktoriavh d967a7a
feat: enhance environment loading by adding dynamic file selection an…
wiktoriavh d9aea1f
feat: add NODE_ENV settings and environment config files for producti…
wiktoriavh 143162f
Merge branch 'main' into feat/use-env-in-dev
wiktoriavh 3502031
refactor: remove unused development environment function and related …
wiktoriavh 3b84703
chore: update docker-compose configuration
wiktoriavh 384c452
chore: update production environment variables for development server
wiktoriavh fb04483
chore: update .gitignore to include .env.development.example and adju…
wiktoriavh b911e2a
chore: remove .env.development file
wiktoriavh 8d620ff
chore: add example development environment configuration file
wiktoriavh 85835e3
chore: standardize environment configuration by replacing .env.local …
wiktoriavh 8292591
chore: consolidate environment configuration by removing .env.develop…
wiktoriavh 0dbe7ca
chore: clean up environment configuration by removing commented-out s…
wiktoriavh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Development Environment Configuration | ||
| # Public values - safe to commit to repository | ||
| # These are Discord IDs for your development/test server | ||
|
|
||
| # Discord Server ID (your dev server) | ||
| SERVER_ID=1403539983821963274 | ||
|
|
||
| # Channel IDs (from your dev server) | ||
| GUIDES_CHANNEL_ID=1426998962635804712 | ||
| REPEL_LOG_CHANNEL_ID=1403540596035027045 | ||
|
|
||
| # Role IDs (from your dev server) | ||
| REPEL_ROLE_ID=1403545113904414842 | ||
| MODERATORS_ROLE_IDS=1428151937534005379 | ||
|
|
||
| # Note: DISCORD_TOKEN & CLIENT_ID should be in .env.local (not committed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| DISCORD_TOKEN="" # Your bot token | ||
| CLIENT_ID="" # Your bot's application ID | ||
| # Local Environment Variables (Secrets) | ||
| # Copy this file to .env.local and fill in your actual values | ||
| # .env.local is gitignored and should NEVER be committed | ||
|
|
||
| SERVER_ID= # Discord Server ID where the bot will operate | ||
| MODERATORS_ROLE_IDS= # Comma separated list of role IDs that are Moderators(Mods, Admins, etc) | ||
| # Discord Bot Token & Application ID (REQUIRED) | ||
| # Get this from: https://discord.com/developers/applications | ||
| DISCORD_TOKEN=your-bot-token-here | ||
| CLIENT_ID=your-bot-application-id | ||
|
|
||
| REPEL_LOG_CHANNEL_ID= # Channel ID where the bot will log repel actions | ||
| REPEL_ROLE_ID= # Role ID assigned to users who can use the repel command | ||
| GUIDES_CHANNEL_ID="" # The ID of the channel where guides will be posted | ||
| # Optional: Override any public config values for local testing | ||
| # Uncomment and modify as needed: | ||
| # SERVER_ID=override-server-id | ||
| # CLIENT_ID=override-client-id | ||
| # GUIDES_CHANNEL_ID=override-channel-id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Production Environment Configuration | ||
| # Public values - safe to commit to repository | ||
| # These are Discord IDs that are publicly visible anyway | ||
|
|
||
| # Discord Server ID | ||
| SERVER_ID=your-prod-server-id | ||
|
|
||
| # Channel IDs | ||
| GUIDES_CHANNEL_ID=your-prod-guides-channel-id | ||
| REPEL_LOG_CHANNEL_ID=your-prod-repel-log-channel-id | ||
|
|
||
| # Role IDs | ||
| REPEL_ROLE_ID=your-prod-repel-role-id | ||
| MODERATORS_ROLE_IDS=your-prod-moderator-role-id-1,your-prod-moderator-role-id-2 | ||
|
|
||
| # Note: DISCORD_TOKEN & CLIENT_ID should be in .env.local (not committed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.