Skip to content

[codex] Fix create market static export#81

Draft
krandder wants to merge 1 commit into
mainfrom
codex/fix-create-market-static-export
Draft

[codex] Fix create market static export#81
krandder wants to merge 1 commit into
mainfrom
codex/fix-create-market-static-export

Conversation

@krandder

Copy link
Copy Markdown
Contributor

What changed

  • Replaces the no-SSR dynamic import on /markets/new with a static import of CreateMarketFlow.
  • This makes next export include the create-market UI in the generated page bundle instead of serving an empty shell that depends on async chunks that are currently 404ing in production.

Why

After PR #77 was merged, https://futarchy.fi/markets/new returned 200 but the static HTML was an empty Next shell and its dynamic chunks returned 404. The page route existed, but the Create Market UI was not actually usable live.

Validation

  • npx eslint src/pages/markets/new/index.jsx src/components/futarchyFi/createMarket/CreateMarketFlow.jsx src/features/marketCreation/marketCreationWorkflow.js auto-qa/tests/market-creation-workflow.test.mjs
  • node --test auto-qa/tests/market-creation-workflow.test.mjs (8 tests)
  • npm run build
  • Verified out/markets/new.html and out/_next/static/chunks/pages/markets/new-*.js contain Create Market, Contract Actions, FutarchyLiquidityManagerFactory, and SnapshotLinkRegistry.

Current production before this fix

  • https://futarchy.fi/markets/new returns 200 but serves an empty shell.
  • https://futarchy.fi/_next/static/chunks/2872-132f9eb21ff3b203.js returns 404.
  • https://futarchy.fi/_next/static/chunks/4986-71e8163c575a3e1a.js returns 404.

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for futarchy ready!

Name Link
🔨 Latest commit 5d47563
🔍 Latest deploy log https://app.netlify.com/projects/futarchy/deploys/6a439c0faf64f90008a3166d
😎 Deploy Preview https://deploy-preview-81--futarchy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant