feat: disable Wishlist

chore: setup commerce & next config
fix: replace all call to bigcommerce from aquilacms provider
feat add validation to input in signup
This commit is contained in:
Gérard Le Cloerec
2021-04-06 15:08:19 +02:00
parent 94861a922a
commit a5de31ae17
68 changed files with 2157 additions and 7640 deletions

View File

@@ -1,4 +1,5 @@
import { serialize } from 'cookie'
import { getConfig } from '../..'
import { LogoutHandlers } from '../logout'
const logoutHandler: LogoutHandlers['logout'] = async ({
@@ -6,6 +7,12 @@ const logoutHandler: LogoutHandlers['logout'] = async ({
body: { redirectTo },
config,
}) => {
config = getConfig(config)
await config.storeApiFetch('/v2/auth/logout', {
method: 'GET',
})
// Remove the cookie
res.setHeader(
'Set-Cookie',