SolidStart Beta 2: Month 3 #1393
Replies: 4 comments 12 replies
-
I think PUBLIC_ is a lot more intuitive than VITE_, so it's probably clever of Astro to a stance here. There are examples like this where people feel the need to add an extra PUBLIC anyway ( |
Beta Was this translation helpful? Give feedback.
-
+1 on not having a library specific prefix for public vars. Also future proofs for less confusion down the road if there's a split from Vite as well. |
Beta Was this translation helpful? Give feedback.
-
Talking about docs, would love to see something on opting out of file-based routes. I know that we can just use plain Route, but what I wanted to really have is a way to know what FileRoutes does without having to read through its code. |
Beta Was this translation helpful? Give feedback.
-
No one commented on the File Routing dilemma.. It occurs to me maybe the "." syntax isn't even needed since we have Using the example from the docs:
As you can see the listing page no longer matches with the details section. Alternatively it could be:
In some ways this isn't as clear as |
Beta Was this translation helpful? Give feedback.
-
Another update for SolidStart. I'm very happy how this feedback loop has been working and we are getting much closer to 1.0 now. I've been building and deploying projects on all the major providers and getting bugs fixed in Vinxi and Nitro along the way the past couple weeks so things are coming along quite nicely.
Really just down to consolidating on some naming details. So just want to put stuff out there and get some opinions. And to ask if there is anything else people want to see for 1.0.
Environment Variables
I feel like this topic probably need to talk about to see if there is some base conventions we should be setting differently. Currently we compile in VITE_ prefixed ones at build time the way Vite recommends. Should we stay with this or use a different convention. I don't particularly care that it is Vite since we are on Vite and this could make migrating Vite projects easier, but there is an argument that something like Astro's PUBLIC_ convention could be better.
Definitely interested in people experience with environment variables so far and if we can do something better to handle them.
Router Conventions
Honestly, I'm not too interested in picking these apart but adding the
.
to do unnested paths does ask if we need an escape character so you can put.
in your URLs. Or maybe use a different delimiter. To be fair this only applies to pages. API routes don't have nested routing and don't support the syntax, which means that you can still have likeapi.json.ts
and have it work. But even this I suppose is a question since maybe we should at least support the.
syntax there even if nesting has no meaning.That's really all I got. I'm pretty happy getting docs rolling and getting us to our goals. Please comment with any feedback or other things you'd like to see. It's getting pretty real about now. Thank you all for your participation.
Beta Was this translation helpful? Give feedback.
All reactions