about summary refs log tree commit diff
path: root/pages/kronika
diff options
context:
space:
mode:
Diffstat (limited to 'pages/kronika')
-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 }))