Skip to content
Draft
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
10 changes: 5 additions & 5 deletions src/app/keystatic/keystatic.config.tsx → keystatic.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { config } from '@keystatic/core'
import type { LocalConfig, GitHubConfig } from '@keystatic/core'

// Schema
import admin from './schema/singletons/admin'
import events from './schema/collections/events'
import talks from './schema/collections/talks'
import persons from './schema/collections/persons'
import sponsors from './schema/collections/sponsors'
import admin from './src/app/keystatic/schema/singletons/admin'
import events from './src/app/keystatic/schema/collections/events'
import talks from './src/app/keystatic/schema/collections/talks'
import persons from './src/app/keystatic/schema/collections/persons'
import sponsors from './src/app/keystatic/schema/collections/sponsors'

// Storage strategy
const storage: LocalConfig['storage'] | GitHubConfig['storage'] =
Expand Down
5 changes: 3 additions & 2 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
import { NextConfig } from 'next'

const nextConfig: NextConfig = {
reactStrictMode: false,
async redirects() {
return [
Expand Down
5,225 changes: 3,486 additions & 1,739 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"dependencies": {
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.17",
"@keystatic/core": "^0.0.110",
"@keystatic/next": "^0.0.11",
"@keystatic/core": "^0.5.46",
"@keystatic/next": "^5.0.4",
"@markdoc/markdoc": "^0.5.1",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.9",
"@types/node": "^18.16.5",
Expand All @@ -24,7 +25,7 @@
"date-fns": "^2.30.0",
"eslint": "^8.40.0",
"eslint-config-next": "^13.4.5",
"next": "^13.5.10",
"next": "^15.2.4",
"postcss": "^8.4.31",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 6 additions & 0 deletions src/app/api/keystatic/[...params]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { makeRouteHandler } from '@keystatic/next/route-handler'
import config from '../../../../../keystatic.config'

export const { GET, POST } = makeRouteHandler({
config,
})
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { makePage } from '@keystatic/next/ui/app'
import config from '@/app/keystatic/keystatic.config'
import config from '../../../keystatic.config'

export default makePage(config)
11 changes: 2 additions & 9 deletions src/app/keystatic/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ export const metadata = {
title: 'Keystatic: Admin UI',
}

export default function RootLayout() {
return (
<html>
<head />
<body>
<KeystaticApp />
</body>
</html>
)
export default function Layout() {
return <KeystaticApp />
}
2 changes: 1 addition & 1 deletion src/app/keystatic/reader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createReader } from '@keystatic/core/reader'
import keystaticConfig from './keystatic.config'
import keystaticConfig from '../../../keystatic.config'

export const reader = createReader('', keystaticConfig)
1 change: 0 additions & 1 deletion src/components/event-card/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { TextLink } from '../text-link'
import { asyncComponent } from '@/lib/async-component'
import { reader } from '@/app/keystatic/reader'
import { Status, getStatus } from '@/lib/get-status'
import events from '@/app/keystatic/schema/collections/events'

const eventStatusClasses: Record<Status, string> = {
UPCOMING: 'bg-highlight',
Expand Down
15 changes: 0 additions & 15 deletions src/pages/api/keystatic/[[...params]].tsx

This file was deleted.