Static HTML Fragment Rendering

Configured as a server to generate static HTML strings for integration with external services.

Configure the static server mode to generate static HTML.

Since the project premise is static server mode, please pay attention to the server configuration and deployment setup.

Only the inside of the body is rendered, and it does not include any styles or scripts. Please add them as needed according to your use case.

tsnuxt.config.ts
export default defineNuxtConfig({
 usebootstrap: {
  static: true,
  scss: undefined,
  icon: undefined,
  image: undefined,
  fonts: undefined,
  sitemap: undefined,
  robots: undefined,
  shiki: undefined,
  vueuse: undefined,
  integration: {
   protocol: {
    reqres: {
     type: 'fetch',
     prefix: 'https://reqres.in/api/',
    },
   },
  },
 },
},
);