From 9733543193acae91b0fa26e272ec461bb96b4d48 Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Sat, 6 Aug 2022 17:15:13 +0200 Subject: [PATCH] perf: :zap: Mark index, /install, /contact, and /about as prerendered pages in SvelteKit --- package.json | 2 +- webapp/src/routes/about.svelte | 4 ++++ webapp/src/routes/contact.svelte | 4 ++++ webapp/src/routes/index.svelte | 4 ++++ webapp/src/routes/install.svelte | 6 +++++- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index db9f890..f715224 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "scripts": { "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": { "concurrently": "^7.2.2" diff --git a/webapp/src/routes/about.svelte b/webapp/src/routes/about.svelte index 427b0fa..b42ea64 100644 --- a/webapp/src/routes/about.svelte +++ b/webapp/src/routes/about.svelte @@ -1,3 +1,7 @@ + + About | {import.meta.env.VITE_BRANDING} diff --git a/webapp/src/routes/contact.svelte b/webapp/src/routes/contact.svelte index 2ca013d..a303b73 100644 --- a/webapp/src/routes/contact.svelte +++ b/webapp/src/routes/contact.svelte @@ -1,3 +1,7 @@ + + Contact | {import.meta.env.VITE_BRANDING} diff --git a/webapp/src/routes/index.svelte b/webapp/src/routes/index.svelte index e9366b8..eb0b1f4 100644 --- a/webapp/src/routes/index.svelte +++ b/webapp/src/routes/index.svelte @@ -1,3 +1,7 @@ + + diff --git a/webapp/src/routes/install.svelte b/webapp/src/routes/install.svelte index e0467ad..30642c1 100644 --- a/webapp/src/routes/install.svelte +++ b/webapp/src/routes/install.svelte @@ -1,3 +1,7 @@ + + Get the plugin | {import.meta.env.VITE_BRANDING} @@ -28,7 +32,7 @@ github-repo-card