-
Update
next.config.tsto enable static export:import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "export", reactStrictMode: true, }; export default nextConfig;
Run the following command to generate the output files:
npx next buildUse Expo Application Services (EAS) to deploy your project:
eas deploy --export-dir=out- After deployment, you’ll receive a link to access your project:
https://bhuvneshverma--yxdct6yk0b.expo.app
- To set up a production alias, use:
Example:
eas deploy:alias --prod --id=DEPLOYMENT-ID
eas deploy:alias --prod --id=yxdct6yk0b
Once deployed to production, your project url will look like :
https://bhuvneshverma.expo.app
🔗 Check it out:
Special thanks to ide for their clear and concise explanation regarding the deployment of Next.js projects using Expo Application Services (EAS).
