Include Motion Compiler demo in showcase MPA build output - #2
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/erikconnect/Velora/sessions/267cd437-4326-4cb0-97eb-0ea41d12ab89 Co-authored-by: erikconnect <31578165+erikconnect@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix 404 error for motion compiler demo page in production build
Include Motion Compiler demo in showcase MPA build output
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new
pages/motion/motion-compiler-demo.htmlexisted in source but was not part of the Vite multi-page input set, so Vercel did not publish it and returned 404. This update aligns page inclusion with existing motion pages and preserves serving ofpublic/css/velora.generated.cssat/css/velora.generated.css.Build input registration (root cause)
pages/motion/motion-compiler-demo.htmlto the showcase template registry used by ViterollupOptions.input.Output/routing alignment
dist/pages/motion/like other motion pages (e.g.kinetic-cards.html), matching the expected production route structure.Static CSS availability
apps/showcase/public/css/velora.generated.cssin the static public pipeline so it is published at/css/velora.generated.csswithout runtime CSS changes.Original prompt
Problem
The new demo page
apps/showcase/pages/motion/motion-compiler-demo.htmlis not being correctly included in the Vercel production build, resulting in a 404 error. Existing pages like/pages/motion/kinetic-cards.htmlare served as expected.Production route for the demo page should be:
https://velora-showcase.vercel.app/pages/motion/motion-compiler-demo.htmlAdditionally, ensure the CSS file
apps/showcase/public/css/velora.generated.cssis included in the published output.Tasks:
motion-compiler-demo.html) are included in the Vite and Vercel build process.motion-compiler-demo.htmlis in the published output in the correct path, alongside other motion pages (e.g.,kinetic-cards.html).apps/showcase/public/css/velora.generated.cssis served correctly without any Velora runtime CSS changes.Expected Outcomes:
motion-compiler-demo.htmlshould be accessible at:https://velora-showcase.vercel.app/pages/motion/motion-compiler-demo.htmlafter deployment.apps/showcase/public/css/velora.generated.cssshould also be accessible in production.kinetic-cards.html).The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Traga uma atualização do repositório, estou desatualizado e não estou entendendo em que pé está o projeto.
Assistant: Aqui está um resumo atualizado do repositório Velora:
mainQuer se aprofundar em algo específico como as issues ou o progresso do código?
User: Sim... progresso do código.
Assistant: Aqui estão os detalhes dos commits mais recentes no repositório Velora:
Commit:
4a46ad4- 7 de maio de 2026Commit:
425cdb8- 7 de maio de 2026--showcase-home-header-maxpor--vl-layout-container-maxpara gerenciar layout.Commit:
c3db727- 7 de maio de 2026Commit:
d7ab91f- 2 de maio de 2026Commit:
9821939- 30 de abril de 2026Se precisar de informações sobre um commit específico ou algo mais detalhado, é só pedir!
User: Quais os próximos passos?
Assistant: Para definir os próximos passos no projeto Velora, vamos avaliar algumas possibilidades baseadas na situação atual:
1. Melhora da Estrutura de Código
This pull request was created from Copilot chat.