Skip to content

Commit fcd84c4

Browse files
committed
fix types
1 parent 4910783 commit fcd84c4

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/modules/edge-api-sdk/src/types.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { AWSRegion } from '../../common/src'
21
import {
32
APIGatewayProxyEventV2,
43
APIGatewayProxyResultV2,
@@ -24,7 +23,7 @@ export type RCRequest<EnvType> = {
2423
cookies: string[]
2524
query?: RCQuery
2625
env: EnvType
27-
region: AWSRegion
26+
region: string
2827
}
2928

3029
export type JSONRequest<EnvType, BodyType> = Omit<RCRequest<EnvType>, 'body'> & {

packages/modules/edge-api-sdk/src/utils.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import { stringIsAWSRegion } from '../../common/src'
2-
31
export const getEnvRegion = () => {
42
const region = process.env.AWS_REGION
53
if (!region) {
64
throw new Error('No AWS_REGION specified')
75
}
8-
if (!stringIsAWSRegion(region)) {
9-
throw new Error(`Unknown region ${region}`)
10-
}
116

127
return {
138
region,

0 commit comments

Comments
 (0)