mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 21:29:50 +02:00
Use nuxtaptparty insstead of openfetch
This commit is contained in:
@@ -5,13 +5,15 @@ export default defineNuxtConfig({
|
||||
devtools: { enabled: true },
|
||||
vite: { plugins: [tailwindcss()] },
|
||||
css: ['~/assets/css/main.css'],
|
||||
modules: ['@nuxt/content', '@nuxt/eslint', '@nuxt/image', '@nuxt/ui', 'nuxt-open-fetch'],
|
||||
devServer: { host: '127.0.0.1' },
|
||||
openFetch: {
|
||||
openAPITS: { exportType: false, enum: true, alphabetize: true },
|
||||
clients: {
|
||||
api: { schema: 'http://127.0.0.1:6531/swagger/v2/swagger.json', baseURL: 'http://127.0.0.1:6531/' },
|
||||
},
|
||||
},
|
||||
ssr: true,
|
||||
});
|
||||
modules: ['@nuxt/content', '@nuxt/eslint', '@nuxt/image', '@nuxt/ui', 'nuxt-api-party'],
|
||||
devServer: { host: '127.0.0.1' },runtimeConfig: {
|
||||
apiParty: {
|
||||
endpoints: {
|
||||
api: {
|
||||
url: 'http://127.0.0.1:6531',
|
||||
schema: 'https://raw.githubusercontent.com/C9Glax/tranga/refs/heads/testing/API/openapi/API_v2.json',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user