-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
38 lines (33 loc) · 1.27 KB
/
Copy pathnuxt.config.ts
File metadata and controls
38 lines (33 loc) · 1.27 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
import { defineNuxtConfig } from 'nuxt/config'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover' },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }
],
link: [
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }
]
}
},
compatibilityDate: '2024-09-08',
devtools: { enabled: true },
nitro: {
preset: 'cloudflare-pages'
},
runtimeConfig: {
// Private keys, server only. On Cloudflare Pages they are set at runtime
// by NUXT_-prefixed env vars (NUXT_GITHUB_TOKEN -> githubToken).
// Server code must call useRuntimeConfig(event) — without the event,
// Workers return a config frozen before env vars exist.
// Optional: raises GitHub API rate limits for /api/projects and /api/meta
githubToken: '',
// Public keys that are exposed to the client
public: {}
}
});