From 4e438fe22ce6287368581cd92ea8efb23d340d2b Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Tue, 17 Dec 2024 15:40:41 -0500 Subject: [PATCH 1/3] og:image is off by one --- src/routes/(app)/documents/[id]-[slug]/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(app)/documents/[id]-[slug]/+page.svelte b/src/routes/(app)/documents/[id]-[slug]/+page.svelte index 2d91a71ac..9b54910e6 100644 --- a/src/routes/(app)/documents/[id]-[slug]/+page.svelte +++ b/src/routes/(app)/documents/[id]-[slug]/+page.svelte @@ -48,7 +48,7 @@ {/if} From 0137beebf635d84e4a94e4608422e2d0b2a05fc4 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Wed, 18 Dec 2024 10:35:52 -0500 Subject: [PATCH 2/3] Yes ssr embeds --- src/config/config.js | 2 +- src/routes/embed/+layout.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index b0481fd53..84722f638 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -37,7 +37,7 @@ export const SIGN_IN_URL = new URL(DC_LOGIN, DC_BASE).toString(); export const SIGN_UP_URL = new URL(SQUARELET_SIGNUP, SQUARELET_BASE).toString(); export const SIGN_OUT_URL = new URL(DC_LOGOUT, DC_BASE).toString(); -export const EMBED_MAX_AGE = 60 * 10; +export const EMBED_MAX_AGE = 60 * 20; export const PAGE_MAX_AGE = 60 * 10; export const VIEWER_MAX_AGE = 60 * 10; diff --git a/src/routes/embed/+layout.ts b/src/routes/embed/+layout.ts index a3d15781a..77ab0a02e 100644 --- a/src/routes/embed/+layout.ts +++ b/src/routes/embed/+layout.ts @@ -1 +1 @@ -export const ssr = false; +export const ssr = true; From 8a70df8d7beef1fb71567c55980f398df31c6cdb Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Wed, 18 Dec 2024 10:39:09 -0500 Subject: [PATCH 3/3] Don't bust cache on deploy for now --- netlify.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 199ced536..acd470e86 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,7 +4,7 @@ publish = "build" [[context.production.plugins]] -package = "/plugins/cache-bust" +# package = "/plugins/cache-bust" [[plugins]] package = "@netlify/plugin-lighthouse" @@ -15,5 +15,5 @@ package = "@netlify/plugin-lighthouse" # # to audit a path other than / # route1 audit will use the top level thresholds - [[plugins.inputs.audits]] - path = "documents/" \ No newline at end of file +[[plugins.inputs.audits]] +path = "documents/"