Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/cms/config/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default ({ env }) => ({
"preview_image",
"labels",
"url_alias",
"integrations",
"categories",
],
},
Expand Down
1 change: 1 addition & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const nextConfig = {
experimental: {
authInterrupts: true,
},
productionBrowserSourceMaps: true,
images: {
dangerouslyAllowLocalIP: IsDEV,
remotePatterns: [
Expand Down
10 changes: 10 additions & 0 deletions apps/web/src/app/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import {
packageCategoryMetadata,
} from "@/features/cms/pages/package-category";
import { TemplatePage, templateMetadata } from "@/features/cms/pages/template";
import {
TemplateCategoryPage,
templateCategoryMetadata,
} from "@/features/cms/pages/template-category";
import { UserPage, userMetadata } from "@/features/cms/pages/user";

// Regenerate static pages periodically.
Expand Down Expand Up @@ -65,6 +69,9 @@ const Router: NextPage<PageProps> = async ({ params }) => {
case "api::package-category.package-category": {
return <PackageCategoryPage documentId={page.documentId} />;
}
case "api::template-category.template-category": {
return <TemplateCategoryPage documentId={page.documentId} />;
}
case "api::help-page.help-page": {
return <HelpPagePage documentId={page.documentId} />;
}
Expand Down Expand Up @@ -134,6 +141,9 @@ export const generateMetadata = async ({
case "api::package-category.package-category": {
return packageCategoryMetadata(page.documentId);
}
case "api::template-category.template-category": {
return templateCategoryMetadata(page.documentId);
}
case "api::help-page.help-page": {
return helpPageMetadata(page.documentId);
}
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/components/content/avatar-pile/avatar-pile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ const AvatarPile = ({ items, clickable, size = "S", white = false }: Props) => {
style={{ marginLeft: i === 0 ? 0 : -8 }}
/>
{items.filter(Boolean).length === 1 && (
<span className="pl-2">{items.find(Boolean)?.name}</span>
<span className={`pl-2 ${white ? "text-white" : ""}`}>
{items.find(Boolean)?.name}
</span>
)}
</Wrapper>
) : (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/features/cms/pages/template/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const templateMetadata = async (
populate: {
preview_image: true,
url_alias: true,
owner: { fields: ["name"] },
owner: true,
},
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { RefinementList } from "react-instantsearch";
import { RefinementList } from "@/features/search/components/refinement-list/refinement-list";
import { SearchIndex } from "@/features/search/components/search-index";
import { Hit } from "./components";

Expand Down
Loading