Skip to content

Commit af94795

Browse files
committed
refactoring
1 parent fcb526f commit af94795

File tree

3 files changed

+59
-33
lines changed

3 files changed

+59
-33
lines changed

src/cognito-authenticated-fargate-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class CognitoAuthenticatedFargateService extends ApplicationLoadBalancedF
2929
default: '',
3030
allowedPattern: '^arn:aws:acm:[\\w-]+:[0-9]{12}:certificate/[\\w]{8}-[\\w]{4}-[\\w]{4}-[\\w]{4}-[\\w]{12}$|',
3131
});
32-
const httpsEnabled = new cdk.CfnCondition(this, 'HttpsDisabled', { expression: cdk.Fn.conditionNot(cdk.Fn.conditionEquals(this.acmCertArn, '')) });
32+
const httpsEnabled = new cdk.CfnCondition(this, 'HttpsEnabled', { expression: cdk.Fn.conditionNot(cdk.Fn.conditionEquals(this.acmCertArn, '')) });
3333

3434
this.loadBalancer.connections.allowFrom(Peer.anyIpv4(), Port.tcp(443), 'Allow from anyone on port 443');
3535

src/supabase-stack.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,12 @@ export class SupabaseStack extends cdk.Stack {
359359
image: ecs.ContainerImage.fromRegistry(`${ecrRegistry}/storage-api:${storageApiVersion.valueAsString}`),
360360
containerPort: 5000,
361361
environment: {
362-
POSTGREST_URL: 'http://rest.supabase.local:3000',
362+
POSTGREST_URL: `http://${rest.dnsName}:${rest.listenerPort}`,
363363
PGOPTIONS: '-c search_path=storage,public',
364364
FILE_SIZE_LIMIT: '52428800',
365-
STORAGE_BACKEND: 's3', // default: file
366-
TENANT_ID: 'default',
365+
TENANT_ID: 'stub',
366+
IS_MULTITENANT: 'false',
367+
STORAGE_BACKEND: 's3',
367368
REGION: bucket.env.region,
368369
GLOBAL_S3_BUCKET: bucket.bucketName,
369370
},

test/__snapshots__/main.test.ts.snap

Lines changed: 54 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)