Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ storybook-static/
# Sentry Auth Token
.sentryclirc
.astro

# Generated static redirects
generated/
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import remarkToc from "remark-toc";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import metaTags from "astro-meta-tags";
import publicDir from "astro-public";

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -42,6 +43,8 @@ export default defineConfig({
nesting: true,
}),
metaTags(),
publicDir("generated/"),
],
output: "static",
middleware: "src/middleware.js",
});
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"prepare": "node scripts/generate-redirect-html.cjs && node scripts/create-static-redirects.cjs",
"dev": "concurrently --kill-others --success first --raw --signal SIGKILL \"nodemon --exitcrash -w src/data/redirects.json -e json -x \\\"pnpm prepare\\\"\" \"pnpm astro dev\"",
"build": "astro check && astro prepare && astro build",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write --plugin=prettier-plugin-astro ."
Expand All @@ -23,6 +24,7 @@
"@types/react-dom": "^19.0.4",
"astro": "^5.1.6",
"astro-meta-tags": "^0.3.1",
"astro-public": "^0.1.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
Expand All @@ -37,8 +39,10 @@
"typescript": "^5.7.3"
},
"devDependencies": {
"concurrently": "^9.1.2",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1"
"prettier-plugin-astro": "^0.14.1",
"nodemon": "^3.1.9"
},
"prettier": {
"proseWrap": "always"
Expand Down
Loading
Loading