-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
How to build SSR with quasar extension using Docker multi-stage build #6352
Comments
Addition: Of course I can just run |
maybe that will help u.:
my docker-compose.yml
Of course, I'm copying the whole source to the image. if (isServer) {
api.compatibleWith('@quasar/quasar-ui-qmarkdown', '1.0.23')
} PS.: that is my directory structure.:
|
@thr0n The flag does not exist, but I agree. Some app-exts are for build time and should go into
where the default is dev (for backwards compatibility). Maybe this is something @rstoenescu would consider. |
Hi, Please discuss within the community. We're trying to keep github tickets mainly for bug reports. Thank you. |
@thr0n To do what you want, in the interim, remove the QMarkdown app-extension (but, only if you are not importing *.md or *.vmd files). |
I'd like to create the SSR production build of my quasar app using Docker multi-stage build (details about this pattern can be found for example here: https://codefresh.io/docker-tutorial/node_docker_multistage/).
So basically this is what I'm doing in my Dockerfile:
First stage - Build the app:
yarn install
quasar build -m ssr
cd
into./dist/ssr
and executeyarn install
to install dependencies needed for productionSecond stage - Serve the app:
dist/ssr
contents from the builder container to/app
inside the production containerCMD node index.js
to serve the appNow here's the issue: I'm using
@quasar/quasar-app-extension-qmarkdown
(added to my project usingquasar ext add @quasar/qmarkdown
) which has been automatically installed as adevDependency
. Consequentlyqmarkdown
and its dependencies (e.g.markdown-it
) are missing in the productionpackage.json
file and they cannot be found at runtime:Is there a way to treat qmarkdown as a production dependency or to transfer the extension dependencies to the
dist/ssr
directory?The text was updated successfully, but these errors were encountered: