-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
69 lines (67 loc) · 1.97 KB
/
nuxt.config.ts
File metadata and controls
69 lines (67 loc) · 1.97 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// https://nuxt.com/docs/api/configuration/nuxt-config
import tailwindcss from "@tailwindcss/vite";
export default defineNuxtConfig({
ssr: true,
modules: ['@nuxt/ui', '@nuxtjs/i18n'],
css: ['~/assets/css/main.css'],
runtimeConfig: {
public: {
backendUrl: process.env.NODE_ENV === 'production' ? 'https://api.chronometer.cloud' : 'http://localhost:8000',
websocketBackendUrl: process.env.NODE_ENV === 'production' ? 'wss://api.chronometer.cloud' : 'ws://localhost:8000',
gitSha: process.env.WORKERS_CI_COMMIT_SHA || 'development',
}
},
app: {
head: {
title: 'Chronometers.cloud | Cloud-synchronized chronometers',
htmlAttrs: {
lang: 'en',
},
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/assets/favicon.ico' },
]
}
},
i18n: {
locales: [
{ code: 'en', language: 'en-US', file: 'en.json' },
{ code: 'fr', language: 'fr-FR', file: 'fr.json' },
{ code: 'es', language: 'es-ES', file: 'es.json' },
],
defaultLocale: 'en',
strategy: "no_prefix",
detectBrowserLanguage: false,
},
nitro: {
preset: "cloudflare_module",
cloudflare: {
deployConfig: true,
nodeCompat: true,
wrangler: {
name: "chronometer-cloud-frontend",
observability: {
logs: {
enabled: false,
head_sampling_rate: 1,
invocation_logs: true
}
},
}
},
prerender: {
autoSubfolderIndex: false
},
},
vite: {
plugins: [
tailwindcss(),
],
},
icon: {
serverBundle: "local",
clientBundle: {
scan: true,
sizeLimitKb: 256,
}
}
})