Fix various bugs

This commit is contained in:
Owen
2025-10-13 20:00:43 -07:00
parent 244d05adb1
commit cd8062ada3
6 changed files with 13 additions and 5 deletions

View File

@@ -29,6 +29,9 @@ RUN if [ "$DATABASE" = "pg" ]; then \
node esbuild.mjs -e server/setup/migrationsSqlite.ts -o dist/migrations.mjs; \
fi
# test to make sure the build output is there and error if not
RUN test -f dist/server.mjs
RUN npm run build:cli
FROM node:22-alpine AS runner

View File

@@ -17,7 +17,6 @@ import * as orgIdp from "#private/routers/orgIdp";
import * as billing from "#private/routers/billing";
import * as license from "#private/routers/license";
import { Router } from "express";
import { verifySessionUserMiddleware } from "@server/middlewares";
import { internalRouter as ir } from "@server/routers/internal";

View File

@@ -1,7 +1,6 @@
import { verifySession } from "@app/lib/auth/verifySession";
import UserProvider from "@app/providers/UserProvider";
import { cache } from "react";
import OrganizationLandingCard from "../../components/OrganizationLandingCard";
import MemberResourcesPortal from "../../components/MemberResourcesPortal";
import { GetOrgOverviewResponse } from "@server/routers/org/getOrgOverview";
import { internal } from "@app/lib/api";

View File

@@ -666,7 +666,7 @@ export default function ReverseProxyTargets(props: {
...target,
...data,
updated: true,
siteType: site?.type || null
// siteType: site?.type || null
}
: target
)

View File

@@ -69,6 +69,9 @@ export default async function OrgAuthPage(props: {
} catch (e) {}
if (!loginPage) {
console.debug(
`No login page found for host ${host}, redirecting to dashboard`
);
redirect(env.app.dashboardUrl);
}
@@ -90,6 +93,9 @@ export default async function OrgAuthPage(props: {
: subscriptionStatus?.tier === TierId.STANDARD;
if (build === "saas" && !subscribed) {
console.log(
`Org ${loginPage.orgId} is not subscribed, redirecting to dashboard`
);
redirect(env.app.dashboardUrl);
}
@@ -116,6 +122,7 @@ export default async function OrgAuthPage(props: {
}
}
} else {
console.log(`Host ${host} is the same`);
redirect(env.app.dashboardUrl);
}

View File

@@ -113,11 +113,11 @@ export function PathMatchModal({
</div>
</div>
<CredenzaFooter className="gap-2">
{value?.path && (
{/* {value?.path && (
)} */}
<Button variant="outline" onClick={handleClear}>
{t("clear")}
</Button>
)}
<Button onClick={handleSave} disabled={!path.trim()}>
{t("saveChanges")}
</Button>