How do you specify & configure the client in a fullstack project? #3104
Unanswered
walkermalling
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I have It seems to work even without explicitly setting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you specify the client root in a fullstack (typescript + react) project? That is, a project in which both a backend and a frontend are implemented, with some common modules. Typically:
📁 src
↳ 📁 app
↳ 📁 server
↳ 📁 common
I've been trying to find examples, but can't find any. I've tried using createapp.dev and then modifying it to move the client code into a subdirectory, such as src/app, but haven't been able to get it to work. The snowpack config options don't seem to help (mount. roodDir, workspaceRoot, buildOptions.baseUrl) and the explanations in the docs are very terse. For example, with buildOptions.baseUrl: "In your HTML, replace all instances of / with this. Inspired by the same Create React App concept. This is useful if your app will be deployed to a subdirectory."
If there isn't a working example to refer to, then there is no context to elucidate why a configuration is the way it is.
So these seem to be the main questions that need answering in order to set up a fullstack app:
Beta Was this translation helpful? Give feedback.
All reactions