Skip to content

Commit

Permalink
Update firebase.json to specify redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspittle committed Feb 7, 2024
1 parent 2cd92d6 commit 08b508f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.varabyte.kobweb.gradle.application.extensions.AppBlock.LegacyRouteRedirectStrategy
import com.varabyte.kobweb.gradle.application.util.configAsKobwebApplication
import com.varabyte.kobwebx.gradle.markdown.MarkdownHandlers.Companion.HeadingIdsKey
import com.varabyte.kobwebx.gradle.markdown.ext.kobwebcall.KobwebCall
Expand Down Expand Up @@ -47,6 +48,9 @@ kobweb {
}
}
}

// We've migrated our redirects to the firebase.json file instead.
legacyRouteRedirectStrategy.set(LegacyRouteRedirectStrategy.DISALLOW)
}

markdown {
Expand Down
17 changes: 17 additions & 0 deletions site/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@
"destination": "/index.html"
}
],
"redirects": [ {
"source": "/blog/2022/kotlinsite",
"destination": "/blog/2022/kotlin-site",
"type": 301
}, {
"source": "/blog/2022/koverbadge",
"destination": "/blog/2022/kover-badge",
"type": 301
}, {
"source": "/blog/2022/staticdeploy",
"destination": "/blog/2022/static-deploy",
"type": 301
}, {
"source": "/blog/2023/clouddeploy",
"destination": "/blog/2023/cloud-deploy",
"type": 301
} ],
"cleanUrls": true
}
}

0 comments on commit 08b508f

Please sign in to comment.