-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
nuxt.config.ts
118 lines (103 loc) · 2.62 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
app: {
head: {
link: [{ rel: 'icon', type: 'image/svg', href: '/logo.svg' }],
},
layoutTransition: { name: 'fade', mode: 'out-in' },
pageTransition: {
name: 'fade',
mode: 'out-in',
},
},
modules: [
'@nuxt/image',
'@nuxt/devtools',
'@nuxthq/ui',
'@nuxtjs/supabase',
'@formkit/nuxt',
'~~/modules/server-assets',
],
image: {
providers: {
customProvider: {
name: 'supabase', // optional value to overrider provider name
provider: '~/utils/image-provider', // Path to custom provider
},
},
presets: {
cover: {
modifiers: {
width: 800,
resize: 'contain',
},
},
card: {
modifiers: {
width: 400,
resize: 'contain',
},
},
},
},
build: {
transpile: ['vue-filepond', 'filepond'],
},
ui: {
icons: ['heroicons', 'lucide'],
},
extends: [
'nuxt-lego',
'nuxt-seo-kit',
],
css: [
'@/assets/main.css',
'swiper/css',
'swiper/css/navigation',
'swiper/css/pagination',
],
runtimeConfig: {
public: {
SUPABASE_URL: process.env.SUPABASE_URL,
SUPABASE_KEY: process.env.SUPABASE_KEY,
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://madewithsupabase.com',
siteName: 'Made with Supabase',
siteDescription: 'A collection of projects made with Supabase – Websites, Mobile Apps, SaaS, Plugins and more!',
titleSeparator: '|',
language: 'en',
},
SUPABASE_SERVICE_KEY: process.env.SUPABASE_SERVICE_KEY,
},
routeRules: {
'/': { isr: 3600 },
'/p/**': { isr: 3600 },
'/tag': { isr: 3600 },
'/tag/**': { isr: 3600 },
'/hackathons': { static: true },
'/bring-the-func': { redirect: '/hackathons/bring-the-func' },
'/flutter-hackathon': { redirect: '/hackathons/flutter-hackathon' },
'/hacktoberfest': { redirect: '/hackathons/hacktoberfest' },
'/holiday-hackdays': { redirect: '/hackathons/holiday-hackdays' },
'/launch-week-5': { redirect: '/hackathons/launch-week-5' },
'/launch-week-6': { redirect: '/hackathons/launch-week-6' },
'/launch-week-7': { redirect: '/hackathons/launch-week-7' },
},
experimental: {
typedPages: true,
},
ogImage: {
defaults: {
component: 'OgDefault',
},
fonts: [
// will load the Noto Sans font from Google fonts
'Inter:400',
'Inter:500',
'Inter:600',
],
},
nitro: {
prerender: { crawlLinks: false },
},
plugins: ['~/plugins/analytics.client.ts'],
})