-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
38 lines (37 loc) · 1.01 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// https://nuxt.com/docs/api/configuration/nuxt-config
import process from 'node:process';
export default defineNuxtConfig({
compatibilityDate: '2025-01-27',
devtools: { enabled: true },
telemetry: false,
ssr: false,
modules: ['@nuxt/ui', '@nuxtjs/i18n'],
css: ['~/assets/css/main.css'],
app: {
head: {
title: 'Nuxt Template',
titleTemplate: '%s',
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
},
},
vite: {
server: {
allowedHosts: process.env.GITPOD_WORKSPACE_CLUSTER_HOST ? [`3000-${process.env.HOSTNAME}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`] : undefined,
},
},
typescript: {
strict: true,
},
i18n: {
locales: [
{ code: 'en', file: 'en.json' },
{ code: 'de', file: 'de.json' },
],
strategy: 'no_prefix',
defaultLocale: 'en',
bundle: {
optimizeTranslationDirective: false, // recommend to disable. see https://github.com/nuxt-modules/i18n/issues/3238#issuecomment-2672492536
},
},
});