mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 18:22:12 +00:00
docs: backup ./apps/login/.env.local
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@ dist
|
|||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
.env
|
.env
|
||||||
|
./apps/login/.env.local.bak
|
||||||
.cache
|
.cache
|
||||||
server/dist
|
server/dist
|
||||||
public/dist
|
public/dist
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ or have limited resources on your local machine.
|
|||||||
### Developing Against Your Local ZITADEL Instance
|
### Developing Against Your Local ZITADEL Instance
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Backup your ./apps/login/.env.local if it exists to ./apps/login/.env.local.bak
|
||||||
|
mv ./apps/login/.env.local ./apps/login/.env.local.bak
|
||||||
|
|
||||||
|
# Run ZITADEL and configure ./apps/login/.env.local
|
||||||
docker compose --file ./acceptance/docker-compose.yaml run setup
|
docker compose --file ./acceptance/docker-compose.yaml run setup
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
12
apps/login/middleware.ts
Normal file
12
apps/login/middleware.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { NextResponse } from 'next/server';
|
||||||
|
import type { NextRequest } from 'next/server';
|
||||||
|
|
||||||
|
// This function can be marked `async` if using `await` inside
|
||||||
|
export function middleware(request: NextRequest) {
|
||||||
|
return NextResponse.redirect(new URL('/home', request.url));
|
||||||
|
}
|
||||||
|
|
||||||
|
// See "Matching Paths" below to learn more
|
||||||
|
export const config = {
|
||||||
|
matcher: '/about/:path*',
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user