-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTIONS] about the range for route
hydrate
prerender
and the range for loading files.
#6364
Comments
What I am writing about is analogous. Using a layout analogous to "Advenced layout", one avoids the Do you understand now?
Thanks. I hadn't noticed. |
Ok I see. This would introduce needless complexity and would mean restarting your dev server all the time since we would have to
It would also create conflicts because as soon as you have two folders with the same name in different parts of your router tree. So no, we won't do this. |
Ok. I get it. |
Describe the problem
Why can't
route
,hydrate
,prerender
be added in+layout.js
?If you can set these properties in
svelte.config.js
, why not in+layout.js
?Similarly, I am curious about the
"$lib/"
.And shouldn't it be possible to reference any superdirectory in
routes
, conveniently?Like in Advenced layout you can refer to higher directories, by their name via at (
@
).For example, something like this:
./@/
,./@(app)/
,./@item/
or./@[id]/
.This is more of a question than a need. It puzzles me, and I'd like to know if it's completely unnecessary or not supported for some other reason (e.g., it didn't occur to anyone).
Describe the proposed solution
Simply support
route
,hydrate
,prerender
in+layout.js
.Adding support for importing from such url:
./@/
,./@(app)/
,./@item/
or./@[id]/
.Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: