forked from ctrl-alt-del-world/midway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity-template.json
71 lines (71 loc) · 1.8 KB
/
sanity-template.json
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
{
"version": 2,
"title": "Midway community starter",
"description": "An opinionated starter template for Gatsby + Sanity + Shopify.",
"previewMedia": {
"type": "image",
"src": "assets/frontend.jpg",
"alt": "A screenshot of the Midway starter."
},
"technologies": [
{
"id": "gatsby",
"name": "Gatsby",
"url": "https://www.gatsbyjs.org/"
},
{
"id": "netlify",
"name": "Netlify",
"url": "https://www.netlify.com/"
}
],
"deployment": {
"provider": "netlify",
"sites": [
{
"id": "studio",
"type": "studio",
"title": "Sanity Studio",
"description": "A Sanity Studio with dynamic product imports from Shopify.",
"dir": "./studio",
"buildSettings": {
"dir": "studio/dist",
"cmd": "npm run build-studio && cp studio/netlify.toml studio/dist"
},
"previewMedia": {
"type": "image",
"src": "assets/studio.jpg",
"alt": "A preview image of the Sanity Studio."
}
},
{
"id": "web",
"type": "web",
"title": "Gatsby Front-end",
"description": "A fresh Gatsby theme to show off your products.",
"dir": "./web",
"requiredTokens": [
{
"role": "deploy-studio",
"label": "GraphQL API Deployer"
}
],
"buildSettings": {
"dir": "web/public",
"cmd": "npm run build-web"
},
"previewMedia": {
"type": "image",
"src": "assets/frontend.jpg",
"alt": "A preview image of the Gatsby front-end."
},
"requiredCorsOrigins": [
{
"origin": "http://localhost:8000",
"allowCredentials": false
}
]
}
]
}
}