Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit ce7b9e1

Browse files
author
Lisi Linhart
committed
fix: build issues
1 parent 0431f87 commit ce7b9e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/default.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import prompts from '../lib/prompts'
1212
import frameworks from '../lib/frameworks'
1313
import clone from '../lib/clone'
1414
import replace from '../lib/replace'
15-
import regions, {Region} from '../lib/regions'
15+
import regions from '../lib/regions'
1616
import {addCustomParentFramework} from '../lib/helper-replace'
1717

1818
export default class CreateStoryblokAppCommand extends Command {
@@ -89,11 +89,11 @@ export default class CreateStoryblokAppCommand extends Command {
8989

9090
// region
9191
const spaceRegion: string = flags?.region || region // EU , US or CN
92-
let selectedRegion: Region | undefined
92+
let selectedRegion = regions.EU
9393
const possibleRegionValues = Object.values(regions).map(r => r.value)
9494
const isValidRegion = possibleRegionValues.includes(spaceRegion)
9595
if (isValidRegion) {
96-
selectedRegion = Object.values(regions).find(r => r.value === spaceRegion)
96+
selectedRegion = Object.values(regions).find(r => r.value === spaceRegion) ?? regions.EU
9797
} else {
9898
throw new Error(`Please provide a valid region via '-r' parameter : ${possibleRegionValues.join(', ')}`)
9999
}

0 commit comments

Comments
 (0)