Skip to content

Commit

Permalink
add plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
Loosetooth committed Mar 16, 2024
1 parent 4f794ff commit a76d3f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@ export default withNextra({
},
]
},
async rewrites() {
return [
{
source: '/js/script.js',
destination: 'https://plausible.craftadoc.com/js/script.js'
},
{
source: '/api/event', // Or '/api/event/' if you have `trailingSlash: true` in this config
destination: 'https://plausible.craftadoc.com/api/event'
}
];
},
})
1 change: 1 addition & 0 deletions theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default {
<meta property="og:description" content="This book is designed for readers with a basic understanding of physics. It offers an alternative approach to contemporary physics, focusing on the electron-positron lattice model. This model helps explain complex physical phenomena, derive fundamental laws, and perform calculations that may seem challenging in traditional presentations. If you're looking for a more accessible way to explore these topics and understand the 'whys' behind them, this book might be a valuable resource for you." />
<meta property="og:image" content="https://loosetooth.github.io/epola-space-nextra/meta-image.png" />
<link rel="icon" type="image/png" href="https://loosetooth.github.io/epola-space-nextra/favicon.png"></link>
<script defer data-domain="codebenchers.com" data-api="/api/event" src="/js/script.js"></script>
</>
)
// ... other theme options
Expand Down

0 comments on commit a76d3f3

Please sign in to comment.