No description
- TypeScript 86.4%
- Dockerfile 9%
- JavaScript 4.4%
- CSS 0.2%
| .forgejo/workflows | ||
| docs | ||
| helm | ||
| public | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitignore | ||
| .npmrc | ||
| .prettierrc | ||
| catalog-info.yaml | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| next.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| postcss.config.mjs | ||
| README.md | ||
| renovate.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||
${{ values.name }}
A Next.js frontend template that, the moment it is instantiated, builds, deploys, logs a real person in through authentik, and calls a backend with a Bearer token — with nothing hand-edited.
The Next.js server is the BFF. @infra/platform-nextjs-starter supplies the Auth.js configuration,
the protected-route middleware and apiFetch; this repository supplies a login and logout
affordance, a session-aware header and one example page that reads a backend over in-cluster DNS.
- Stack: Next.js App Router, TypeScript, Tailwind, Auth.js v5, Vitest, Node 22
- The server holds the tokens. The browser holds an encrypted httpOnly cookie, and
useUser()returns aCurrentUserand nothing else.
Develop
pnpm install
pnpm dev # needs a .env.local: OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, AUTH_SECRET, AUTH_URL
pnpm test
pnpm build
Docs
TechDocs renders docs/docs/ (see docs/mkdocs.yml for the nav). The authentik blueprint an
instance needs lives at docs/docs/authentik.md.