Skip to content

Commit 177c5f9

Browse files
committed
feat: add legal text + fix analytics
1 parent f936525 commit 177c5f9

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

components/Layout/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import Footer from '../Footer';
2121
*/
2222
export default ({ metadata, headings, readingTime, children }) => (
2323
<>
24-
<Analytics basePath="https://node-learn-pages.vercel.app/_vercel" />
25-
<SpeedInsights basePath="https://node-learn-pages.vercel.app/_vercel" />
24+
<Analytics basePath="/learn/_vercel" />
25+
<SpeedInsights basePath="/learn/_vercel" />
2626
<NavBar />
2727
<Article>
2828
<SideBar metadata={metadata} />

vercel.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@
1818
"destination": "/learn/$1",
1919
"permanent": true
2020
}
21+
],
22+
"rewrites": [
23+
{
24+
"source": "/learn/_vercel/(.*)",
25+
"destination": "/_vercel/$1"
26+
}
2127
]
2228
}

0 commit comments

Comments
 (0)