Fix swagger

Fix nitro prerender
This commit is contained in:
2025-10-11 21:48:42 +02:00
parent ec216bfb9f
commit 86e3399928
4 changed files with 11 additions and 5 deletions

View File

@@ -17,6 +17,8 @@
**/docker-compose* **/docker-compose*
**/Dockerfile* **/Dockerfile*
**/node_modules **/node_modules
**/.nuxt
**/.data
**/npm-debug.log **/npm-debug.log
**/obj **/obj
**/secrets.dev.yaml **/secrets.dev.yaml

View File

@@ -2,6 +2,7 @@
FROM node:24-alpine AS builder FROM node:24-alpine AS builder
WORKDIR /app WORKDIR /app
COPY website/* /app COPY website/* /app
RUN npm -dd install -g npm RUN npm -dd install -g npm
RUN npm -dd install RUN npm -dd install

View File

@@ -2,18 +2,20 @@
<UApp> <UApp>
<UHeader> <UHeader>
<template #left> <template #left>
<NuxtLink to="https://github.com/C9Glax/tranga"><Icon name="i-lucide-github" />API</NuxtLink> <NuxtLink to="https://github.com/C9Glax/tranga" external noPrefetch
<NuxtLink to="https://github.com/C9Glax/tranga-website" ><Icon name="i-lucide-github" />API</NuxtLink
>
<NuxtLink to="https://github.com/C9Glax/tranga-website" external noPrefetch
><Icon name="i-lucide-github" />Website</NuxtLink ><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 ><Icon name="i-lucide-book-open" />Swagger</NuxtLink
> >
</template> </template>
<template #default> <template #default>
<NuxtLink to="/"> <NuxtLink to="/">
<div class="h-full flex gap-2 items-center"> <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 <p
style=" style="
background: linear-gradient(110deg, var(--color-pink), var(--color-blue)); background: linear-gradient(110deg, var(--color-pink), var(--color-blue));

View File

@@ -9,10 +9,11 @@ export default defineNuxtConfig({
openFetch: { openFetch: {
clients: { clients: {
api: { 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', schema: 'https://raw.githubusercontent.com/C9Glax/tranga/refs/heads/testing/API/openapi/API_v2.json',
}, },
}, },
}, },
vite: { plugins: [tailwindcss()] }, vite: { plugins: [tailwindcss()] },
nitro: { prerender: { failOnError: false } },
}); });