Files
wanderer/web/vite.config.ts
Flomp 345452e720 Improve frontpage performance (#929)
* initial commit

* merge with origin/main

* fix package-lock.json

* fix tiptap mentions

* remove flutter

* update package-lock.json

* disable tailwindcss/typography until https://github.com/tailwindlabs/tailwindcss/issues/19946 is fixed

* reactivate tailwind/typography after fix

---------

Co-authored-by: Christian Beutel <>
Co-authored-by: slothful-vassal <89943360+slothful-vassal@users.noreply.github.com>
2026-04-22 09:04:53 +02:00

34 lines
1.1 KiB
TypeScript

import { enhancedImages } from '@sveltejs/enhanced-img';
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import fs from 'fs';
import openapiPlugin from 'sveltekit-openapi-generator';
import { defineConfig } from 'vitest/config';
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
export default defineConfig({
plugins: [enhancedImages(), openapiPlugin({
info: {
title: 'Wanderer API',
version: `${packageJson.version}`,
description: 'API documentation for wanderer backend',
},
outputPath: 'static/docs/api/wanderer.openapi.json',
include: ['src/routes/api/v1/**/*.{js,ts}'],
baseSchemasPath: 'src/lib/models/api/openapi_schemas.ts',
}), tailwindcss(), sveltekit()],
test: { include: ['src/**/*.{test,spec}.{js,ts}'] },
ssr: { noExternal: ['three'] },
...(process.env.WANDERER_ENV == "dev" ? {
server: {
// https: {
// key: fs.readFileSync('.svelte-kit/key.pem'),
// cert: fs.readFileSync('.svelte-kit/cert.pem')
// },
// host: true, // true
// port: 443 // 443
}
} : {})
});