Fixes
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
import { readable, writable } from 'svelte/store'
|
||||
|
||||
export const dev = process.env.NODE_ENV === 'development'
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
Site related
|
||||
========================================================================== */
|
||||
const apiEndpoint = dev ? 'http://api.housesof.localhost/how' : 'https://api.housesof.world/_'
|
||||
export const api = {
|
||||
graphql: '//api.housesof.localhost/how/gql?access_token=NJk0urljsdSvApUDzWxGgoO6',
|
||||
rest: '//api.housesof.localhost/how'
|
||||
graphql: apiEndpoint + '/gql?access_token=NJk0urljsdSvApUDzWxGgoO6',
|
||||
rest: apiEndpoint
|
||||
}
|
||||
|
||||
// Data
|
||||
export let currentLocation = writable()
|
||||
export let loaded = writable(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user