Skip to content

[3.x] Resolve pages at @#3004

Open
skryukov wants to merge 1 commit intoinertiajs:3.xfrom
skryukov:resolve-pages-at-root
Open

[3.x] Resolve pages at @#3004
skryukov wants to merge 1 commit intoinertiajs:3.xfrom
skryukov:resolve-pages-at-root

Conversation

@skryukov
Copy link
Copy Markdown
Contributor

This PR makes the default resolver to also search @/pages and @/Pages in addition to ./pages and ./Pages.

This makes zero-config page resolution work for setups where pages live under the @ alias, and not just next to inertia entry point.

@skryukov skryukov changed the title Resolve pages at @ [3.x] Resolve pages at @ Mar 25, 2026
@skryukov skryukov force-pushed the resolve-pages-at-root branch from a0cf0b5 to dfa76da Compare March 25, 2026 15:01
@skryukov skryukov marked this pull request as ready for review March 25, 2026 15:26
@SuperDJ
Copy link
Copy Markdown
Contributor

SuperDJ commented Mar 26, 2026

Why not make it a configurable prefix?

@skryukov
Copy link
Copy Markdown
Contributor Author

Hmm, if you have to configure something, you can already use pages: '~/pages', so we already have that. Or am I missing something?

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