-
Notifications
You must be signed in to change notification settings - Fork 111
Update content for environments page (#1008) #1013
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,88 @@ | ||||||||||||||||||
| --- | ||||||||||||||||||
| title: 'Environments' | ||||||||||||||||||
| description: 'Understanding and managing environments in Novu' | ||||||||||||||||||
| icon: 'GitFork' | ||||||||||||||||||
| --- | ||||||||||||||||||
|
|
||||||||||||||||||
| Novu uses environments to separate your workflows and it's data. This lets you safely test changes, like a new workflow, in one environment before moving it to a live production environment. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Types of environments | ||||||||||||||||||
|
|
||||||||||||||||||
| When you create a Novu account, you are provided with a development and production environment by default. You can also create custom environments (on certain plans) to match your team’s workflow. | ||||||||||||||||||
|
|
||||||||||||||||||
| - **Development environment**: Use the development environment to build and test new workflows, layouts, translations, and experiment with different configurations before publishing to other environments. | ||||||||||||||||||
|
|
||||||||||||||||||
| - **Production environment**: The production environment is used to send notifications to your subscribers. To ensure stability and prevent unintended changes, this environment is view-only for workflows, layouts, and translations. Changes are not made here directly, they are made from the development environment and then published to production. | ||||||||||||||||||
|
|
||||||||||||||||||
| - **Custom environment**: Custom environments are only available on <a href="https://novu.co/pricing" target="_blank" rel="noopener noreferrer">Team and Enterprise plans</a>. You can use them to reflect your release process, for example, staging or QA. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Create a custom environment | ||||||||||||||||||
|
|
||||||||||||||||||
| To create a custom environment: | ||||||||||||||||||
|
|
||||||||||||||||||
| 1. Log in to the Novu dashboard. | ||||||||||||||||||
| 2. Go to the [Environments page](https://dashboard.novu.co/environments) in the Novu dashboard. | ||||||||||||||||||
| 3. Click **Create environment**. A menu appears. | ||||||||||||||||||
| 4. Enter your preferred environment name in the **Name** field. | ||||||||||||||||||
| 5. Assign unique colors to easily distinguish between environments. | ||||||||||||||||||
|  | ||||||||||||||||||
| 6. Click **Create environment**. | ||||||||||||||||||
| The new environment is created and is available in the environments list. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## What's unique to each environment? | ||||||||||||||||||
|
|
||||||||||||||||||
| Each environment in Novu has it's own isolated resources, while the development environment has assets that can be published to other environments. | ||||||||||||||||||
|
|
||||||||||||||||||
| Each environment maintains some isolated set of resources, while you can share or promote other assets through publishing. | ||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
+32
to
+37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix possessive pronoun and reduce redundancy in environment overview. Lines 34 and 36 convey similar concepts with slight rewording. Additionally, line 34 contains the same grammar error (it's → its). Consider consolidating these introductory sentences for clarity. -Each environment in Novu has it's own isolated resources, while the development environment has assets that can be published to other environments.
-
-Each environment maintains some isolated set of resources, while you can share or promote other assets through publishing.
+Each environment in Novu has its own isolated resources, while the development environment has assets that can be published to other environments.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| ### Environment-specific resources | ||||||||||||||||||
|
|
||||||||||||||||||
| These resources are completely separate and unique to each environment. Data in one environment has no connection to data in another. They are: | ||||||||||||||||||
|
|
||||||||||||||||||
| - Activity feed | ||||||||||||||||||
| - API keys (application identifier and secret key) | ||||||||||||||||||
| - Integrations (Provider credentials) | ||||||||||||||||||
| - Subscribers | ||||||||||||||||||
| - Topics | ||||||||||||||||||
| - Webhooks | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Publishable assets | ||||||||||||||||||
|
|
||||||||||||||||||
| These assets are managed centrally in the development environment and then published to other environments. | ||||||||||||||||||
| - Layouts | ||||||||||||||||||
| - Translations | ||||||||||||||||||
| - Workflows | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Environment credentials | ||||||||||||||||||
|
|
||||||||||||||||||
| Each environment has two unique identifiers: | ||||||||||||||||||
|
|
||||||||||||||||||
| - **Application Identifier** | ||||||||||||||||||
| - Public ID for client-side apps | ||||||||||||||||||
| - Used with <Method href="/platform/inbox/overview">{`<Inbox />`}</Method> | ||||||||||||||||||
| - Different for each environment | ||||||||||||||||||
| - Safe to expose in frontend code | ||||||||||||||||||
|
|
||||||||||||||||||
| - **API Secret Key** | ||||||||||||||||||
| - Used for backend API authentication | ||||||||||||||||||
| - Keep this secure and never expose publicly | ||||||||||||||||||
| - Different for each environment | ||||||||||||||||||
|
|
||||||||||||||||||
| <Callout>Configure these credentials in your application based on the active environment, similar to how you manage other service credentials.</Callout> | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Publishing changes to other environments | ||||||||||||||||||
|
|
||||||||||||||||||
| Novu provides a publish mechanism that allows you to promote changes from your development environment to production or other custom environments. This process ensures that all changes are deliberate, reviewed, and deployed in a controlled manner. | ||||||||||||||||||
|
|
||||||||||||||||||
| The publishing process bundles all modifications made to workflows, layouts, and translations since the last publish event. | ||||||||||||||||||
|
|
||||||||||||||||||
| You can promote changes to other environments by following these steps: | ||||||||||||||||||
|
|
||||||||||||||||||
| 1. Ensure you are in the **Development** environment. All changes must originate from here. | ||||||||||||||||||
| 2. Click **Publish changes**. A list of available environments appears. | ||||||||||||||||||
|  | ||||||||||||||||||
| 3. Select the environment that you want to publish to. | ||||||||||||||||||
|  | ||||||||||||||||||
| 4. Select the checkboxes next to the workflows that you want to publish. A menu appears, showing all the available workflows. | ||||||||||||||||||
|  | ||||||||||||||||||
| 5. Click the publish button to publish the selected workflows to the selected environment. | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "pages": ["webhooks"] | ||
| "pages": ["environments", "webhooks"] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix possessive pronoun.
Line 7 should use "its" (possessive) instead of "it's" (contraction of "it is").
📝 Committable suggestion
🤖 Prompt for AI Agents