-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
45 lines (44 loc) · 1.3 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
import { defineNuxtConfig } from "nuxt3";
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
css: ["~/assets/css/tailwind.css"],
build: {
postcss: {
postcssOptions: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
},
},
buildModules: ["@nuxtjs/svg", "@pinia/nuxt"],
publicRuntimeConfig: {
apiPort: process.env.API_PORT || "8000",
googleClientId: process.env.GOOGLE_CLIENT_ID,
},
meta: {
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ charset: "utf-8" },
{ "http-equiv": "X-UA-Compatible", content: "IE=edge" },
{ name: "theme-color", content: "#2788E1" },
{ name: "description", content: "Aplikacja ułatwiająca zakupy" },
{ name: "keywords", content: "zakupy, koszyk" },
{ name: "google-signin-scope", content: "profile email" },
{
name: "google-signin-client_id",
content: process.env.GOOGLE_CLIENT_ID,
},
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.svg" }],
script: [
{
src: "https://apis.google.com/js/platform.js",
defer: true,
async: true,
},
],
},
serverMiddleware: [{ path: "/api", handler: "~/api/index.ts" }],
});