diff --git a/redi-web/.env.production b/redi-web/.env.production index 2420713..d49c003 100644 --- a/redi-web/.env.production +++ b/redi-web/.env.production @@ -1 +1,2 @@ -NEXT_PUBLIC_API_BASE_URL=https://redi-app-8ea0a6e9c3d9.herokuapp.com \ No newline at end of file +NEXT_PUBLIC_API_BASE_URL=https://redi-app-8ea0a6e9c3d9.herokuapp.com +NEXT_PUBLIC_BASE_URL=https://redi.love \ No newline at end of file diff --git a/redi-web/src/app/admin/broadcast/page.tsx b/redi-web/src/app/admin/broadcast/page.tsx index 06a623f..d8499b2 100644 --- a/redi-web/src/app/admin/broadcast/page.tsx +++ b/redi-web/src/app/admin/broadcast/page.tsx @@ -400,9 +400,7 @@ export default function AdminBroadcastPage() { {/* Preview in dialog */}
-

- {title} -

+

{title}

{body}

diff --git a/redi-web/src/app/app/page.tsx b/redi-web/src/app/app/page.tsx new file mode 100644 index 0000000..45bb503 --- /dev/null +++ b/redi-web/src/app/app/page.tsx @@ -0,0 +1,16 @@ +import { headers } from 'next/headers'; +import { redirect } from 'next/navigation'; + +export default async function RedirectApp() { + const headersList = await headers(); + const userAgent = headersList.get('user-agent') ?? ''; + const isIOS = /iPhone|iPad|iPod/i.test(userAgent); + + if (isIOS) { + redirect('https://apps.apple.com/us/app/redi-love/id6754899018'); + } + else { + redirect(`${process.env.NEXT_PUBLIC_BASE_URL ?? 'https://redi.love'}/`); + } + +} diff --git a/redi-web/src/app/data-deletion/page.tsx b/redi-web/src/app/data-deletion/page.tsx index 62d8dde..b3fb272 100644 --- a/redi-web/src/app/data-deletion/page.tsx +++ b/redi-web/src/app/data-deletion/page.tsx @@ -29,8 +29,9 @@ export default function DataDeletionPage() { How to Request Account Deletion

- If you would like to delete your Redi account - and all associated data, please follow these steps: + If you would like to delete your{' '} + Redi account and all + associated data, please follow these steps:

@@ -45,7 +46,10 @@ export default function DataDeletionPage() {
  • - Use the subject line: "Account Deletion Request" + Use the subject line:{' '} + + "Account Deletion Request" +
  • Include the email address associated with your Redi account @@ -57,7 +61,8 @@ export default function DataDeletionPage() {
  • - Our team will verify your identity and process your deletion request promptly. + Our team will verify your identity and process your deletion + request promptly.

    @@ -66,7 +71,8 @@ export default function DataDeletionPage() { What Data Will Be Deleted

    - When you request account deletion, the following data will be permanently removed: + When you request account deletion, the following data will be + permanently removed: