This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import prompts from '../lib/prompts'
12
12
import frameworks from '../lib/frameworks'
13
13
import clone from '../lib/clone'
14
14
import replace from '../lib/replace'
15
- import regions , { Region } from '../lib/regions'
15
+ import regions from '../lib/regions'
16
16
import { addCustomParentFramework } from '../lib/helper-replace'
17
17
18
18
export default class CreateStoryblokAppCommand extends Command {
@@ -89,11 +89,11 @@ export default class CreateStoryblokAppCommand extends Command {
89
89
90
90
// region
91
91
const spaceRegion : string = flags ?. region || region // EU , US or CN
92
- let selectedRegion : Region | undefined
92
+ let selectedRegion = regions . EU
93
93
const possibleRegionValues = Object . values ( regions ) . map ( r => r . value )
94
94
const isValidRegion = possibleRegionValues . includes ( spaceRegion )
95
95
if ( isValidRegion ) {
96
- selectedRegion = Object . values ( regions ) . find ( r => r . value === spaceRegion )
96
+ selectedRegion = Object . values ( regions ) . find ( r => r . value === spaceRegion ) ?? regions . EU
97
97
} else {
98
98
throw new Error ( `Please provide a valid region via '-r' parameter : ${ possibleRegionValues . join ( ', ' ) } ` )
99
99
}
You can’t perform that action at this time.
0 commit comments