Sign In
Sign In

You can find the step-by-step deployment guide here.

Build Environment Setup

By default, the following commands are executed to build a Nuxt project:

DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
  curl \
  {% if system_dependencies %}{{ system_dependencies | join(' ') }}{% endif %} \
  && rm -rf /var/lib/apt/lists/*

Here, system_dependencies refers to the system packages configured in the control panel.

After that, project dependencies are installed using the package manager detected in the repository (yarn, pnpm, or npm):

yarn install
pnpm install
npm install

SSR Support

When creating an application, you can enable SSR support.

05466c8f 91c4 47eb 826c 3deb7c6041e2

In this case, the application will run as a backend application:

  • You will need to select a server configuration.
  • The control panel interface after deployment will be identical to that of a backend application.
  • You will be able to define a start command. The default start command is:
node .output/server/index.mjs

SSR support cannot be disabled after deployment. To change the application mode, you will need to create a new application with the desired configuration.

Was this page helpful?
Updated on 15 May 2024

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start.
Email us
Hostman's Support