[READ-ONLY] Mirror of https://github.com/danielroe/vuejs-de. vuejs-de.netlify.app/
0

Configure Feed

Select the types of activity you want to include in your feed.

vuejs-de / nuxt.config.ts
628 B 29 lines
1import { addComponent } from '@nuxt/kit' 2import * as troisjs from 'troisjs' 3 4// https://v3.nuxtjs.org/api/configuration/nuxt.config 5export default defineNuxtConfig({ 6 css: ['@picocss/pico'], 7 runtimeConfig: { 8 catApiToken: '' 9 }, 10 // Coming soon ... ! 11 routes: { 12 '/cat/**': { static: true }, 13 '/api/**': { cors: true } 14 }, 15 modules: [ 16 function () { 17 for (const name of Object.keys(troisjs)) { 18 // Skip non-component imports 19 if (!name.match(/^[A-Z]/)) continue 20 21 addComponent({ 22 name, 23 export: name, 24 filePath: 'troisjs', 25 }) 26 } 27 } 28 ] 29})