enhance nuxt config for better static generation
This commit is contained in:
parent
c6fa426d75
commit
2c9d3bf1e5
@ -1,24 +1,54 @@
|
|||||||
export default {
|
export default {
|
||||||
|
ssr: true,
|
||||||
// Target: https://go.nuxtjs.dev/config-target
|
// Target: https://go.nuxtjs.dev/config-target
|
||||||
target: 'static',
|
target: 'static',
|
||||||
|
hostname: "talespinner.wieerwill.de",
|
||||||
|
analyze: {
|
||||||
|
analyzerMode: 'static'
|
||||||
|
},
|
||||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||||
head: {
|
head: {
|
||||||
title: 'tale-spinner',
|
titleTemplate: '%s - Tale Spinner',
|
||||||
|
title: 'Tale Spinner',
|
||||||
htmlAttrs: {
|
htmlAttrs: {
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
},
|
},
|
||||||
meta: [
|
meta: [
|
||||||
{ charset: 'utf-8' },
|
{ charset: 'utf-8' },
|
||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
{ hid: 'description', name: 'description', content: '' },
|
{
|
||||||
|
hid: 'description',
|
||||||
|
name: 'description',
|
||||||
|
content: 'Tale Spinner is a collaborative storytelling game. Create exciting stories with your friends by spinning symbols that guide your narrative!'
|
||||||
|
},
|
||||||
{ name: 'format-detection', content: 'telephone=no' },
|
{ name: 'format-detection', content: 'telephone=no' },
|
||||||
|
{ property: 'og:type', content: 'website' },
|
||||||
|
{ property: 'og:title', content: 'Tale Spinner - Spin your own tale with friends!' },
|
||||||
|
{ property: 'og:description', content: 'Tale Spinner is a collaborative storytelling game. Create exciting stories with your friends by spinning symbols that guide your narrative!' },
|
||||||
|
{ property: 'og:url', content: 'https://talespinner.wieerwill.de/' },
|
||||||
|
{ property: 'og:image', content: 'https://talespinner.wieerwill.de/screenshot.png' }, // Replace with the path to your Open Graph image
|
||||||
|
{ property: 'twitter:card', content: 'summary_large_image' },
|
||||||
],
|
],
|
||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
link: [
|
||||||
|
{ rel: 'canonical', href: 'talespinner.wieerwill.de' },
|
||||||
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
},
|
},
|
||||||
|
|
||||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||||
css: [],
|
css: [],
|
||||||
|
nitro: { //To have routes scanned for broken links automatically, they need to be pre-rendered by Nitro.
|
||||||
|
static: true,
|
||||||
|
prerender: {
|
||||||
|
preset: 'service-worker',
|
||||||
|
crawlLinks: true,
|
||||||
|
routes: [
|
||||||
|
'/',
|
||||||
|
'/about',
|
||||||
|
'/setup',
|
||||||
|
'/gameplay'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user