Skip to main content

React UI

The React Auth Lambda VPC vertical includes a frontend built with React 19 and Vite, served globally via CloudFront. It is identical to the ral UI except for the landing page which references VPC documentation.

Stack

  • React 19, Vite, TypeScript
  • Tailwind CSS, MUI
  • UI Auth pages from uicommon

Project Structure

Location: {vertical}/ui/

ui/src/
├── App.tsx # Router: /, /versions
├── index.tsx # React entry point
├── components/
│ ├── NavBar.tsx # Navigation bar with login/logout
│ └── Footer.tsx # Page footer
└── pages/
├── Home.tsx # Landing page (VPC-specific)
└── Versions.tsx # Version info

Shared Packages

This vertical imports uicommon for authentication and utilities. The alias is configured in vite.config.ts:

resolve: {
alias: {
'nnet-uicommon': path.resolve(__dirname, '../../../uipackages/uicommon'),
},
}

Components used from uicommon:

  • AuthProvider, useAuth — authentication state management
  • useTheme — dark mode support

Customization

The code lives at {workspace}/{vertical}/ui/. Edit the source files to build your application on top of the auth scaffold.


Redeployment

After making changes:

  1. Click Deploy UI in the UX.
  2. Nar builds the Vite project, uploads assets to S3, and invalidates the CloudFront cache.