-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
39 lines (39 loc) · 896 Bytes
/
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxt/ui", "nuxt-mongoose", "@nuxtjs/seo", "@nuxtjs/google-fonts", "@vueuse/nuxt", "nuxt-rate-limit"],
app: {
head: {
templateParams: {
separator: "•",
},
},
},
site: {
url: "https://s.jooo.my.id",
name: "URLShort",
description: "convert your long URLs into manageable short links for easier sharing and improved usability!",
defaultLocale: "en",
},
seo: {
redirectToCanonicalSiteUrl: true,
},
googleFonts: {
families: {
"Plus Jakarta Sans": true,
},
},
mongoose: {
uri: process.env.MONGODB_URI,
options: {},
modelsDir: "models",
},
nuxtRateLimit: {
routes: {
"/api/generate": {
maxRequests: 1,
intervalSeconds: 3,
},
},
},
})