Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/web/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const nextConfig: NextConfig = {
output: "export",
reactStrictMode: true,
trailingSlash: true,
experimental: {
globalNotFound: true,
},
images: {
unoptimized: true,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/web/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/ /en/ 200
/en/ / 302
21 changes: 21 additions & 0 deletions apps/web/src/app/(default)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { NextIntlClientProvider } from "next-intl";
import { setRequestLocale } from "next-intl/server";

import enMessages from "../../../messages/en.json";
import { DocumentShell } from "../_shared/DocumentShell";

export default function DefaultLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
setRequestLocale("en");

return (
<DocumentShell lang="en">
<NextIntlClientProvider locale="en" messages={enMessages}>
{children}
</NextIntlClientProvider>
</DocumentShell>
);
}
14 changes: 14 additions & 0 deletions apps/web/src/app/(default)/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Metadata } from "next";

import enMessages from "../../../messages/en.json";

import HomePage from "../_shared/HomePage";
import { buildHomeMetadata } from "@/lib/seo";

export function generateMetadata(): Metadata {
return buildHomeMetadata("en", enMessages.meta.title, enMessages.meta.description);
}

export default function EnglishHomePage() {
return <HomePage locale="en" />;
}
9 changes: 9 additions & 0 deletions apps/web/src/app/(legal)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { DocumentShell } from "../_shared/DocumentShell";

export default function LegalLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return <DocumentShell lang="en">{children}</DocumentShell>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Privacy Policy | Inalpha",
description: "How the Inalpha website handles privacy, storage, and third parties.",
alternates: { canonical: "/privacy/" },
alternates: { canonical: "https://inalpha.dev/privacy/" },
};

export default function PrivacyPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Terms of Service | Inalpha",
description: "Terms, financial risk disclosure, and license information for Inalpha.",
alternates: { canonical: "/terms/" },
alternates: { canonical: "https://inalpha.dev/terms/" },
};

export default function TermsPage() {
Expand Down
Loading
Loading