Skip to content

0.9.0

Compare
Choose a tag to compare
@brkalow brkalow released this 04 Jun 19:43
· 131 commits to main since this release
  • Adds support for standalone docs pages, picked up by defining a docsRoot in the plugin options
  • Adds support for an index page, pass index to swingsetOptions
  • Each component now has its own route, instead of rendering being driven by a query parameter

Here's what the implementation looks like now:

// in /pages/[[...swingset]].jsx
import createPage from 'swingset/page'
import { createStaticProps, createStaticPath } from 'swingset/server'

export default createPage()
export const getStaticPaths = createStaticPaths()
export const getStaticProps = createStaticProps({
  /* mdxOptions = {} */
})