detail page port

This commit is contained in:
nicwands
2026-05-29 11:22:56 -04:00
parent b85d28c142
commit e22d75c50a
65 changed files with 7006 additions and 4044 deletions

View File

@@ -1,11 +1,9 @@
import { strapi } from '@strapi/client'
import * as prismic from '@prismicio/client'
export const data = async () => {
const client = strapi({
baseURL: 'https://cms.takerofnotes.com/api',
auth: import.meta.env.STRAPI_API_TOKEN,
})
const client = prismic.createClient('swang')
const global = client.single('global')
return await global.find()
const events = await client.getAllByType('event')
return { events }
}