Skip to content

Commit ba1e438

Browse files
committed
remove alloy, change auth defaul to disabled, add settings page in me dropdown
1 parent af2d123 commit ba1e438

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/web/src/app/[domain]/components/settingsDropdown.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
3333
import { signOut } from "next-auth/react"
3434
import { env } from "@/env.mjs";
3535
import posthog from "posthog-js";
36+
import { useDomain } from "@/hooks/useDomain";
3637

3738
interface SettingsDropdownProps {
3839
menuButtonClassName?: string;
@@ -45,6 +46,7 @@ export const SettingsDropdown = ({
4546
const { theme: _theme, setTheme } = useTheme();
4647
const [keymapType, setKeymapType] = useKeymapType();
4748
const { data: session, update } = useSession();
49+
const domain = useDomain();
4850

4951
const theme = useMemo(() => {
5052
return _theme ?? "light";
@@ -146,6 +148,12 @@ export const SettingsDropdown = ({
146148
</DropdownMenuSubContent>
147149
</DropdownMenuPortal>
148150
</DropdownMenuSub>
151+
<DropdownMenuItem asChild>
152+
<a href={`/${domain}/settings`}>
153+
<Settings className="h-4 w-4 mr-2" />
154+
<span>Settings</span>
155+
</a>
156+
</DropdownMenuItem>
149157
</DropdownMenuGroup>
150158
<DropdownMenuSeparator />
151159
<div className="px-2 py-1 text-sm text-muted-foreground">

packages/web/src/env.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const env = createEnv({
4444
DATABASE_URL: z.string().url(),
4545

4646
SOURCEBOT_TENANCY_MODE: tenancyModeSchema.default("single"),
47-
SOURCEBOT_AUTH_ENABLED: booleanSchema.default('true'),
47+
SOURCEBOT_AUTH_ENABLED: booleanSchema.default('false'),
4848
CONFIG_PATH: z.string().optional(),
4949

5050
// Misc UI flags

0 commit comments

Comments
 (0)