FAQ

Frequently Asked Questions

General Questions

Nextra是什么?

测的是

Is Nextra free to use?

Yes, Nextra is open source and free to use under the MIT license.

Technical Questions

How do I add custom components?

You can create custom components in the components directory and import them in your MDX files:

import { MyComponent } from '../components/MyComponent'
 
<MyComponent />

How do I customize the theme?

You can customize the theme by modifying the theme.config.jsx file. Check out the theme configuration for more details.

Can I use TypeScript?

Yes, Nextra fully supports TypeScript. You can use .tsx and .ts files in your project.

Deployment

How do I deploy my Nextra site?

You can deploy your Nextra site to any platform that supports Next.js, such as:

  • Vercel
  • Netlify
  • GitHub Pages
  • AWS Amplify

Do I need a server?

No, Nextra can be exported as a static site and hosted anywhere.