From ab71fb6046e0f3bfb8f103af32ac4b5e821cc835 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 2 Jan 2020 20:00:08 +0100 Subject: Fix api url --- pages/kronika/_year/_month/_day/_title/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages/kronika') 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 })) -- cgit 1.4.1