File tree 2 files changed +1
-7
lines changed
packages/modules/edge-api-sdk/src
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
- import { AWSRegion } from '../../common/src'
2
1
import {
3
2
APIGatewayProxyEventV2 ,
4
3
APIGatewayProxyResultV2 ,
@@ -24,7 +23,7 @@ export type RCRequest<EnvType> = {
24
23
cookies : string [ ]
25
24
query ?: RCQuery
26
25
env : EnvType
27
- region : AWSRegion
26
+ region : string
28
27
}
29
28
30
29
export type JSONRequest < EnvType , BodyType > = Omit < RCRequest < EnvType > , 'body' > & {
Original file line number Diff line number Diff line change 1
- import { stringIsAWSRegion } from '../../common/src'
2
-
3
1
export const getEnvRegion = ( ) => {
4
2
const region = process . env . AWS_REGION
5
3
if ( ! region ) {
6
4
throw new Error ( 'No AWS_REGION specified' )
7
5
}
8
- if ( ! stringIsAWSRegion ( region ) ) {
9
- throw new Error ( `Unknown region ${ region } ` )
10
- }
11
6
12
7
return {
13
8
region,
You can’t perform that action at this time.
0 commit comments