Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: web build #483

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
14 changes: 5 additions & 9 deletions with-nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@

This demo shows you how to setup your Next.js website to use packages from the Expo SDK like Camera, Gestures, Permissions, etc... Refer to the [Next adapter docs](https://github.com/expo/expo-cli/tree/main/packages/next-adapter) to learn how to add more React Native packages to your Next.js project.

### 🏁 New Commands

When targeting web, you'll need to use the Next.js CLI instead of Expo CLI:

- **Starting web**

- 🚫 `yarn expo`
- ✅ `yarn next`
`npm run web`
or
`npm run start`
`w`

- **Building web**
- 🚫 `yarn expo export:web`
- ✅ `yarn next build`
`npm run build`

### 👀 More Info

Expand Down
7 changes: 0 additions & 7 deletions with-nextjs/babel.config.js

This file was deleted.

10 changes: 4 additions & 6 deletions with-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"scripts": {
"build": "next build"
},
"dependencies": {
"expo": "^51.0.0",
"next": "~14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.1",
"react-native-web": "~0.19.6"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@expo/metro-runtime": "^3.2.1",
"@expo/next-adapter": "^6.0.0"
},
"scripts": {
"start": "next dev",
"build": "next build"
}
}