Skip to content

Commit

Permalink
Updated the Astro docs with SSR notes
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-aitken committed Sep 14, 2023
1 parent 9a0e641 commit 88ebf4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_snippets/manual-setup-astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ By following these steps, you'll configure the Trigger Client to work with your
import { defineConfig } from "astro/config";

export default defineConfig({
//alternatively you can use "hybrid" instead of "server"
output: "server",
});
```

[Read the full Astro docs on SSR](https://docs.astro.build/en/guides/server-side-rendering/).

## Creating the API Route

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

export const prerender = false;
export const { POST } = createAstroRoute(client);
```

Expand Down

0 comments on commit 88ebf4a

Please sign in to comment.