Skip to content

Commit

Permalink
redirect fix (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
gxjansen committed Nov 26, 2024
1 parent 36c9bb5 commit 07aa6eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineConfig({
mdx(),
keystatic() // Make sure this is after react()
],
output: "server", // Changed from hybrid to server for Keystatic
output: "hybrid", // Changed from server to hybrid to match reference project
experimental: {
clientPrerender: true,
directRenderScript: true
Expand Down
6 changes: 5 additions & 1 deletion public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
/events/* https://forum.commercequest.space/events/:splat 301
/events/ https://forum.commercequest.space/events/ 301
/discussions/ https://forum.commercequest.space/discussions/ 301
/profile/* https://forum.commercequest.space/profile/:splat 301
/profile/* https://forum.commercequest.space/profile/:splat 301

# Keystatic routes
/keystatic/* /keystatic/:splat 200
/admin /keystatic 301

0 comments on commit 07aa6eb

Please sign in to comment.