From 91a15f417e73aea5b4fe002ae5abaf70c046b47f Mon Sep 17 00:00:00 2001 From: Pitu Date: Wed, 20 Jan 2021 14:01:36 +0900 Subject: feat: enable ssr and serve it with the api --- src/site/store/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/site/store/index.js') diff --git a/src/site/store/index.js b/src/site/store/index.js index 94d673f..b94a336 100644 --- a/src/site/store/index.js +++ b/src/site/store/index.js @@ -1,9 +1,8 @@ import config from '../../../dist/config.json'; export const actions = { - async nuxtClientInit({ commit, dispatch }) { + async nuxtServerInit({ commit, dispatch }) { commit('config/set', config); - const cookies = this.$cookies.getAll(); if (!cookies.token) return dispatch('auth/logout'); -- cgit v1.2.3