You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which package manager are you using? (Yarn is recommended)
bun
If the issue is web-related, please select the bundler (web.bundler in the app.json)
metro
Summary
When using shared routes array syntax within a <Tabs /> layout the dist/ of expo export returns 404s for valid routes when using metro + server output.
Steps to reproduce:
bun install
bun start
# Navigating to http://localhost:8081/one directly in the address bar renders the correct page
bun expo export -p web
node server.js
# Navigating to http://localhost:3000/one directly in the address bar renders a 404
…rts (#27462)
# Why
- fix#27456
<!--
Please describe the motivation for this PR, and link to relevant GitHub
issues, forums posts, or feature requests.
-->
# How
- add support for API routes to match array syntax variations.
- add support for exporting each unique nested variation of HTML routes
for server hosting.
<!--
How did you build this feature or fix this bug and why?
-->
# Test Plan
- Added extensive tests for the new logic in the server manifest
creation, html collection, and e2e server requesting.
- I've also updated the CLI collection tests to use the same manifest
mock creation as the integration navigation tests.
<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
---------
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Minimal reproducible example
https://github.com/erickreutz/expo-router-server-bundle-404-reproduction
Which package manager are you using? (Yarn is recommended)
bun
If the issue is web-related, please select the bundler (
web.bundler
in theapp.json
)metro
Summary
When using shared routes array syntax within a
<Tabs />
layout thedist/
of expo export returns 404s for valid routes when usingmetro
+server
output.Steps to reproduce:
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /opt/homebrew/bin/zsh
Binaries:
Node: 18.14.1 - ~/.asdf/installs/nodejs/18.14.1/bin/node
Yarn: 1.22.17 - ~/.asdf/shims/yarn
npm: 9.3.1 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/eric/.asdf/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ~50.0.8 => 50.0.8
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.73.4 => 0.73.4
react-native-web: ~0.19.6 => 0.19.10
npmGlobalPackages:
eas-cli: 5.9.0
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: