Skip to content

Commit

Permalink
Migrate from Next to Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
herbievine authored Aug 21, 2024
2 parents 8aea2d9 + 06d187e commit 6603ec9
Show file tree
Hide file tree
Showing 47 changed files with 3,366 additions and 793 deletions.
13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
# testing
/coverage

# next.js
/.next/
/out/
# astro
/.astro

# production
/build
# build
/dist

# misc
.DS_Store
Expand All @@ -35,9 +34,5 @@ yarn-error.log*
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
10 changes: 0 additions & 10 deletions .prettierrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: "https://reactive.so",
integrations: [mdx(), sitemap(), tailwind()],
});
Binary file added bun.lockb
Binary file not shown.
77 changes: 0 additions & 77 deletions contentlayer.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions next.config.mjs

This file was deleted.

37 changes: 10 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,29 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "npx contentlayer build && next dev",
"build": "next build",
"start": "next start",
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "pnpm dlx @biomejs/biome lint src/ --apply",
"format": "pnpm dlx @biomejs/biome format src/ --write",
"check": "pnpm dlx @biomejs/biome check src/"
},
"dependencies": {
"@astrojs/mdx": "^3.1.4",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@biomejs/biome": "^1.4.1",
"@t3-oss/env-nextjs": "^0.7.1",
"@typeform/embed-react": "^3.9.0",
"@vercel/analytics": "^1.1.1",
"@vercel/og": "^0.6.1",
"@vercel/speed-insights": "^1.0.2",
"clsx": "^2.0.0",
"contentlayer": "^0.3.1",
"astro": "^4.14.3",
"dayjs": "^1.11.10",
"next": "^14.0.4",
"next-contentlayer": "^0.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-wrap-balancer": "^1.1.0",
"rehype": "^12.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-pretty-code": "^0.9.4",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"shiki": "^0.14.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/node": "18.15.11",
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"autoprefixer": "^10.4.16",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"postcss": "^8.4.32",
"tailwindcss": "^3.4.0",
"tailwindcss": "^3.4.10",
"typescript": "5.3.3"
},
"husky": {
Expand Down
Loading

0 comments on commit 6603ec9

Please sign in to comment.