Skip to content

Commit

Permalink
Switch to hybrid rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Nov 20, 2024
1 parent 4c50a3d commit f4b3785
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
applyBaseStyles: false,
}),
],
output: 'server',
output: 'hybrid',
adapter: netlify({}),
vite: {
ssr: {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/[...rest].ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
starlightContentUrl,
} from '../utils/github.js';

export const prerender = false;

type CachedExample = {
name: string;
github: string;
Expand Down
2 changes: 0 additions & 2 deletions src/pages/latest.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { getExamples } from '../data/examples.js';
import Layout from '../layouts/Base.astro';
export const prerender = true;
const examples = await getExamples();
---

Expand Down
2 changes: 0 additions & 2 deletions src/pages/latest/[tab].astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export type Props = {
examples: Map<string, ExampleGroup>;
};
export const prerender = true;
export const getStaticPaths: GetStaticPaths = async () => {
const examples = await getExamples();
return [...examples.entries()].map(([tab]) => ({
Expand Down
2 changes: 0 additions & 2 deletions src/pages/next.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { getExamples } from '../data/examples.js';
import Layout from '../layouts/Base.astro';
export const prerender = true;
const examples = await getExamples('next');
---

Expand Down
2 changes: 0 additions & 2 deletions src/pages/next/[tab].astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export type Props = {
examples: Map<string, ExampleGroup>;
};
export const prerender = true;
export const getStaticPaths: GetStaticPaths = async () => {
const examples = await getExamples('next');
return [...examples.entries()].map(([tab]) => ({
Expand Down

0 comments on commit f4b3785

Please sign in to comment.