Skip to content

Commit 73c19d0

Browse files
authored
Merge pull request #3 from AmmarAhmedl200961/copilot/migrate-to-astro
Migrate from React + Vite to Astro
2 parents db9c577 + 899b790 commit 73c19d0

File tree

13 files changed

+6390
-1957
lines changed

13 files changed

+6390
-1957
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# Astro
27+
.astro

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# AmmarAhmedl200961.github.io
2-
Welcome to my personal site
2+
3+
Welcome to my personal portfolio site - built with Astro, React, and Three.js.
4+
5+
## Tech Stack
6+
7+
- **Astro** - Static site generator
8+
- **React** - Interactive components
9+
- **Tailwind CSS** - Styling
10+
- **Three.js** - 3D graphics
11+
- **Framer Motion** - Animations
12+
13+
## Development
14+
15+
```bash
16+
npm install
17+
npm run dev
18+
```
19+
20+
## Build
21+
22+
```bash
23+
npm run build
24+
```
25+
26+
The built site will be in the `dist/` directory.

astro.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from 'astro/config';
2+
import react from '@astrojs/react';
3+
import tailwind from '@astrojs/tailwind';
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: 'https://ammarahmedl200961.github.io',
8+
integrations: [
9+
react(),
10+
tailwind({
11+
applyBaseStyles: false,
12+
}),
13+
],
14+
vite: {
15+
ssr: {
16+
noExternal: ['three', '@react-three/fiber', '@react-three/drei', 'detect-gpu'],
17+
},
18+
optimizeDeps: {
19+
include: ['detect-gpu'],
20+
},
21+
},
22+
});

index.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)