Skip to content

Commit

Permalink
Switch to new hybrid rendering mode
Browse files Browse the repository at this point in the history
Released in Astro v2.5
  • Loading branch information
ewels committed May 22, 2023
1 parent a589c1c commit 29f39ee
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 14 deletions.
7 changes: 5 additions & 2 deletions astro.config.mjs
Expand Up @@ -32,7 +32,11 @@ const AnchorLinkIcon = h(
// https://astro.build/config
export default defineConfig({
site: "https://multiqc.info",
output: "server",
output: "hybrid",
experimental: {
hybridOutput: true,
},
adapter: netlify(),
integrations: [
tailwind({
config: {
Expand Down Expand Up @@ -82,5 +86,4 @@ export default defineConfig({
[rehypeInline, { js: false, css: false, images: true, imports: false, svgElements: true }],
],
},
adapter: netlify(),
});
1 change: 0 additions & 1 deletion src/pages/404.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import Button from "@components/Button.svelte";
Expand Down
1 change: 0 additions & 1 deletion src/pages/citation.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import Button from "@components/Button.svelte";
import Card from "@components/Card.astro";
Expand Down
1 change: 0 additions & 1 deletion src/pages/community.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import CommunityCard from "@components/CommunityCard.astro";
---
Expand Down
2 changes: 0 additions & 2 deletions src/pages/docs/[...slug].astro
@@ -1,7 +1,5 @@
---
export const prerender = true;
import DocsLayout from "@layouts/DocsLayout.astro";
import fs from "node:fs";
export async function getStaticPaths() {
const posts = await Astro.glob("../../../../MultiQC/docs/core/**/*.md");
Expand Down
1 change: 0 additions & 1 deletion src/pages/example-reports/[report].astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import { getCollection } from "astro:content";
import Button from "@components/Button.svelte";
Expand Down
1 change: 0 additions & 1 deletion src/pages/example-reports/index.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import Button from "@components/Button.svelte";
import Card from "@components/Card.astro";
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import BaseLayout from "@layouts/BaseLayout.astro";
import Hero from "@components/Hero.astro";
import ExamplesBrowser from "@components/ExamplesBrowser.svelte";
Expand Down
1 change: 0 additions & 1 deletion src/pages/logos.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import BaseLayout from "@layouts/BaseLayout.astro";
import Hero from "@components/Hero.astro";
import Card from "@components/Card.astro";
Expand Down
1 change: 0 additions & 1 deletion src/pages/modules/[module].astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import { Code } from "astro/components";
import { parse, stringify } from "yaml";
Expand Down
1 change: 0 additions & 1 deletion src/pages/modules/index.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import { Icon } from "astro-icon";
Expand Down
1 change: 1 addition & 0 deletions src/pages/og.png.ts
@@ -1,3 +1,4 @@
export const prerender = false;
// @ts-ignore: no types
import sharp from "sharp";
// @ts-ignore: no types
Expand Down
1 change: 0 additions & 1 deletion src/pages/plugins.astro
@@ -1,5 +1,4 @@
---
export const prerender = true;
import PageLayout from "@layouts/PageLayout.astro";
import Button from "@components/Button.svelte";
import Card from "@components/Card.astro";
Expand Down
1 change: 1 addition & 0 deletions src/pages/version.php.ts
@@ -1,3 +1,4 @@
export const prerender = false;
import type { APIRoute } from "astro";
import mqc_releases from "../multiqc_releases.json";

Expand Down

0 comments on commit 29f39ee

Please sign in to comment.