1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 13:19:41 +02:00
mealie/frontend/nuxt.config.js

153 lines
3.6 KiB
JavaScript
Raw Normal View History

2021-07-31 14:00:28 -08:00
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
2021-08-01 19:24:47 -08:00
titleTemplate: "%s - frontend",
title: "frontend",
2021-07-31 14:00:28 -08:00
meta: [
2021-08-01 19:24:47 -08:00
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "" },
{ name: "format-detection", content: "telephone=no" },
2021-07-31 14:00:28 -08:00
],
2021-08-01 19:24:47 -08:00
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
layoutTransition: {
name: "layout",
mode: "out-in",
2021-07-31 14:00:28 -08:00
},
// Global CSS: https://go.nuxtjs.dev/config-css
2021-08-01 19:24:47 -08:00
css: [{ src: "~/assets/main.css" }, { src: "~/assets/style-overrides.scss" }],
2021-07-31 14:00:28 -08:00
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
2021-08-01 19:24:47 -08:00
plugins: ["~/plugins/globals.js"],
2021-07-31 14:00:28 -08:00
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
2021-08-01 19:24:47 -08:00
"@nuxt/typescript-build",
2021-07-31 14:00:28 -08:00
// https://go.nuxtjs.dev/vuetify
2021-08-01 19:24:47 -08:00
"@nuxtjs/vuetify",
// https://composition-api.nuxtjs.org/getting-started/setup
"@nuxtjs/composition-api/module",
2021-07-31 14:00:28 -08:00
],
2021-08-01 19:24:47 -08:00
env: {
PUBLIC_SITE: process.env.PUBLIC_SITE || true,
BASE_URL: process.env.BASE_URL || "",
ALLOW_SIGNUP: process.env.ALLOW_SIGNUP || true,
},
2021-07-31 14:00:28 -08:00
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
2021-08-01 19:24:47 -08:00
"@nuxtjs/axios",
2021-07-31 14:00:28 -08:00
// https://go.nuxtjs.dev/pwa
2021-08-01 19:24:47 -08:00
"@nuxtjs/pwa",
// https://i18n.nuxtjs.org/setup
"nuxt-i18n",
// https://auth.nuxtjs.org/guide/setup
"@nuxtjs/auth-next",
// https://github.com/nuxt-community/proxy-module
"@nuxtjs/proxy",
2021-07-31 14:00:28 -08:00
],
2021-08-01 19:24:47 -08:00
proxy: {
// see Proxy section
"/api": {
changeOrigin: true,
target: "http://localhost:9000",
},
},
auth: {
redirect: {
login: "/user/login",
logout: "/",
callback: "/login",
home: "/",
},
// Options
strategies: {
local: {
token: {
property: "access_token",
global: true,
// required: true,
// type: 'Bearer'
},
user: {
property: "",
autoFetch: true,
},
endpoints: {
login: {
url: "/api/auth/token",
method: "post",
propertyName: "access_token",
},
refresh: { url: "/api/auth/refresh", method: "post" },
user: { url: "/api/users/self", method: "get" },
},
},
},
},
i18n: {
locales: [
{
code: "en-US",
file: "en-US.js",
},
],
lazy: true,
langDir: "lang/messages",
defaultLocale: "en-US",
},
2021-07-31 14:00:28 -08:00
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
2021-08-01 19:24:47 -08:00
lang: "en",
},
2021-07-31 14:00:28 -08:00
},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
2021-08-01 19:24:47 -08:00
customVariables: ["~/assets/variables.scss"],
2021-07-31 14:00:28 -08:00
theme: {
2021-08-01 19:24:47 -08:00
dark: false,
2021-07-31 14:00:28 -08:00
themes: {
dark: {
2021-08-01 19:24:47 -08:00
primary: "#E58325",
accent: "#00457A",
secondary: "#973542",
success: "#43A047",
info: "#4990BA",
warning: "#FF4081",
error: "#EF5350",
},
light: {
primary: "#E58325",
accent: "#00457A",
secondary: "#973542",
success: "#43A047",
info: "#4990BA",
warning: "#FF4081",
error: "#EF5350",
},
},
},
2021-07-31 14:00:28 -08:00
},
// Build Configuration: https://go.nuxtjs.dev/config-build
2021-08-01 19:24:47 -08:00
build: {},
};