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 : {
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 : 'author' , name : 'author' , content : 'Modrinth' } ,
{ 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-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' ,
content : 'https://cdn.modrinth.com/file/modrinth/modrinth.png' ,
2020-10-02 22:50:41 -07:00
} ,
2020-10-09 15:48:02 -07:00
// Twitter
2020-10-02 22:50:41 -07:00
{
2020-10-09 15:48:02 -07:00
hid : 'twitter:card' ,
name : 'twitter:card' ,
2020-10-09 19:52:12 -07:00
content : 'summary' ,
2020-10-02 22:50:41 -07:00
} ,
2020-10-09 15:48:02 -07:00
{ hid : 'twitter:site' , name : 'twitter:site' , content : '@modrinth' } ,
{ hid : 'twitter:creator' , name : 'twitter:creator' , content : '@modrinth' } ,
2020-10-02 22:50:41 -07:00
{
2020-10-09 15:48:02 -07:00
hid : 'twitter:title' ,
name : 'twitter:title' ,
2020-10-09 20:09:38 -07:00
content : 'Modrinth' ,
2020-10-02 22:50:41 -07:00
} ,
{
2020-10-09 15:48:02 -07:00
hid : 'twitter:description' ,
name : 'twitter:description' ,
content : 'An open source modding platform' ,
2020-10-02 22:50:41 -07:00
} ,
{
2020-10-09 15:48:02 -07:00
hid : 'twitter:image' ,
name : 'twitter:image' ,
content : 'https://cdn.modrinth.com/file/modrinth/modrinth.png' ,
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-12 22:33:56 -07:00
script : [ ] ,
2020-07-14 16:42:46 +03:00
} ,
2020-10-02 22:50:41 -07:00
vue : {
config : {
productionTip : false ,
devtools : true ,
} ,
} ,
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-10-10 20:12:08 -07:00
'nuxt-ackee' ,
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
ackee : {
server : 'https://analytics.modrinth.com' ,
domainId : '1840cc3a-64b1-431e-97a4-c122bb64d4c0' ,
ignoreLocalhost : false ,
detailed : true ,
} ,
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
}