40 lines
786 B
TypeScript
40 lines
786 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
import gltf from "vite-plugin-gltf"; // (b) Vite
|
|
|
|
import { draco } from "@gltf-transform/functions";
|
|
export default defineNuxtConfig({
|
|
devtools: { enabled: true },
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
"@nuxt/image",
|
|
"nuxt-icon",
|
|
"nuxt-svgo",
|
|
'@tresjs/nuxt',
|
|
'nuxt-anchorscroll',
|
|
'@nuxtjs/robots',
|
|
],
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: '/api',
|
|
baseUrl: '',
|
|
},
|
|
},
|
|
routeRules: {
|
|
'/index.html': { redirect: '/' },
|
|
'/index.php': { redirect: '/' },
|
|
},
|
|
vite: {
|
|
assetsInclude: ['**/*.glb', '**/*.gltf'],
|
|
plugins: [
|
|
gltf({
|
|
transforms: [draco()],
|
|
}),
|
|
],
|
|
},
|
|
robots: {
|
|
rules: {
|
|
UserAgent: '*',
|
|
Disallow: '/',
|
|
}
|
|
}
|
|
}) |