@stackbit/dev 1.0.17-develop.2 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,82 +1,64 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Stackbit</title>
6
- <style type="text/css">
7
- body {
8
- margin: 0;
9
- padding: 0;
10
- }
11
- #main-container {
12
- color: #fff;
13
- background: #22252d;
14
- display: flex;
15
- flex-direction: column;
16
- align-items: center;
17
- justify-content: center;
18
- font-family: sans-serif;
19
- height: 100vh;
20
- text-align: center;
21
- padding: 20px;
22
- }
23
- h1 {
24
- font-weight: 400;
25
- font-size: 34px;
26
- }
27
- #logo {
28
- margin-bottom: 16px;
29
- width: 78px;
30
- height: 69px;
31
- fill: #f25458;
32
- }
33
- #info-text a {
34
- color: #0b69db;
35
- }
36
- </style>
37
- </head>
38
- <body>
39
- <div id="main-container">
40
- <svg width="239" height="81" viewBox="0 0 239 81" fill="none" xmlns="http://www.w3.org/2000/svg">
41
- <path
42
- d="M119.641 79.7368C141.383 79.7368 159.009 62.111 159.009 40.3684C159.009 18.6258 141.383 1 119.641 1C97.8983 1 80.2725 18.6258 80.2725 40.3684C80.2725 62.111 97.8983 79.7368 119.641 79.7368Z"
43
- stroke="#979797"
44
- stroke-miterlimit="10"
45
- />
46
- <path
47
- d="M198.538 79.7368C220.28 79.7368 237.906 62.111 237.906 40.3684C237.906 18.6258 220.28 1 198.538 1C176.795 1 159.169 18.6258 159.169 40.3684C159.169 62.111 176.795 79.7368 198.538 79.7368Z"
48
- stroke="#979797"
49
- stroke-miterlimit="10"
50
- />
51
- <path d="M1.37549 79.7369L80.2723 1.00006L159.009 79.7369L237.906 1.00006" stroke="#979797" stroke-miterlimit="10" />
52
- <path d="M1.37549 1.00006L80.2723 79.7369L159.009 1.00006L237.906 79.7369" stroke="#979797" stroke-miterlimit="10" />
53
- <path
54
- d="M40.7439 79.7369C62.4865 79.7369 80.1123 62.111 80.1123 40.3685C80.1123 18.6259 62.4865 1.00006 40.7439 1.00006C19.0013 1.00006 1.37549 18.6259 1.37549 40.3685C1.37549 62.111 19.0013 79.7369 40.7439 79.7369Z"
55
- stroke="#979797"
56
- stroke-miterlimit="10"
57
- />
58
- </svg>
59
- <h1>Failed to connect to your site's local server</h1>
60
- <div id="info-text">
61
- Your local stackbit dev cannot connect to the dev server of your site, which should be running at __URL__.<br />Please check that it is up and
62
- running. <a href="https://docs.stackbit.com/how-to-guides/local-dev/#troubleshooting" target="_blank">Learn more.</a>
63
- </div>
64
- </div>
65
- <script type="application/javascript">
66
- function poll() {
67
- fetch('/', { method: 'HEAD' })
68
- .then((response) => {
69
- if (response.status === 504) {
70
- window.setTimeout(poll, 1000);
71
- } else {
72
- window.location = '__PATH__';
73
- }
74
- })
75
- .catch((err) => {
76
- window.setTimeout(poll, 1000);
77
- });
78
- }
79
- poll();
80
- </script>
81
- </body>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Stackbit</title>
6
+ <style type="text/css">
7
+ body {
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+ #main-container {
12
+ color: #fff;
13
+ background: #22252d;
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: center;
17
+ justify-content: center;
18
+ font-family: sans-serif;
19
+ height: 100vh;
20
+ text-align: center;
21
+ }
22
+ h1 {
23
+ font-weight: 400;
24
+ font-size: 34px;
25
+ }
26
+ #logo {
27
+ margin-bottom: 16px;
28
+ width: 78px;
29
+ height: 69px;
30
+ fill: #f25458;
31
+ }
32
+ #info-text a {
33
+ color: #0b69db;
34
+ }
35
+ </style>
36
+ </head>
37
+ <body>
38
+ <div id="main-container">
39
+ <svg width="239" height="81" viewBox="0 0 239 81" fill="none" xmlns="http://www.w3.org/2000/svg">
40
+ <path d="M119.641 79.7368C141.383 79.7368 159.009 62.111 159.009 40.3684C159.009 18.6258 141.383 1 119.641 1C97.8983 1 80.2725 18.6258 80.2725 40.3684C80.2725 62.111 97.8983 79.7368 119.641 79.7368Z" stroke="#979797" stroke-miterlimit="10"/>
41
+ <path d="M198.538 79.7368C220.28 79.7368 237.906 62.111 237.906 40.3684C237.906 18.6258 220.28 1 198.538 1C176.795 1 159.169 18.6258 159.169 40.3684C159.169 62.111 176.795 79.7368 198.538 79.7368Z" stroke="#979797" stroke-miterlimit="10"/>
42
+ <path d="M1.37549 79.7369L80.2723 1.00006L159.009 79.7369L237.906 1.00006" stroke="#979797" stroke-miterlimit="10"/>
43
+ <path d="M1.37549 1.00006L80.2723 79.7369L159.009 1.00006L237.906 79.7369" stroke="#979797" stroke-miterlimit="10"/>
44
+ <path d="M40.7439 79.7369C62.4865 79.7369 80.1123 62.111 80.1123 40.3685C80.1123 18.6259 62.4865 1.00006 40.7439 1.00006C19.0013 1.00006 1.37549 18.6259 1.37549 40.3685C1.37549 62.111 19.0013 79.7369 40.7439 79.7369Z" stroke="#979797" stroke-miterlimit="10"/>
45
+ </svg>
46
+ <h1>Failed to connect to your site's local server</h1>
47
+ <div id="info-text">Your local stackbit dev cannot connect to the dev server of your site, which should be running at __URL__.<br/>Please check that it is up and running. <a href="https://docs.stackbit.com/how-to-guides/local-dev/#troubleshooting" target="_blank">Learn more.</a></div>
48
+ </div>
49
+ <script type="application/javascript">
50
+ function poll() {
51
+ fetch('/', { method: 'HEAD' }).then((response) => {
52
+ if (response.status === 504) {
53
+ window.setTimeout(poll, 1000);
54
+ } else {
55
+ window.location = "__PATH__";
56
+ }
57
+ }).catch(err => {
58
+ window.setTimeout(poll, 1000);
59
+ })
60
+ }
61
+ poll();
62
+ </script>
63
+ </body>
82
64
  </html>
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ directPaths: string[];
3
+ directRoutes: {};
4
+ directChangeSocketOrigin: boolean;
5
+ directChangeOrigin: boolean;
6
+ };
7
+ export default _default;
8
+ //# sourceMappingURL=ssg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../src/runner/ssg.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ directPaths: ['/_next/**', '/nextjs-live-updates/**'],
5
+ directRoutes: {},
6
+ directChangeSocketOrigin: false,
7
+ directChangeOrigin: true
8
+ };
9
+ //# sourceMappingURL=ssg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssg.js","sourceRoot":"","sources":["../../src/runner/ssg.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,WAAW,EAAE,CAAC,WAAW,EAAE,yBAAyB,CAAC;IACrD,YAAY,EAAE,EAAE;IAChB,wBAAwB,EAAE,KAAK;IAC/B,kBAAkB,EAAE,IAAI;CAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackbit/dev",
3
- "version": "1.0.17-develop.2",
3
+ "version": "1.0.17",
4
4
  "description": "stackbit-dev",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,10 +22,10 @@
22
22
  "author": "Stackbit Inc.",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@stackbit/cms-core": "1.0.15-develop.2",
26
- "@stackbit/cms-git": "0.4.2-develop.2",
27
- "@stackbit/dev-common": "0.5.35-develop.2",
28
- "@stackbit/sdk": "1.0.15-develop.2",
25
+ "@stackbit/cms-core": "1.0.14",
26
+ "@stackbit/cms-git": "0.4.1",
27
+ "@stackbit/dev-common": "0.5.34",
28
+ "@stackbit/sdk": "1.0.14",
29
29
  "axios": "^0.25.0",
30
30
  "chalk": "^4.1.0",
31
31
  "chokidar": "^3.5.3",
@@ -44,7 +44,7 @@
44
44
  "yargs": "^17.3.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@stackbit/types": "0.11.4-develop.2",
47
+ "@stackbit/types": "0.11.3",
48
48
  "@types/axios": "^0.14.0",
49
49
  "@types/configstore": "^5.0.1",
50
50
  "@types/detect-port": "^1.3.2",
@@ -56,5 +56,5 @@
56
56
  "copyfiles": "^2.4.1",
57
57
  "response-time": "^2.3.2"
58
58
  },
59
- "gitHead": "8f69266a6a553ab4e808fe5df875eccf93cdd51c"
59
+ "gitHead": "a686a5ddd79e95c367f015fcc00c1d2acd5024ca"
60
60
  }