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
|
||||
PROD_URL=https://housesof.world
|
||||
PROD_URL="https://housesof.world"
|
||||
TRANSITION=false
|
||||
|
||||
# API
|
||||
API_TOKEN=NJk0urljsdSvApUDzWxGgoO6
|
||||
API_URL_DEV=http://api.housesof.localhost/how
|
||||
API_URL_PROD=https://api.housesof.world/_
|
||||
API_TOKEN="NJk0urljsdSvApUDzWxGgoO6"
|
||||
API_URL_DEV="http://api.housesof.localhost/how"
|
||||
API_URL_PROD="https://api.housesof.world/_"
|
||||
|
||||
# Tracking
|
||||
GA_TRACKER_ID=UA-4060922-27
|
||||
GA_TRACKER_ID="UA-4060922-27"
|
||||
|
||||
@@ -104,6 +104,8 @@
|
||||
|
||||
<slot></slot>
|
||||
|
||||
{#if process.env.CONFIG.TRANSITION === 'true'}
|
||||
<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 firstLoad = true
|
||||
let previousPage
|
||||
|
||||
// 1. Watch page change
|
||||
page.subscribe(page => {
|
||||
@@ -35,9 +34,6 @@
|
||||
|
||||
// Set pageReady to false (?)
|
||||
pageReady.set(false)
|
||||
|
||||
// Store current page
|
||||
previousPage = page
|
||||
})
|
||||
|
||||
// 2. Watch when loaded changes
|
||||
|
||||
Reference in New Issue
Block a user