2020-07-14 16:42:46 +03:00
export default {
/ *
* * Nuxt target
* * See https : //nuxtjs.org/api/configuration-target
* /
target : 'server' ,
/ *
* * Headers of the page
* * See https : //nuxtjs.org/api/configuration-head
* /
head : {
2020-10-17 11:28:05 -07:00
htmlAttrs : {
lang : 'en' ,
} ,
2020-07-14 16:42:46 +03:00
title : 'Modrinth' ,
meta : [
{ charset : 'utf-8' } ,
{ name : 'viewport' , content : 'width=device-width, initial-scale=1' } ,
{
hid : 'description' ,
name : 'description' ,
2020-10-02 22:50:41 -07:00
content :
'Modrinth is a mod distribution platform. Modrinth is modern, easy to use, and built for modders. Modrinth currently supports Minecraft, including the forge and fabric mod loaders.' ,
} ,
2020-10-09 15:48:02 -07:00
{ hid : 'publisher' , name : 'publisher' , content : 'Guavy LLC' } ,
2020-10-02 22:50:41 -07:00
{
2020-10-09 15:48:02 -07:00
hid : 'apple-mobile-web-app-title' ,
name : 'apple-mobile-web-app-title' ,
2020-10-03 22:55:58 -07:00
content : 'Modrinth' ,
2020-10-02 22:50:41 -07:00
} ,
2020-10-09 15:48:02 -07:00
{ hid : 'theme-color' , name : 'theme-color' , content : '#4d9227' } ,
2020-10-22 22:46:10 -07:00
{ hid : 'color-scheme' , name : 'color-scheme' , content : 'light dark' } ,
2020-10-09 15:48:02 -07:00
2020-10-09 18:57:26 -07:00
{ hid : 'og:site_name' , name : 'og:site_name' , content : 'Modrinth' } ,
2020-10-02 22:50:41 -07:00
{
2020-10-09 15:48:02 -07:00
hid : 'og:description' ,
name : 'og:description' ,
content : 'An open source modding platform' ,
2020-10-02 22:50:41 -07:00
} ,
2020-10-09 19:52:12 -07:00
{ hid : 'og:type' , name : 'og:type' , content : 'website' } ,
2020-10-09 15:48:02 -07:00
{ hid : 'og:url' , name : 'og:url' , content : 'https://www.modrinth.com' } ,
2020-10-02 22:50:41 -07:00
{
2020-10-09 15:48:02 -07:00
hid : 'og:image' ,
name : 'og:image' ,
2020-10-19 22:02:29 -07:00
content : 'https://cdn.modrinth.com/modrinth.png' ,
2020-10-02 22:50:41 -07:00
} ,
2020-10-22 22:46:10 -07:00
{ hid : 'twitter:card' , name : 'twitter:card' , content : 'summary' } ,
{ hid : 'twitter:site' , name : 'twitter:site' , content : '@modrinth' } ,
2020-07-14 16:42:46 +03:00
] ,
2020-09-06 22:29:35 -07:00
link : [
{ rel : 'icon' , type : 'image/x-icon' , href : '/favicon.ico' } ,
{
rel : 'stylesheet' ,
href :
'https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap' ,
} ,
{
rel : 'stylesheet' ,
href :
'https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@600&display=swap' ,
} ,
] ,
2020-10-18 20:00:03 -07:00
script : [
{
src : 'https://analytics.modrinth.com/umami.js' ,
'data-website-id' : 'c37613de-245d-4767-90e7-ba7980a4f1a2' ,
async : true ,
defer : true ,
} ,
2020-10-25 13:48:13 -07:00
{
2020-10-28 20:39:44 -07:00
src : 'https://media.ethicalads.io/media/client/ethicalads.min.js' ,
2020-10-25 13:48:13 -07:00
async : true ,
} ,
2020-10-18 20:00:03 -07:00
] ,
2020-07-14 16:42:46 +03:00
} ,
2020-10-02 22:50:41 -07:00
vue : {
config : {
productionTip : false ,
2020-10-19 22:02:29 -07:00
devtools : false ,
2020-10-02 22:50:41 -07:00
} ,
} ,
2020-10-02 21:05:43 -07:00
router : {
middleware : [ 'auth' ] ,
} ,
2020-07-14 16:42:46 +03:00
/ *
* * Global CSS
* /
css : [ '~assets/styles/global.scss' ] ,
/ *
* * Plugins to load before mounting the App
* * https : //nuxtjs.org/guide/plugins
* /
plugins : [ ] ,
/ *
* * Auto import components
* * See https : //nuxtjs.org/api/configuration-components
* /
components : true ,
/ *
* * Nuxt . js dev - modules
* /
buildModules : [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module' ,
2020-10-09 14:25:02 -07:00
'@nuxtjs/svg' ,
'@nuxtjs/color-mode' ,
2020-07-14 16:42:46 +03:00
] ,
/ *
* * Nuxt . js modules
* /
modules : [
// Doc: https://axios.nuxtjs.org/usage
2020-10-11 22:46:26 -07:00
'@nuxtjs/dayjs' ,
2020-07-14 16:42:46 +03:00
'@nuxtjs/axios' ,
2020-10-02 21:05:43 -07:00
'@nuxtjs/auth' ,
2020-10-10 20:12:08 -07:00
'@nuxtjs/robots' ,
'@nuxtjs/sitemap' ,
2020-07-14 16:42:46 +03:00
] ,
2020-10-10 20:12:08 -07:00
robots : {
Sitemap : 'https://modrinth.com/sitemap.xml' ,
} ,
sitemap : {
exclude : [ '/dashboard/**' , '/dashboard' , '/mod/create' ] ,
} ,
2020-10-02 21:05:43 -07:00
auth : {
strategies : {
local : {
endpoints : {
user : {
url : 'https://api.modrinth.com/api/v1/user' ,
method : 'get' ,
propertyName : false ,
} ,
} ,
tokenType : false ,
} ,
} ,
} ,
2020-07-14 16:42:46 +03:00
/ *
* * Axios module configuration
* * See https : //axios.nuxtjs.org/options
* /
2020-10-09 14:25:02 -07:00
axios : {
headers : {
common : {
Accept : 'application/json' ,
} ,
} ,
} ,
2020-10-11 22:46:26 -07:00
dayjs : {
locales : [ 'en' ] ,
defaultLocale : 'en' ,
plugins : [ 'relativeTime' ] ,
2020-10-09 14:25:02 -07:00
} ,
2020-07-14 16:42:46 +03:00
/ *
* * Build configuration
* * See https : //nuxtjs.org/api/configuration-build/
* /
build : { } ,
2020-10-04 20:19:48 -07:00
loading : {
color : 'green' ,
height : '5px' ,
} ,
2020-07-14 16:42:46 +03:00
}