Skip to content

Commit 6650711

Browse files
authored
fix: Switching in View Mode (#2815)
## Description Provide a concise summary of the changes made in this pull request - ## Pull request type Check the appropriate box: - [ ] Review Fixes - [ ] Documentation Overhaul - [ ] Feature/Story - Link one or more Engineering Tickets * - [ ] A-Force - [ ] Error in documentation - [ ] Maintenance ## Documentation tickets Link to one or more documentation tickets: - ## Checklist From the below options, select the ones that are applicable: - [ ] Checked for Grammarly suggestions. - [ ] Adhered to the writing checklist. - [ ] Adhered to the media checklist. - [ ] Verified and updated cross-references or added redirect rules. - [ ] Tested the redirect rules on deploy preview. - [ ] Validated the modifications made to the content on the deploy preview. - [ ] Validated the CSS modifications on different screen sizes.
1 parent 6d0c36c commit 6650711

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

website/docs/connect-data/how-to-guides/setup-datasource-environments.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,52 @@ SaaS integrations such as Google Sheets, HubSpot, Twilio, and Airtable do not su
5454

5555
## Switch environments
5656

57+
You can switch between Staging and Production environments to configure the application to execute queries in the selected environment.
58+
59+
#### Switching in Edit Mode
60+
61+
In Edit and Preview modes, select the environment from the bottom left corner of the screen. Switching environments in Edit mode does not affect the deployed version of the app, as the Production environment is always used for the deployed version.
62+
63+
<dd>
64+
5765
<ZoomImage
5866
src="/img/switch-img-.png"
5967
alt="Switch Environments"
6068
caption="Switch Environments"
6169
/>
6270

63-
Select the environment on the bottom left corner of the screen to configure the application to execute queries in the Staging or Production environments. Switching between environments in the *Edit mode* does not affect the deployed version of the app, as the Production environment is always used for the deployed version.
71+
</dd>
72+
73+
#### Switching in View Mode
74+
75+
In the app’s *View mode*, switch environments by adding a query parameter to the URL:
76+
77+
- Production: To use the Production environment, add the following query parameter to the app URL:
78+
79+
<dd>
80+
81+
```js
82+
?environment=production
83+
// Example: https://app.appsmith.com/app/customer-dashboard?environment=production
84+
```
85+
86+
</dd>
87+
88+
89+
- Staging: To switch to the Staging environment, modify the URL as follows:
90+
91+
<dd>
92+
93+
```js
94+
?environment=staging
95+
// Example: https://app.example.com/app/customer-dashboard?environment=staging
96+
```
97+
98+
</dd>
99+
64100
65-
You can switch between Staging and Production environments in the *Edit* and *Preview* modes. For more information on permissions, you can refer to the [Granular Access Control](/advanced-concepts/granular-access-control/reference/permissions).
101+
Access to environments is restricted based on user permissions, ensuring that only authorized users can view or interact with the data. For more information on permissions, you can refer to the [Granular Access Control](/advanced-concepts/granular-access-control/reference/permissions).
66102
67-
With this, you can create queries and switch between environments. As you toggle between environments, the queries would automatically use the selected environment.
68103
69104
70105

0 commit comments

Comments
 (0)