Skip to content

Commit

Permalink
Merge pull request #987 from MuckRock/social-card
Browse files Browse the repository at this point in the history
Re-enable embed SSR
  • Loading branch information
eyeseast authored Dec 18, 2024
2 parents b23f88c + 8a70df8 commit f7b3174
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish = "build"


[[context.production.plugins]]
package = "/plugins/cache-bust"
# package = "/plugins/cache-bust"

[[plugins]]
package = "@netlify/plugin-lighthouse"
Expand All @@ -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/"
[[plugins.inputs.audits]]
path = "documents/"
2 changes: 1 addition & 1 deletion src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/documents/[id]-[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{/if}
<meta
property="og:image"
content={documents.pageImageUrl(document, 0, "normal").href}
content={documents.pageImageUrl(document, 1, "normal").href}
/>
<!-- Social cards -->
<meta property="twitter:card" content="summary_large_image" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/embed/+layout.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const ssr = false;
export const ssr = true;

0 comments on commit f7b3174

Please sign in to comment.