mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 09:50:48 +02:00
Fix swagger
Fix nitro prerender
This commit is contained in:
@@ -2,18 +2,20 @@
|
||||
<UApp>
|
||||
<UHeader>
|
||||
<template #left>
|
||||
<NuxtLink to="https://github.com/C9Glax/tranga"><Icon name="i-lucide-github" />API</NuxtLink>
|
||||
<NuxtLink to="https://github.com/C9Glax/tranga-website"
|
||||
<NuxtLink to="https://github.com/C9Glax/tranga" external noPrefetch
|
||||
><Icon name="i-lucide-github" />API</NuxtLink
|
||||
>
|
||||
<NuxtLink to="https://github.com/C9Glax/tranga-website" external noPrefetch
|
||||
><Icon name="i-lucide-github" />Website</NuxtLink
|
||||
>
|
||||
<NuxtLink :to="`${$config.public.openFetch.api.baseURL}swagger`"
|
||||
<NuxtLink :to="`${$config.public.openFetch.api.baseURL}swagger`" external noPrefetch
|
||||
><Icon name="i-lucide-book-open" />Swagger</NuxtLink
|
||||
>
|
||||
</template>
|
||||
<template #default>
|
||||
<NuxtLink to="/">
|
||||
<div class="h-full flex gap-2 items-center">
|
||||
<img src="/blahaj.png" class="h-lh cursor-grab" >
|
||||
<img src="/blahaj.png" class="h-lh cursor-grab" />
|
||||
<p
|
||||
style="
|
||||
background: linear-gradient(110deg, var(--color-pink), var(--color-blue));
|
||||
|
@@ -9,10 +9,11 @@ export default defineNuxtConfig({
|
||||
openFetch: {
|
||||
clients: {
|
||||
api: {
|
||||
baseURL: 'http://127.0.0.1:6531/',
|
||||
baseURL: '/api/',
|
||||
schema: 'https://raw.githubusercontent.com/C9Glax/tranga/refs/heads/testing/API/openapi/API_v2.json',
|
||||
},
|
||||
},
|
||||
},
|
||||
vite: { plugins: [tailwindcss()] },
|
||||
nitro: { prerender: { failOnError: false } },
|
||||
});
|
||||
|
Reference in New Issue
Block a user