78 lines
3.1 KiB
JavaScript
78 lines
3.1 KiB
JavaScript
import aliasConfig from './nuxt-vite.config.js';
|
|
|
|
const baseUrl = '/';
|
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
typescript: false,
|
|
modules: ['nuxt-gtag', '~/modules/nuxt-primevue/module'],
|
|
components: [
|
|
'~/components',
|
|
{
|
|
path: '~/components/layout',
|
|
prefetch: false
|
|
}
|
|
],
|
|
vite: aliasConfig,
|
|
nitro: {
|
|
alias: aliasConfig.resolve.alias
|
|
},
|
|
routeRules: {
|
|
'/accessibility': { redirect: { to: '/guides/accessibility', statusCode: 301 } },
|
|
'/installation': { redirect: { to: '/vite', statusCode: 301 } }
|
|
},
|
|
primevue: {
|
|
usePrimeVue: true,
|
|
options: {
|
|
ripple: true
|
|
},
|
|
importTheme: { from: '@/themes/app-theme.js' },
|
|
resolvePath: function ({ as, from, type }) {
|
|
const resolvedPath = from.replace('primevue', '@/components/lib');
|
|
|
|
return type === 'component' ? `${resolvedPath}/${as}.vue` : `${resolvedPath}/${as}.js`;
|
|
}
|
|
},
|
|
app: {
|
|
baseURL: baseUrl,
|
|
head: {
|
|
title: 'PrimeVue - Vue UI Component Library',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ name: 'description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
{ name: 'robots', content: 'index,follow' },
|
|
{ name: 'twitter:card', content: 'summary_large_image' },
|
|
{ name: 'twitter:site', content: '@primevue' },
|
|
{ name: 'twitter:title', content: 'PrimeVue | Vue UI Component Library' },
|
|
{ name: 'twitter:description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
{ property: 'og:type', content: 'website' },
|
|
{ property: 'og:title', content: 'PrimeVue | Vue UI Component Library' },
|
|
{ property: 'og:url', content: 'https://primevue.org/' },
|
|
{ property: 'og:description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
{ property: 'og:image', content: 'https://www.primefaces.org/static/social/primevue-preview.jpg' },
|
|
{ property: 'og:ttl', content: '604800' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', href: baseUrl + 'favicon.ico' },
|
|
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
|
|
],
|
|
script: [
|
|
{
|
|
src: baseUrl + 'scripts/prism.js',
|
|
'data-manual': true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
runtimeConfig: {
|
|
public: {
|
|
contextPath: baseUrl
|
|
}
|
|
},
|
|
gtag: {
|
|
id: 'G-48TTQ6G6KV'
|
|
},
|
|
css: ['@/assets/styles/primeflex/primeflex-compat.css', '/node_modules/primeicons/primeicons.css', '@/assets/styles/flags.css', '@docsearch/css/dist/style.css', '@/assets/styles/layout/landing/_landing.scss', '@/assets/styles/layout/layout.scss']
|
|
});
|