generated from vtex-sites/starter.store
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdiscovery.config.js
99 lines (87 loc) · 2.09 KB
/
discovery.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
module.exports = {
seo: {
title: "FastStore Playground",
description: "A fast and performant store framework",
titleTemplate: "%s | Playground",
author: "FastStore",
},
// Theming
theme: "custom-theme",
// Ecommerce Platform
platform: "vtex",
// Platform specific configs for API
api: {
storeId: "playground",
workspace: "master",
environment: "vtexcommercestable",
hideUnavailableItems: true,
incrementAddress: false,
},
// Default session
session: {
currency: {
code: "BRL",
symbol: "R$",
},
locale: "pt-BR",
channel: '{"salesChannel":1,"regionId":""}',
country: "BRA",
deliveryMode: null,
addressType: null,
postalCode: null,
geoCoordinates: null,
person: null,
},
cart: {
id: "",
items: [],
messages: [],
shouldSplitItem: true,
},
// Production URLs
storeUrl: "https://playground.vtex.app",
secureSubdomain: "https://secure.vtexfaststore.com/",
checkoutUrl: "https://secure.vtexfaststore.com/checkout",
loginUrl: "https://secure.vtexfaststore.com/api/io/login",
accountUrl: "https://secure.vtexfaststore.com/api/io/account",
previewRedirects: {
home: "/",
plp: "/electronics",
search: "/s?q=orange",
pdp: "/mouse/p",
},
// Lighthouse CI
lighthouse: {
server: process.env.BASE_SITE_URL || "http://localhost:3000",
pages: {
home: "/",
pdp: "/mouse/p",
collection: "/electronics",
},
},
// E2E CI
cypress: {
pages: {
home: "/",
pdp: "/mouse/p",
collection: "/electronics",
collection_filtered:
"/electronics/?category-1=electronics&marca=faststore&facets=category-1%2Cmarca%27",
search: "/s?q=orange",
},
browser: "electron",
},
analytics: {
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
gtmContainerId: "GTM-1234567",
},
experimental: {
nodeVersion: 18,
cypressVersion: 12,
},
vtexHeadlessCms: {
webhookUrls: [
"https://playground.myvtex.com/cms-releases/webhook-releases",
],
},
};