Enable global site transition via a .env boolean
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
11
.env
11
.env
@@ -1,10 +1,11 @@
|
|||||||
# Website
|
# Website
|
||||||
PROD_URL=https://housesof.world
|
PROD_URL="https://housesof.world"
|
||||||
|
TRANSITION=false
|
||||||
|
|
||||||
# API
|
# API
|
||||||
API_TOKEN=NJk0urljsdSvApUDzWxGgoO6
|
API_TOKEN="NJk0urljsdSvApUDzWxGgoO6"
|
||||||
API_URL_DEV=http://api.housesof.localhost/how
|
API_URL_DEV="http://api.housesof.localhost/how"
|
||||||
API_URL_PROD=https://api.housesof.world/_
|
API_URL_PROD="https://api.housesof.world/_"
|
||||||
|
|
||||||
# Tracking
|
# Tracking
|
||||||
GA_TRACKER_ID=UA-4060922-27
|
GA_TRACKER_ID="UA-4060922-27"
|
||||||
|
|||||||
@@ -104,6 +104,8 @@
|
|||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|
||||||
|
{#if process.env.CONFIG.TRANSITION === 'true'}
|
||||||
<Transition />
|
<Transition />
|
||||||
<AnalyticsTracker {stores} id={process.env.CONFIG.GA_TRACKER_ID} />
|
{/if}
|
||||||
|
|
||||||
|
<AnalyticsTracker {stores} id={process.env.CONFIG.GA_TRACKER_ID} />
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
*/
|
*/
|
||||||
let scope
|
let scope
|
||||||
let firstLoad = true
|
let firstLoad = true
|
||||||
let previousPage
|
|
||||||
|
|
||||||
// 1. Watch page change
|
// 1. Watch page change
|
||||||
page.subscribe(page => {
|
page.subscribe(page => {
|
||||||
@@ -35,9 +34,6 @@
|
|||||||
|
|
||||||
// Set pageReady to false (?)
|
// Set pageReady to false (?)
|
||||||
pageReady.set(false)
|
pageReady.set(false)
|
||||||
|
|
||||||
// Store current page
|
|
||||||
previousPage = page
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// 2. Watch when loaded changes
|
// 2. Watch when loaded changes
|
||||||
|
|||||||
Reference in New Issue
Block a user