Skip to content

Commit 88ebf4a

Browse files
committed
Updated the Astro docs with SSR notes
1 parent 9a0e641 commit 88ebf4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/_snippets/manual-setup-astro.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,13 @@ By following these steps, you'll configure the Trigger Client to work with your
9898
import { defineConfig } from "astro/config";
9999

100100
export default defineConfig({
101+
//alternatively you can use "hybrid" instead of "server"
101102
output: "server",
102103
});
103104
```
104105

106+
[Read the full Astro docs on SSR](https://docs.astro.build/en/guides/server-side-rendering/).
107+
105108
## Creating the API Route
106109

107110
To establish an API route for interacting with Trigger.dev, follow these steps based on your project's file type and structure
@@ -117,6 +120,7 @@ import { client } from "../../trigger";
117120
//import your jobs, this could be different depending on your project structure
118121
import "../../jobs";
119122

123+
export const prerender = false;
120124
export const { POST } = createAstroRoute(client);
121125
```
122126

0 commit comments

Comments
 (0)