sb-mig 5.2.0 → 5.2.1-beta.2

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.
@@ -38,16 +38,16 @@ export const init = async (props) => {
38
38
  const NEXT_PUBLIC_GTM_ID = gtmToken ?? "put-your-gtm-token-here";
39
39
  const NEXT_PUBLIC_STORYBLOK_ACCESS_TOKEN = spaceData.space.first_token;
40
40
  const STORYBLOK_PREVIEW_SECRET = uuidv4();
41
- const envFileContent = `STORYBLOK_REGION=${STORYBLOK_REGION}\n` +
42
- `STORYBLOK_GRAPHQL_API_URL=${STORYBLOK_GRAPHQL_API_URL}\n` +
43
- `STORYBLOK_DELIVERY_API_URL=${STORYBLOK_DELIVERY_API_URL}\n` +
44
- `STORYBLOK_MANAGEMENT_API_URL=${STORYBLOK_MANAGEMENT_API_URL}\n` +
45
- `STORYBLOK_SPACE_ID=${STORYBLOK_SPACE_ID}\n` +
41
+ const envFileContent = `NEXT_PUBLIC_STORYBLOK_REGION=${STORYBLOK_REGION}\n` +
42
+ `NEXT_PUBLIC_STORYBLOK_GRAPHQL_API_URL=${STORYBLOK_GRAPHQL_API_URL}\n` +
43
+ `NEXT_PUBLIC_STORYBLOK_DELIVERY_API_URL=${STORYBLOK_DELIVERY_API_URL}\n` +
44
+ `NEXT_PUBLIC_STORYBLOK_MANAGEMENT_API_URL=${STORYBLOK_MANAGEMENT_API_URL}\n` +
46
45
  `NEXT_PUBLIC_STORYBLOK_ACCESS_TOKEN=${NEXT_PUBLIC_STORYBLOK_ACCESS_TOKEN}\n` +
47
- `STORYBLOK_PREVIEW_SECRET=${STORYBLOK_PREVIEW_SECRET}\n` +
48
- `STORYBLOK_OAUTH_TOKEN=${STORYBLOK_OAUTH_TOKEN}\n` +
49
46
  `NEXT_PUBLIC_GTM_ID=${NEXT_PUBLIC_GTM_ID}\n` +
50
- `NEXT_PUBLIC_TRANSLATION_STRATEGY=folder\n`;
47
+ `NEXT_PUBLIC_TRANSLATION_STRATEGY=folder\n` +
48
+ `STORYBLOK_SPACE_ID=${STORYBLOK_SPACE_ID}\n` +
49
+ `STORYBLOK_PREVIEW_SECRET=${STORYBLOK_PREVIEW_SECRET}\n` +
50
+ `STORYBLOK_OAUTH_TOKEN=${STORYBLOK_OAUTH_TOKEN}\n`;
51
51
  console.log("Envs that we will create: ");
52
52
  console.log(envFileContent);
53
53
  try {
@@ -34,10 +34,11 @@ export const defaultConfig = (pkg, path, env) => {
34
34
  // ? "sb.stories.js"
35
35
  // : "sb.stories.cjs",
36
36
  storiesExt: "sb.stories.json",
37
- storyblokApiUrl: env["STORYBLOK_MANAGEMENT_API_URL"] ||
37
+ storyblokApiUrl: env["NEXT_PUBLIC_STORYBLOK_MANAGEMENT_API_URL"] ||
38
38
  "https://mapi.storyblok.com/v1",
39
- storyblokDeliveryApiUrl: env["STORYBLOK_DELIVERY_API_URL"] || "https://api.storyblok.com/v2",
40
- storyblokGraphqlApiUrl: env["STORYBLOK_GRAPHQL_API_URL"] ||
39
+ storyblokDeliveryApiUrl: env["NEXT_PUBLIC_STORYBLOK_DELIVERY_API_URL"] ||
40
+ "https://api.storyblok.com/v2",
41
+ storyblokGraphqlApiUrl: env["NEXT_PUBLIC_STORYBLOK_GRAPHQL_API_URL"] ||
41
42
  "https://gapi.storyblok.com/v1/api",
42
43
  oauthToken: env["STORYBLOK_OAUTH_TOKEN"] ?? "",
43
44
  spaceId: env["STORYBLOK_SPACE_ID"] ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sb-mig",
3
- "version": "5.2.0",
3
+ "version": "5.2.1-beta.2",
4
4
  "description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
5
5
  "author": "Marcin Krawczyk <marckraw@icloud.com>",
6
6
  "license": "MIT",