Extend the .server
convention to the app/server
directory
#5600
Replies: 4 comments 3 replies
-
+1 for the ability to define one or multiple paths in |
Beta Was this translation helpful? Give feedback.
-
I created a patch that lets you have an |
Beta Was this translation helpful? Give feedback.
-
+1! Another version of this could be to just expose the values of that |
Beta Was this translation helpful? Give feedback.
-
This is a duplicate of #4093. People interested in this should upvote that proposal as well since it currently has more traction. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've naturally started to colocate my server-only files in the
app/server
directory which is now looking like this:I’m sure it's not necessary to mark all of these files as server-only modules but it gives me a certain peace of mind that I know this will never accidently bundle into the client.
One feature I like about SvelteKit is that they, in addition to the
.server
and.client
filename pattern, also have a dedicatedserver
folder that also can't be imported by client code by accident. Is there interesting in also doing that for Remix?Beta Was this translation helpful? Give feedback.
All reactions