This commit is contained in:
@@ -1,23 +1,27 @@
|
||||
const devApiOrigin = 'https://dev.api.corredorconect.com'
|
||||
|
||||
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2026-02-25',
|
||||
/** Dev server URL — open the same port in the browser (see terminal if the port was busy). */
|
||||
modules: ['nuxt-open-fetch', '@nuxt/ui', '@nuxt/eslint'],
|
||||
modules: ['nuxt-open-fetch', '@nuxt/ui', '@nuxt/eslint', '@zitadel/nuxt-auth'],
|
||||
auth: {
|
||||
baseURL: '/api/auth',
|
||||
provider: {
|
||||
type: 'authjs',
|
||||
trustHost: true,
|
||||
defaultProvider: 'zitadel',
|
||||
},
|
||||
sessionRefresh: {
|
||||
enablePeriodically: false,
|
||||
enableOnWindowFocus: false,
|
||||
},
|
||||
},
|
||||
css: ['~/assets/css/main.css'],
|
||||
ui: {
|
||||
colorMode: false
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
/**
|
||||
* Sent as `Authorization: Bearer …` on Policy API requests (required for protected routes per OpenAPI).
|
||||
* Set in `.env` as `NUXT_PUBLIC_POLICY_API_TOKEN`.
|
||||
*/
|
||||
policyApiToken: process.env.NUXT_PUBLIC_POLICY_API_TOKEN ?? ''
|
||||
}
|
||||
},
|
||||
openFetch: {
|
||||
runtimeConfig: {},
|
||||
openFetch: {
|
||||
clients: {
|
||||
customer: {
|
||||
baseURL:
|
||||
|
||||
Reference in New Issue
Block a user