Skip to content

Commit

Permalink
redirect update
Browse files Browse the repository at this point in the history
  • Loading branch information
gxjansen committed Nov 26, 2024
1 parent fe6c199 commit d7a5235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keystatic.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default config({
kind: 'github',
repo: {
owner: 'spryker-community',
name: 'commercequest-website'
name: 'commercequest-website',
branch: 'main' // Explicitly set the branch
},
},
ui: {
Expand Down
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@
command = "npm run build"
publish = "dist"

[[redirects]]
from = "/api/keystatic/github/oauth/callback"
to = "/.netlify/functions/entry"
status = 200
force = true

[[redirects]]
from = "/api/keystatic/*"
to = "/.netlify/functions/entry"
status = 200
force = true

[[redirects]]
from = "/keystatic"
to = "/.netlify/functions/entry"
status = 200
force = true

[[redirects]]
from = "/keystatic/*"
to = "/.netlify/functions/entry"
status = 200
force = true

[[redirects]]
from = "/*"
Expand Down

0 comments on commit d7a5235

Please sign in to comment.