Skip to content

feat(cli,feeds): smart rewrites merge and generic xml handler#745

Open
vitorrgg wants to merge 2 commits intomainfrom
feat/feeds-obscure-path
Open

feat(cli,feeds): smart rewrites merge and generic xml handler#745
vitorrgg wants to merge 2 commits intomainfrom
feat/feeds-obscure-path

Conversation

@vitorrgg
Copy link
Copy Markdown
Member

CLI: when store conf/firebase.json defines a rewrite for a function already present in base config, the merge replaces that entry instead of appending a duplicate. Falls back to adding a new entry if function is not found in base rewrites.

Feeds: catalog handler now matches any .xml path (except sitemap), so store-specific routing prefixes work without code changes.

CLI: when store conf/firebase.json defines a rewrite for a function
already present in base config, the merge replaces that entry instead
of appending a duplicate. Falls back to adding a new entry if function
is not found in base rewrites.

Feeds: catalog handler now matches any .xml path (except sitemap),
so store-specific routing prefixes work without code changes.
await proxyGithubApi(req, res);
break;
}
if (req.path.endsWith('.xml')) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (req.path.endsWith('.xml')) {
if (req.path.endsWith('/catalog.xml')) {

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.

2 participants