Skip to content

Commit

Permalink
fix sanity login error
Browse files Browse the repository at this point in the history
  • Loading branch information
surjithctly committed Jan 25, 2024
1 parent f1ea1aa commit 169bf5e
Show file tree
Hide file tree
Showing 7 changed files with 2,628 additions and 2,692 deletions.
5 changes: 0 additions & 5 deletions app/(sanity)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
}

export default function RootLayout({
children,
}: {
Expand Down
1 change: 0 additions & 1 deletion app/(sanity)/studio/[[...index]]/head.tsx

This file was deleted.

14 changes: 8 additions & 6 deletions app/(sanity)/studio/[[...index]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use client";

/**
* This route is responsible for the built-in authoring environment using Sanity Studio v3.
* All routes under /studio will be handled by this file using Next.js' catch-all routes:
Expand All @@ -9,9 +7,13 @@
* https://github.com/sanity-io/next-sanity
*/

import { NextStudio } from "next-sanity/studio";
import config from "sanity.config";
import Studio from './studio'

export const dynamic = 'force-static'

export { metadata } from 'next-sanity/studio/metadata'
export { viewport } from 'next-sanity/studio/viewport'

export default function StudioPage() {
return <NextStudio config={config} />;
}
return <Studio />
}
11 changes: 11 additions & 0 deletions app/(sanity)/studio/[[...index]]/studio.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use client'

import "./style.css"

import { NextStudio } from 'next-sanity/studio'

import config from '@/sanity.config'

export default function Studio() {
return <NextStudio config={config} />
}
3 changes: 3 additions & 0 deletions app/(sanity)/studio/[[...index]]/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
font-size: 18px;
}
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,47 @@
"lint": "next lint"
},
"dependencies": {
"@headlessui/react": "^1.7.13",
"@heroicons/react": "^2.0.17",
"@portabletext/react": "^2.0.2",
"@sanity/code-input": "^4.1.0",
"@sanity/icons": "^2.2.2",
"@headlessui/react": "^1.7.18",
"@heroicons/react": "^2.1.1",
"@portabletext/react": "^3.0.11",
"@sanity/code-input": "^4.1.2",
"@sanity/icons": "^2.8.0",
"@sanity/image-url": "^1.0.2",
"@sanity/table": "^1.0.1",
"@sanity/types": "^3.8.3",
"@sanity/ui": "^1.3.1",
"@sanity/vision": "^3.8.3",
"@tailwindcss/typography": "^0.5.9",
"@vercel/og": "^0.5.1",
"@sanity/table": "^1.1.2",
"@sanity/types": "^3.26.0",
"@sanity/ui": "^2.0.1",
"@sanity/vision": "^3.26.0",
"@tailwindcss/typography": "^0.5.10",
"@vercel/og": "^0.6.2",
"@web3forms/react": "^1.1.3",
"clsx": "^1.2.1",
"date-fns": "^2.29.3",
"clsx": "^2.1.0",
"date-fns": "^3.3.1",
"get-video-id": "^3.6.5",
"next": "^13.4.12",
"next-sanity": "^5.1.1",
"next-seo": "^5.15.0",
"next-sitemap": "^4.0.6",
"next": "^14.1.0",
"next-sanity": "^7.0.12",
"next-seo": "^6.4.0",
"next-sitemap": "^4.2.3",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.43.9",
"react-hook-form": "^7.49.3",
"react-iframe": "^1.8.5",
"react-refractor": "^2.1.7",
"sanity": "^3.9.0",
"sanity-plugin-asset-source-unsplash": "^1.0.6",
"styled-components": "^5.3.9",
"swr": "^2.1.2",
"typescript": "^5.0.4"
"sanity": "^3.26.0",
"sanity-plugin-asset-source-unsplash": "^1.1.2",
"styled-components": "^6.1.8",
"swr": "^2.2.4",
"typescript": "^5.3.3"
},
"devDependencies": {
"autoprefixer": "^10.4.14",
"eslint": "^8.38.0",
"eslint-config-next": "^13.3.0",
"eslint-config-sanity": "^6.0.0",
"postcss": "^8.4.21",
"prettier": "^2.8.7",
"prettier-plugin-tailwindcss": "^0.2.7",
"sharp": "^0.32.0",
"tailwindcss": "^3.3.1"
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.0",
"eslint-config-sanity": "^7.0.1",
"postcss": "^8.4.33",
"prettier": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.11",
"sharp": "^0.33.2",
"tailwindcss": "^3.4.1"
}
}
Loading

1 comment on commit 169bf5e

@vercel
Copy link

@vercel vercel bot commented on 169bf5e Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.