BREAKING CHANGES: - Switch to static export mode (output: 'export') per Azure SWA best practices - Remove staticwebapp.config.json to avoid routes.json conflict - Convert server-side layouts to client-side only (remove cookies() usage) - Auth now handled entirely by client-side AuthGuard component - Output directory changed from .next/standalone to 'out' - Remove redirects from next.config (not supported in static export) This aligns with Azure Static Web Apps' official recommendation for Next.js. Server-side features (SSR, API routes, server actions) are not supported. All authentication and routing is client-side via React components.
6 lines
149 B
TypeScript
6 lines
149 B
TypeScript
import type React from "react"
|
|
|
|
export default function ModelGatewayLayout({ children }: { children: React.ReactNode }) {
|
|
return <>{children}</>
|
|
}
|