Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Sanity example for App Router
Browse files Browse the repository at this point in the history
stipsan committed Mar 8, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent 26eca12 commit 0263240
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cms-sanity/app/(blog)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "tailwindcss/tailwind.css";
import "../globals.css";

import { SpeedInsights } from "@vercel/speed-insights/next";
import { Metadata } from "next";
2 changes: 1 addition & 1 deletion examples/cms-sanity/app/(sanity)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "tailwindcss/tailwind.css";
import "../globals.css";

import { Inter } from "next/font/google";

3 changes: 3 additions & 0 deletions examples/cms-sanity/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 0 additions & 1 deletion examples/cms-sanity/sanity/plugins/settings.tsx
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ export const singletonPlugin = definePlugin((types: string[]) => {
// Hide 'Singletons (such as Settings)' from new document options
// https://user-images.githubusercontent.com/81981/195728798-e0c6cf7e-d442-4e58-af3a-8cd99d7fcc28.png
newDocumentOptions: (prev, { creationContext, ...rest }) => {
console.log(prev, creationContext, rest);
if (creationContext.type === "global") {
return prev.filter(
(templateItem) => !types.includes(templateItem.templateId),

0 comments on commit 0263240

Please sign in to comment.