Welcome to Test Site 1769604919041
This is a test site created to verify the build orchestration system.
Build Orchestration Test
If you can see this page, the build orchestration system is working correctly!
This is a test of the accordion section
tav
tst
123
tat
tse2
earch(pattern: "getMeUser|nullUserRedirect", path: "apps/app-platform/src")
⎿ Found 47 files (ctrl+o to expand)
⏺ Read(apps/app-platform/src/utilities/getMeUser.ts)
⎿ Read 240 lines
⏺ Search(pattern: "buildPlatformUrl|getAppDomain", path: "packages/shared")
⎿ Found 1 file (ctrl+o to expand)
⏺ Read(packages/shared/src/site-urls/index.ts)
⎿ Read 221 lines
⏺ Found it! The issue is in the /me layout. Look at line 41-43:
const { user } = await getMeUser({
nullUserRedirect: buildPlatformUrl(
`/login?redirect=${encodeURIComponent('/me/dashboard')}`
),
})
buildPlatformUrl() always builds to http://app.yachtos.test:4001 in dev - it doesn't respect the current
domain!
So even if middleware sets MARKETPLACE_APP mode, the layout redirects to app.yachtos.test when the user
isn't authenticated.