https://github.com/masterbhuvnesh/xponxt
🚀 Built a simple Next.js website and deployed it on Expo.
https://github.com/masterbhuvnesh/xponxt
eas eas-cli expo expo-cli expo-deployment hosting next nextjs nextjs15
Last synced: 7 months ago
JSON representation
🚀 Built a simple Next.js website and deployed it on Expo.
- Host: GitHub
- URL: https://github.com/masterbhuvnesh/xponxt
- Owner: MasterBhuvnesh
- Created: 2025-02-15T12:39:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T21:50:04.000Z (8 months ago)
- Last Synced: 2025-03-06T22:28:01.607Z (8 months ago)
- Topics: eas, eas-cli, expo, expo-cli, expo-deployment, hosting, next, nextjs, nextjs15
- Language: TypeScript
- Homepage: https://bhuvneshverma.expo.app/
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌐 **Guide to Deploying a Next.js Project to Expo**
## 🚀 **Steps to Deploy Using Expo CLI**
### 1️⃣ **Configure Your Next.js Project**
- Update `next.config.ts` to enable static export:
```typescript
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "export",
reactStrictMode: true,
};
export default nextConfig;
```
### 2️⃣ **Build the Project**
Run the following command to generate the output files:
```bash
npx next build
```
### 3️⃣ **Deploy with Expo**
Use Expo Application Services (EAS) to deploy your project:
```bash
eas deploy --export-dir=out
```
### 4️⃣ **Get Your Deployment URL**
- After deployment, you’ll receive a link to access your project:
```
https://bhuvneshverma--yxdct6yk0b.expo.app
```
### 5️⃣ **Switch to Production (Optional)**
- To set up a production alias, use:
```bash
eas deploy:alias --prod --id=DEPLOYMENT-ID
```
Example:
```bash
eas deploy:alias --prod --id=yxdct6yk0b
```
### 🎯 **Final Production URL**
Once deployed to production, your project url will look like :
`https://bhuvneshverma.expo.app`
🔗 **Check it out:**
[](https://bhuvneshverma.expo.app)
### 💡 **Acknowledgments**
Special thanks to [ide](https://github.com/ide) for their clear and concise explanation regarding the deployment of Next.js projects using Expo Application Services (EAS).