about summary refs log tree commit diff
path: root/pages/kronika/_year/_month
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-02 20:00:08 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-02 20:00:08 +0100
commitab71fb6046e0f3bfb8f103af32ac4b5e821cc835 (patch)
tree45fb61bb7c51b63de4d4710033e9e7ced9976cf9 /pages/kronika/_year/_month
parent53e2f45c6a62bc66185213252378944b19a6c7f9 (diff)
downloadpuszcza-ab71fb6046e0f3bfb8f103af32ac4b5e821cc835.tar.gz
puszcza-ab71fb6046e0f3bfb8f103af32ac4b5e821cc835.zip
Fix api url
Diffstat (limited to 'pages/kronika/_year/_month')
-rw-r--r--pages/kronika/_year/_month/_day/_title/index.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/kronika/_year/_month/_day/_title/index.vue b/pages/kronika/_year/_month/_day/_title/index.vue
index 7990abe..8fdbf93 100644
--- a/pages/kronika/_year/_month/_day/_title/index.vue
+++ b/pages/kronika/_year/_month/_day/_title/index.vue
@@ -41,7 +41,7 @@ export default {
     const { year, month, day, title } = params
     const response = await axios
       .get(
-        `${process.env.baseUrl}/api/posts/${year}/${month}/${day}/${title}.json`
+        `${window.location.origin}/api/posts/${year}/${month}/${day}/${title}.json`
       )
       .catch(err => ({ notFound: true }))