From 91119fd1ff03d4fb72d5839697f5461673cb761b Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Fri, 22 Dec 2023 11:55:05 +0100 Subject: [PATCH] feat(infra): Added uier production domain DNS entry --- infra/apps/cloud-primary/.eslintignore | 2 ++ infra/apps/remote-browser/.eslintignore | 2 ++ infra/apps/uier/.eslintignore | 2 ++ infra/apps/uier/src/index.ts | 2 +- infra/packages/pulumi/src/cloudflare/dnsRecord.ts | 2 +- 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 infra/apps/cloud-primary/.eslintignore create mode 100644 infra/apps/remote-browser/.eslintignore create mode 100644 infra/apps/uier/.eslintignore diff --git a/infra/apps/cloud-primary/.eslintignore b/infra/apps/cloud-primary/.eslintignore new file mode 100644 index 0000000000..7730e2ffa9 --- /dev/null +++ b/infra/apps/cloud-primary/.eslintignore @@ -0,0 +1,2 @@ +dist +.turbo \ No newline at end of file diff --git a/infra/apps/remote-browser/.eslintignore b/infra/apps/remote-browser/.eslintignore new file mode 100644 index 0000000000..7730e2ffa9 --- /dev/null +++ b/infra/apps/remote-browser/.eslintignore @@ -0,0 +1,2 @@ +dist +.turbo \ No newline at end of file diff --git a/infra/apps/uier/.eslintignore b/infra/apps/uier/.eslintignore new file mode 100644 index 0000000000..7730e2ffa9 --- /dev/null +++ b/infra/apps/uier/.eslintignore @@ -0,0 +1,2 @@ +dist +.turbo \ No newline at end of file diff --git a/infra/apps/uier/src/index.ts b/infra/apps/uier/src/index.ts index 73782641a0..6e4d02be79 100644 --- a/infra/apps/uier/src/index.ts +++ b/infra/apps/uier/src/index.ts @@ -21,7 +21,7 @@ const up = async () => { if (stack === 'next') { dnsRecord('vercel-uier', 'next', 'cname.vercel-dns.com', 'CNAME', false); } else if (stack === 'production') { - // TODO: Handle A record for production + dnsRecord('vercel-uier', '@', '76.76.21.21', 'A', false); } } }; diff --git a/infra/packages/pulumi/src/cloudflare/dnsRecord.ts b/infra/packages/pulumi/src/cloudflare/dnsRecord.ts index 6d477804fb..12c7892cab 100644 --- a/infra/packages/pulumi/src/cloudflare/dnsRecord.ts +++ b/infra/packages/pulumi/src/cloudflare/dnsRecord.ts @@ -1,7 +1,7 @@ import { Config, Input } from '@pulumi/pulumi'; import { Record } from '@pulumi/cloudflare'; -export function dnsRecord(name: string, dnsName: Input, value: Input, type: 'CNAME' | 'TXT' | 'MX', protect: boolean) { +export function dnsRecord(name: string, dnsName: Input, value: Input, type: 'CNAME' | 'TXT' | 'MX' | 'A', protect: boolean) { const config = new Config(); const zoneId = config.requireSecret('zoneid'); return new Record(name, {