diff --git a/package.json b/package.json index 1482d62..07048a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nutra-web", - "version": "0.3.12", + "version": "0.3.13", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e6db7dc..42186cc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,14 +4,18 @@ import Footer from './Footer.svelte'; import { page } from '$app/stores'; - var apiUrl = 'api.' + $page.url.hostname; - apiUrl == 'api.localhost' ? (apiUrl = `http://127.0.0.1:20000`) : (apiUrl = `https://${apiUrl}`); + import { STORE_URL } from './constants.ts'; + + let apiUrl = 'api.' + $page.url.hostname; + apiUrl === 'api.localhost' ? (apiUrl = `http://127.0.0.1:20000`) : (apiUrl = `https://${apiUrl}`); console.info(apiUrl); Home Page | NutraTech + +
@@ -19,12 +23,16 @@

Home page

Welcome!

-

Check out the blog, calculators, and other resources.

+

Check out the calculators, blog, and store.

-

(This is a work in progress.)

+

+ You can find download instructions for the nutra CLI on the + /calculators page. +

Links

Visit /blog for the blog

+

Visit {STORE_URL} for the store

Visit {apiUrl} for API documentation