nuxt-prawo-jazdy/nuxt.config.ts
NetMan 63121da4b7 postgres -> sqlite, pinia/middleware fix?
other smaller: little type fixes, little changes to ui - more readable category chooser
- result screen with correct, incorrect and chosen answers
little changes to readme
2025-12-13 16:07:23 +01:00

53 lines
1 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
import 'dotenv/config';
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxt/fonts',
'@pinia/nuxt',
'pinia-plugin-persistedstate/nuxt',
'@nuxt/eslint',
'@nuxt/image',
],
ssr: false,
imports: {
dirs: ['types/*.ts', 'store/*.ts', 'types/**/*.ts'],
},
devtools: { enabled: true },
css: ['~/assets/main.css'],
runtimeConfig: {
public: {
cdn_url: process.env.CDN_URL,
},
},
routeRules: {
'/': { prerender: true },
},
compatibilityDate: '2024-11-01',
eslint: {
config: {
stylistic: {
indent: 2,
semi: true,
quotes: 'single',
jsx: false,
},
},
},
image: {
providers: {
selfhost: {
name: 'selfhost',
provider: '~/providers/selfhost.ts',
options: {
baseUrl: process.env.CDN_URL,
},
},
},
provider: 'selfhost',
},
pinia: {
storesDirs: ['./store/**'],
},
});