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 :
2020-11-30 13:55:01 -08:00
'Modrinth is a mod distribution platform. Modrinth is modern, easy to use, and built for modders. Modrinth currently supports Minecraft, including Forge and Fabric mod loaders.' ,
2020-10-02 22:50:41 -07:00
} ,
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
} ,
2021-03-26 22:07:15 -07:00
{
hid : 'og:title' ,
name : 'og:title' ,
content : 'Modrinth' ,
} ,
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 :
2020-11-30 13:55:01 -08:00
'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap' ,
2020-09-06 22:29:35 -07:00
} ,
] ,
2021-04-09 04:44:25 +02:00
script : [ ] ,
2020-07-14 16:42:46 +03:00
} ,
2020-10-02 22:50:41 -07:00
vue : {
config : {
productionTip : false ,
2020-11-30 13:55:01 -08:00
devtools : true ,
2020-10-02 22:50:41 -07:00
} ,
} ,
2020-10-02 21:05:43 -07:00
router : {
2021-05-18 16:48:26 +02:00
middleware : [ 'auth' , 'analytics' ] ,
2020-10-02 21:05:43 -07:00
} ,
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
* /
2020-11-16 13:28:33 +00:00
plugins : [
'~/plugins/vue-tooltip.js' ,
'~/plugins/vue-notification.js' ,
2020-11-30 13:55:01 -08:00
'~/plugins/compiled-markdown-directive.js' ,
2020-11-16 13:28:33 +00:00
'~/plugins/vue-syntax.js' ,
2021-03-29 09:43:00 -07:00
'~/plugins/auth.js' ,
2020-11-16 13:28:33 +00:00
] ,
2020-07-14 16:42:46 +03:00
/ *
* * 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-10 20:12:08 -07:00
'@nuxtjs/robots' ,
'@nuxtjs/sitemap' ,
2020-12-28 10:50:59 -07:00
'@nuxtjs/style-resources' ,
2021-03-29 09:43:00 -07:00
'cookie-universal-nuxt' ,
2021-04-09 04:44:25 +02:00
'~/modules/gpt-ads' ,
2021-05-18 16:48:26 +02:00
// The analytics module is disabled, as we are using our own solution embedded in the middleware.
// '~/modules/analytics',
2020-07-14 16:42:46 +03:00
] ,
2021-04-09 04:44:25 +02:00
ads : {
// Module options
ghostMode : true ,
geoEdgeId : '' ,
} ,
2020-10-10 20:12:08 -07:00
robots : {
Sitemap : 'https://modrinth.com/sitemap.xml' ,
} ,
sitemap : {
exclude : [ '/dashboard/**' , '/dashboard' , '/mod/create' ] ,
} ,
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/
* /
2020-11-03 21:29:45 -07:00
build : {
transpile : [ 'vue-tooltip' , 'vue-notification' ] ,
2020-11-30 13:55:01 -08:00
styleResources : {
scss : './assets/styles/injected.scss' ,
2020-12-21 22:25:46 -07:00
} ,
2021-01-16 22:54:37 -07:00
html : {
minify : {
collapseWhitespace : true , // as @dario30186 mentioned
removeComments : true , // 👈 add this line
} ,
} ,
2020-11-03 21:29:45 -07:00
} ,
2020-10-04 20:19:48 -07:00
loading : {
color : 'green' ,
2021-02-14 12:02:23 -07:00
height : '2px' ,
2020-10-04 20:19:48 -07:00
} ,
2021-03-29 16:51:49 +02:00
env : {
version : process . env . VERSION _ID || 'unknown' ,
} ,
2021-04-09 04:44:25 +02:00
publicRuntimeConfig : {
ads : {
ghostMode : process . env . ENABLE _ADS == null ,
GeoEdgeId : process . env . GEOEDGE _ID ,
networkCode : process . env . GAM _ID ,
2021-05-18 16:48:26 +02:00
ethicalAds : process . env . ETHICAL _ADS ,
2021-04-09 04:44:25 +02:00
} ,
analytics : {
2021-05-18 16:48:26 +02:00
base _url : process . env . ARIADNE _URL ,
2021-04-09 04:44:25 +02:00
} ,
} ,
2020-07-14 16:42:46 +03:00
}