Fix web error

This commit is contained in:
Zoe Roux 2023-08-09 02:11:35 +09:00
parent 6733fe9c40
commit 0a30e5022b
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View File

@ -24,10 +24,11 @@ services:
dockerfile: Dockerfile.dev
volumes:
- ./front:/app
# - /app/.yarn
# - /app/node_modules
# - /app/apps/web/.next/
# - /app/apps/mobile/.expo/
- /app/.yarn
- /app/node_modules
- /app/apps/mobile/node_modules
- /app/apps/web/.next/
- /app/apps/mobile/.expo/
ports:
- "3000:3000"
- "19000:19000"

View File

@ -48,6 +48,7 @@ const nextConfig = {
alias: {
...config.resolve.alias,
"react-native$": "react-native-web",
'react-native/Libraries/Image/AssetRegistry$': 'react-native-web/dist/modules/AssetRegistry',
},
extensions: [".web.ts", ".web.tsx", ".web.js", ".web.jsx", ...config.resolve.extensions],
};
@ -107,6 +108,7 @@ const nextConfig = {
"yoshiki",
"@expo/vector-icons",
"@expo/html-elements",
"expo-image",
"expo-font",
"expo-asset",
"expo-av",