sanity-io / sanity-template-nextjs-clean

A clean Next.js template with a native authoring experience
https://template-nextjs-clean.sanity.build
142 stars 57 forks source link

feat: use pages instead of app directory for routing #11

Closed snorrees closed 1 year ago

snorrees commented 1 year ago

Update deploy link with the following. Let me know if I should change anything:

const p = {
  'repository-url': 'https://github.com/sanity-io/sanity-template-sanity-template-nextjs-clean',
  'repository-name': 'nextjs-sanity-clean',
  'project-name': 'nextjs-sanity-clean',
  'demo-title': 'A minimal Sanity + Next setup',
  'demo-description': 'A Sanity-powered next setup ready for customization',
  'demo-url': 'https://nextjs-clean.sanity.build/?utm_source=vercel&utm_medium=referral',
  'integration-ids': 'oac_hb2LITYajhRQ0i4QznmKH7gx',
  'external-id': 'nextjs;template=nextjs-sanity-clean'
}

const pOut = new URLSearchParams()

Object.entries(p).forEach(([key, value]) => {
  pOut.set(key, value)
})

console.log(pOut.toString())
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
template-nextjs-clean ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 16, 2023 at 1:14PM (UTC)
kmelve commented 1 year ago

📝 Changed routes:

/ /studio/[[...index]]
Screenshot of /
(view full size)
Screenshot of /studio/[[...index]]
(view full size)

And 2 other routes:

Commit 1ecf54b53835a8abd62db65d548e9805ce267d9f (https://template-nextjs-clean-122aw7co5.sanity.build).