Skip to content
Open
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
25 changes: 0 additions & 25 deletions next.config.js

This file was deleted.

25 changes: 25 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import nextra from 'nextra'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
latex: true,
defaultShowCopyCode: true
})

/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/',
destination: '/home/explore',
permanent: true
}
]
}
}

export default withNextra(nextConfig)


10 changes: 10 additions & 0 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ const config: DocsThemeConfig = {
<meta name="apple-mobile-web-app-title" content="Allora" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<script defer data-domain="docs.allora.network" src="https://plausible.io/js/script.file-downloads.hash.outbound-links.pageview-props.tagged-events.js"></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.plausible = window.plausible || function() {
(window.plausible.q = window.plausible.q || []).push(arguments)
}
`,
}}
/>
</>
)
},
Expand Down