diff --git a/app/globals.css b/app/[locale]/globals.css similarity index 100% rename from app/globals.css rename to app/[locale]/globals.css diff --git a/app/layout.tsx b/app/[locale]/layout.tsx similarity index 100% rename from app/layout.tsx rename to app/[locale]/layout.tsx diff --git a/app/page.tsx b/app/[locale]/page.tsx similarity index 100% rename from app/page.tsx rename to app/[locale]/page.tsx diff --git a/middleware.ts b/middleware.ts new file mode 100644 index 0000000..38bc00d --- /dev/null +++ b/middleware.ts @@ -0,0 +1,12 @@ +import { NextResponse } from "next/server"; +import type { NextRequest } from "next/server"; + +export function middleware(request: NextRequest) { + if (request.nextUrl.pathname === '/') { + return NextResponse.redirect(new URL('/fr', request.url)); + } +} + +export const config = { + matcher: '/', +} \ No newline at end of file