Skip to content

Commit 5c06e6d

Browse files
committed
Add serve configuration for 2023 with URL rewrites
1 parent 0958cfb commit 5c06e6d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

my-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"husky": "^8.0.3",
4747
"lint-staged": "^13.1.2",
4848
"prettier": "^2.8.4",
49-
"sass": "^1.58.1"
49+
"sass": "^1.58.1",
50+
"serve": "^14.2.5"
5051
},
5152
"lint-staged": {
5253
"*.{js,jsx,json,yaml,yml,html,scss,css}": [

my-app/serve.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/2023/!(static|camp-icon-rounded.png|manifest.json|robots.txt)/**",
5+
"destination": "/2023/index.html"
6+
},
7+
{
8+
"source": "/2023/!(static|camp-icon-rounded.png|manifest.json|robots.txt)",
9+
"destination": "/2023/index.html"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)