perf: Mark index, /install, /contact, and /about as prerendered pages in SvelteKit

This commit is contained in:
Maxime Cannoodt 2022-08-06 17:15:13 +02:00
parent e79e691ec9
commit 9733543193
5 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"scripts": { "scripts": {
"proxy": "node proxy.js", "proxy": "node proxy.js",
"dev": "concurrently -n plugin,webapp,server,proxy \"npm --prefix ./plugin run dev\" \"npm --prefix ./webapp run dev\" \"npm --prefix ./server run dev\" \"npm run proxy\"" "dev": "concurrently -n plugin,webapp,server,proxy \"npm --prefix ./plugin run dev\" \"npm --prefix ./webapp run dev -- --open\" \"npm --prefix ./server run dev\" \"npm run proxy\""
}, },
"dependencies": { "dependencies": {
"concurrently": "^7.2.2" "concurrently": "^7.2.2"

View File

@ -1,3 +1,7 @@
<script context="module">
export const prerender = true;
</script>
<svelte:head> <svelte:head>
<title>About | {import.meta.env.VITE_BRANDING}</title> <title>About | {import.meta.env.VITE_BRANDING}</title>
</svelte:head> </svelte:head>

View File

@ -1,3 +1,7 @@
<script context="module">
export const prerender = true;
</script>
<svelte:head> <svelte:head>
<title>Contact | {import.meta.env.VITE_BRANDING}</title> <title>Contact | {import.meta.env.VITE_BRANDING}</title>
</svelte:head> </svelte:head>

View File

@ -1,3 +1,7 @@
<script context="module">
export const prerender = true;
</script>
<script> <script>
import Tile from '$lib/components/index/tile.svelte'; import Tile from '$lib/components/index/tile.svelte';
</script> </script>

View File

@ -1,3 +1,7 @@
<script context="module">
export const prerender = true;
</script>
<svelte:head> <svelte:head>
<title>Get the plugin | {import.meta.env.VITE_BRANDING}</title> <title>Get the plugin | {import.meta.env.VITE_BRANDING}</title>
<script src="https://tarptaeya.github.io/repo-card/repo-card.js"></script> <script src="https://tarptaeya.github.io/repo-card/repo-card.js"></script>
@ -28,7 +32,7 @@
</div> </div>
<a href="https://github.com/mcndt/obsidian-note-sharing" <a href="https://github.com/mcndt/obsidian-note-sharing"
><img src="https://gh-card.dev/repos/mcndt/obsidian-note-sharing.svg" /></a ><img src="https://gh-card.dev/repos/mcndt/obsidian-note-sharing.svg" alt="github-repo-card" /></a
> >
<div class="flex gap-2 mt-2"> <div class="flex gap-2 mt-2">
<a href="https://github.com/mcndt/obsidian-note-sharing/releases"> <a href="https://github.com/mcndt/obsidian-note-sharing/releases">