How to deploy Lowdefy v4 in an airgapped environment #1645
-
Hello, Unfortunately there is no docs for the v4 nodejs deployment yet. Our internal apps made in lowdefy would be deployed in an airgapped environment - without outgoing network access. Currently, I can't use I'd be grateful for any advice in this matter :) Version: v4.0.0-rc.9 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @zinkls I think if it is possible to use Docker that would be preferable, you can build the Docker image on another machine and run that image on your server. This will have a much lower chance of having any compatibility issues. Else, you can follow the steps in the Docker file to build a standalone build of the app on another server. The key steps you need to do are:
You can read more about Next.js output standalone here: https://nextjs.org/docs/pages/api-reference/next-config-js/output |
Beta Was this translation helpful? Give feedback.
Hi @zinkls
I think if it is possible to use Docker that would be preferable, you can build the Docker image on another machine and run that image on your server. This will have a much lower chance of having any compatibility issues.
Else, you can follow the steps in the Docker file to build a standalone build of the app on another server.
The key steps you need to do are:
LOWDEFY_BUILD_OUTPUT_STANDALONE
to1
(This configures the build process to output he standalone build)pnpx lowdefy@rc build
. This will build the standalone app in the<base-directory>/.lowdefy/server/.next/standalone
directory<base-directory>/.lowdefy/server/.next/static
to<…