Files
aigen/nuxt.config.ts
T
TowstyandCursor c4e6af9f77 Fix generation progress getting stuck at 1% after Comfy finishes.
Poll Comfy history and the job snapshot so the browser still gets the video when the live stream is buffered or the websocket misses completion.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 18:23:23 -05:00

52 lines
1.9 KiB
TypeScript

export default defineNuxtConfig({
compatibilityDate: '2025-08-01',
modules: ['@nuxtjs/tailwindcss'],
css: ['~/assets/css/main.css'],
app: {
head: {
title: 'AIGen — MiniMax H3',
htmlAttrs: { lang: 'en', class: 'dark' },
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#09090b' },
{ name: 'description', content: 'Headless MiniMax H3 image-to-video studio relayed to local ComfyUI.' }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap'
}
]
}
},
runtimeConfig: {
comfyHost: process.env.COMFY_HOST || '',
sessionSecret: process.env.NUXT_SESSION_SECRET || '',
oidcClientId: process.env.NUXT_OIDC_CLIENT_ID || '',
oidcClientSecret: process.env.NUXT_OIDC_CLIENT_SECRET || '',
oidcIssuer: process.env.NUXT_OIDC_ISSUER || '',
oidcAuthorizeUrl: process.env.NUXT_OIDC_AUTHORIZE_URL || '',
oidcTokenUrl: process.env.NUXT_OIDC_TOKEN_URL || '',
oidcUserinfoUrl: process.env.NUXT_OIDC_USERINFO_URL || '',
libraryDir: process.env.LIBRARY_DIR || (process.env.NODE_ENV === 'production' ? '/data/library' : '.data/library'),
public: {
authEnabled: process.env.NUXT_PUBLIC_AUTH_ENABLED === 'true'
}
},
nitro: {
preset: 'node-server',
routeRules: {
'/api/generate/**': {
headers: {
'Cache-Control': 'no-cache, no-store, no-transform',
'X-Accel-Buffering': 'no'
}
}
}
}
})