104 lines
2.3 KiB
JavaScript
104 lines
2.3 KiB
JavaScript
export default {
|
|
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
|
|
ssr: false,
|
|
server: { host: '0.0.0.0' },
|
|
|
|
// Target: https://go.nuxtjs.dev/config-target
|
|
target: 'static',
|
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
head: {
|
|
title: 'Система оценки',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{
|
|
hid: 'description',
|
|
name: 'description',
|
|
content: 'Пространство оценки проектов и команд хакатона CyberGarden',
|
|
},
|
|
{ name: 'format-detection', content: 'telephone=no' },
|
|
],
|
|
link: [{ rel: 'icon', type: 'image/png', href: '/icon.png' }],
|
|
},
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
css: ['~/assets/css/app.css'],
|
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
plugins: [],
|
|
|
|
// 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/eslint
|
|
'@nuxtjs/eslint-module',
|
|
// https://go.nuxtjs.dev/stylelint
|
|
'@nuxtjs/stylelint-module',
|
|
// https://go.nuxtjs.dev/tailwindcss
|
|
'@nuxtjs/tailwindcss',
|
|
// https://go.nuxtjs.dev/pwa
|
|
'@nuxtjs/pwa',
|
|
],
|
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
modules: [
|
|
// https://go.nuxtjs.dev/axios
|
|
'@nuxtjs/axios',
|
|
'@nuxtjs/auth-next',
|
|
'nuxt-vue-material',
|
|
],
|
|
|
|
// Axios module configuration: https://go.nuxtjs.dev/config-axios
|
|
axios: {
|
|
baseURL: process.env.API_BASE_URL || 'https://api.cybergarden.ru',
|
|
},
|
|
|
|
vueMaterial: {},
|
|
|
|
router: {
|
|
mode: 'hash',
|
|
},
|
|
|
|
auth: {
|
|
rewriteRedirect: false,
|
|
resetOnError: true,
|
|
redirect: {
|
|
login: '/login',
|
|
logout: '/login',
|
|
home: false,
|
|
},
|
|
strategies: {
|
|
local: {
|
|
token: {
|
|
property: 'token',
|
|
maxAge: false,
|
|
},
|
|
user: {
|
|
property: 'user',
|
|
autoFetch: true,
|
|
},
|
|
endpoints: {
|
|
login: { url: '/auth/login', method: 'post' },
|
|
logout: { url: '/auth/logout', method: 'post' },
|
|
user: { url: '/auth/user', method: 'get' },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
// PWA module configuration: https://go.nuxtjs.dev/pwa
|
|
pwa: {
|
|
manifest: {
|
|
name: 'CyberGarden',
|
|
start_url: '/',
|
|
lang: 'ru',
|
|
},
|
|
},
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
build: {},
|
|
}
|