Skip to content

Commit

Permalink
chore: configure firebase rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 21, 2024
1 parent d50505d commit 2c7b153
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/website/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const appRoutes: Route[] = [
import('@valerymelou/blog/article').then(
(c) => c.BlogArticleComponent,
),
data: { animation: 'BlogHomePage' },
resolve: {
article: articleResolver,
},
Expand Down
26 changes: 21 additions & 5 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
{
"hosting": {
"public": "dist/apps/website/browser",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "/blog",
"destination": "/blog/index.html"
},
{
"source": "/blog/:post*",
"destination": "/blog/:post/index.html"
},
{
"source": "/about",
"destination": "/about/index.html"
},
{
"source": "/projects",
"destination": "/projects/index.html"
},
{
"source": "/projects/**",
"destination": "/projects/index.html"
},
{
"source": "**",
"destination": "/index.html"
Expand Down

0 comments on commit 2c7b153

Please sign in to comment.