WIP jordan
This commit is contained in:
@@ -1,28 +1,50 @@
|
||||
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). */
|
||||
devServer: {
|
||||
port: 3737,
|
||||
host: 'localhost'
|
||||
},
|
||||
modules: ['nuxt-open-fetch', '@nuxt/ui'],
|
||||
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: {
|
||||
clients: {
|
||||
customer: {
|
||||
baseURL: 'http://localhost:4000/api/v1',
|
||||
schema: 'http://localhost:4000/api/openapi'
|
||||
baseURL:
|
||||
process.env.NUXT_PUBLIC_CUSTOMER_API_BASE ?? `${devApiOrigin}/customer/api/v1`,
|
||||
schema:
|
||||
process.env.NUXT_PUBLIC_CUSTOMER_OPENAPI ?? `${devApiOrigin}/customer/api/openapi`
|
||||
},
|
||||
policy: {
|
||||
baseURL: 'http://localhost:4001/api/v1',
|
||||
schema: 'http://localhost:4001/api/openapi'
|
||||
baseURL:
|
||||
process.env.NUXT_PUBLIC_POLICY_API_BASE ?? `${devApiOrigin}/policy/api/v1`,
|
||||
schema:
|
||||
process.env.NUXT_PUBLIC_POLICY_OPENAPI ?? `${devApiOrigin}/policy/api/openapi`
|
||||
},
|
||||
providers: {
|
||||
baseURL: 'http://localhost:4002/api/v1',
|
||||
schema: 'http://localhost:4002/api/openapi'
|
||||
baseURL:
|
||||
process.env.NUXT_PUBLIC_PROVIDERS_API_BASE ?? `${devApiOrigin}/provider/api/v1`,
|
||||
schema:
|
||||
process.env.NUXT_PUBLIC_PROVIDERS_OPENAPI ?? `${devApiOrigin}/provider/api/openapi`
|
||||
},
|
||||
tasks: {
|
||||
baseURL: 'http://localhost:8080/api/v1',
|
||||
schema: 'http://localhost:8080/openapi3.json'
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user