Files
firezone/website/package.json
Jamil a81874d07b feat(docs): Show page last updated at for each doc page (#4587)
This was quite hairy. The best approach I came up with is to use `git`'s
last modified date. But Vercel uses a shallow clone, so the file's
modification date isn't preserved.

Luckily, I found an undocumented ENV var, `VERCEL_DEEP_CLONE` that fixes
this when set to `true`.

Using this technique we can generate any file's modified timestamp and
load it from a server component to render.

Fixes #3960 

<img width="321" alt="Screenshot 2024-04-10 at 11 11 49 PM"
src="https://github.com/firezone/firezone/assets/167144/07fe89cd-d792-49ca-b25b-8472fa19de8b">
2024-04-11 14:59:02 +00:00

57 lines
1.5 KiB
JSON

{
"name": "website",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"prebuild": "bash ./timestamps.sh",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@docsearch/react": "^3.6.0",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/mdx": "~14.1.4",
"@types/mdx": "^2.0.11",
"@types/mixpanel-browser": "^2.49.0",
"@types/node": "20.11.25",
"@types/react": "18.2.73",
"@types/react-dom": "18.2.23",
"@types/react-syntax-highlighter": "^15.5.11",
"asciinema-player": "^3.7.0",
"autoprefixer": "10.4.18",
"fast-xml-parser": "^4.3.5",
"flowbite": "^2.3.0",
"flowbite-react": "^0.7.8",
"highlight.js": "^11.9.0",
"md5": "^2.3.0",
"mixpanel-browser": "^2.49.0",
"next": "^14.1.3",
"next-hubspot": "^1.3.0",
"next-sitemap": "^4.2.3",
"postcss": "8.4.35",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-fast-marquee": "^1.6.4",
"react-icons": "^5.0.1",
"react-markdown": "^9.0.1",
"react-mixpanel-browser": "^4.1.0",
"react-syntax-highlighter": "^15.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-highlight": "^7.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"tailwindcss": "3.4.3"
},
"devDependencies": {
"flowbite-typography": "^1.0.3",
"hastscript": "^9.0.0",
"typescript": "5.4.2"
}
}