48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: "2026-01-01",
|
|
|
|
// Disabled so the exact same static bundle can be served from the browser
|
|
// and embedded verbatim into the Tauri desktop shell.
|
|
ssr: false,
|
|
|
|
devtools: { enabled: true },
|
|
|
|
modules: ["@nuxtjs/supabase", "@pinia/nuxt"],
|
|
|
|
supabase: {
|
|
redirect: true,
|
|
redirectOptions: {
|
|
login: "/login",
|
|
callback: "/confirm",
|
|
exclude: ["/login"],
|
|
},
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: process.env.NUXT_PUBLIC_API_BASE || "http://localhost:3001",
|
|
wsBase: process.env.NUXT_PUBLIC_WS_BASE || "ws://localhost:3001",
|
|
go2rtcStreamBase: process.env.NUXT_PUBLIC_GO2RTC_STREAM_BASE || "http://localhost:1984",
|
|
},
|
|
},
|
|
|
|
// apps/desktop's src-tauri config points at this static output directory.
|
|
nitro: {
|
|
output: {
|
|
publicDir: "../desktop/dist",
|
|
},
|
|
},
|
|
|
|
vite: {
|
|
// Tauri needs a fixed, predictable dev server port.
|
|
server: {
|
|
strictPort: true,
|
|
},
|
|
},
|
|
|
|
typescript: {
|
|
strict: true,
|
|
},
|
|
});
|