mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Merge pull request #902 from sharetribe/availability-env-var
Availability environment variable
This commit is contained in:
commit
920d11b5ba
3 changed files with 10 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ REACT_APP_STRIPE_PUBLISHABLE_KEY=
|
|||
#
|
||||
|
||||
REACT_APP_SHARETRIBE_SDK_BASE_URL=http://localhost:8088
|
||||
|
||||
REACT_APP_SHARETRIBE_MARKETPLACE_CURRENCY=USD
|
||||
REACT_APP_CANONICAL_ROOT_URL=http://localhost:3000
|
||||
|
||||
|
|
@ -29,4 +28,10 @@ REACT_APP_ENV=production
|
|||
# REACT_APP_CSP=report
|
||||
# BASIC_AUTH_USERNAME=sharetribe
|
||||
# BASIC_AUTH_PASSWORD=secret
|
||||
# REACT_APP_GOOGLE_ANALYTICS_ID=change-me
|
||||
# REACT_APP_GOOGLE_ANALYTICS_ID=change-me
|
||||
|
||||
|
||||
# Features
|
||||
#
|
||||
|
||||
REACT_APP_AVAILABILITY_ENABLED=true
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ them have defaults that work for development environment. For production deploys
|
|||
| REACT_APP_CANONICAL_ROOT_URL | Canonical root url of the marketplace. Needed for social media sharing and SEO optimization. |
|
||||
| NODE_ENV | Node env. Use 'development' for development and 'production' for production. |
|
||||
| PORT | Port for server to accept connections. |
|
||||
| REACT_APP_ENV | Env for client side. Use the same value as with NODE_ENV. |
|
||||
| REACT_APP_ENV | A more fine grained env definition than NODE_ENV. Is used for example to differentiate envs in logging. |
|
||||
| REACT_APP_SHARETRIBE_USING_SSL | Redirect HTTP to HTTPS? |
|
||||
| SERVER_SHARETRIBE_TRUST_PROXY | Set when running the app behind a reverse proxy, e.g. in Heroku. |
|
||||
| REACT_APP_PUBLIC_SENTRY_DSN | See: [Error logging with Sentry](./sentry.md) |
|
||||
|
|
@ -22,6 +22,7 @@ them have defaults that work for development environment. For production deploys
|
|||
| BASIC_AUTH_USERNAME | Set to enable HTTP Basic Auth |
|
||||
| BASIC_AUTH_PASSWORD | Set to enable HTTP Basic Auth |
|
||||
| REACT_APP_GOOGLE_ANALYTICS_ID | See: [Google Analytics](./analytics.md) |
|
||||
| REACT_APP_AVAILABILITY_ENABLED | Enables availability calendar for listings. |
|
||||
|
||||
## Defining configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const bookingUnitType = 'line-item/night';
|
|||
|
||||
// Should the application fetch available time slots (currently defined as
|
||||
// start and end dates) to be shown on listing page.
|
||||
const fetchAvailableTimeSlots = true;
|
||||
const fetchAvailableTimeSlots = process.env.REACT_APP_AVAILABILITY_ENABLED === 'true';
|
||||
|
||||
// A maximum number of days forwards during which a booking can be made.
|
||||
// This is limited due to Stripe holding funds up to 90 days from the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue